// starfield_parallax.hpp - Capa de fons del playfield: estrelles 2D amb parallax // © 2026 JailDesigner // // 3 capes de profunditat. Cada capa té estrelles amb brillantor, mida i // factor parallax propis. Les més properes són més brillants i grans i es // mouen més ràpid quan el món es desplaça; les més llunyanes són tènues i // petites i amb prou feines es mouen. #pragma once namespace Defaults::StarfieldParallax { namespace Far { constexpr int COUNT = 60; constexpr float BRIGHTNESS = 0.15F; constexpr float PARALLAX_FACTOR = 0.15F; // multiplicador sobre world_velocity constexpr int SIZE_PX = 1; // 1 px (punt) } // namespace Far namespace Mid { constexpr int COUNT = 50; constexpr float BRIGHTNESS = 0.30F; constexpr float PARALLAX_FACTOR = 0.35F; constexpr int SIZE_PX = 2; // creu de 3x3 (extensió ±1) } // namespace Mid namespace Near { constexpr int COUNT = 40; constexpr float BRIGHTNESS = 0.55F; constexpr float PARALLAX_FACTOR = 0.70F; constexpr int SIZE_PX = 3; // creu de 5x5 (extensió ±2) } // namespace Near constexpr int TOTAL_COUNT = Far::COUNT + Mid::COUNT + Near::COUNT; } // namespace Defaults::StarfieldParallax