feat(effects): heat-haze sinusoidal al fons del títol (configurable a ui.yaml)

This commit is contained in:
JailDesigner committed 2026-05-06 11:48:29 +02:00
1 parent 9233bd8d75
commit 1fc3ab8e31
9 files changed
+150 -3

No files matched your search

+13
View File
@@ -258,6 +258,19 @@ namespace Defaults {
constexpr Uint8 COPYRIGHT_COLOR = 246; // (218,218,255) off-white amb un mínim de fred.
constexpr int BLINK_VISIBLE_MS = 800;
constexpr int BLINK_HIDDEN_MS = 200;
// Distorsió sinusoidal horitzontal de l'imatge de fons
// (efecte de calor del desert). `amplitude_px` és el
// desplaçament màxim per fila; `wavelength_px` la distància
// vertical entre dos pics; `speed_hz` la velocitat amb què
// avança la fase (cicles/segon). Si `enabled` és false el
// fons es pinta sense distorsió.
namespace HeatHaze {
constexpr bool ENABLED = true;
constexpr float AMPLITUDE_PX = 1.5F;
constexpr float WAVELENGTH_PX = 32.0F;
constexpr float SPEED_HZ = 0.6F;
} // namespace HeatHaze
} // namespace Title
} // namespace UI