feat(demo): attract mode amb pilot IA, escenaris curats i música contínua del títol

This commit is contained in:
2026-05-28 12:01:12 +02:00
parent 491992a4d7
commit c1956e0028
11 changed files with 404 additions and 27 deletions
+5
View File
@@ -79,6 +79,7 @@ class TitleScene final : public Scene {
void drawFlashes();
TitleState current_state_{TitleState::STARFIELD_FADE_IN};
float temps_acumulat_{0.0F};
float idle_timer_{0.0F}; // Attract mode: inactivitat acumulada al state MAIN
std::vector<LogoLetter> letters_orni_;
std::vector<LogoLetter> letters_attack_;
@@ -110,6 +111,10 @@ class TitleScene final : public Scene {
static constexpr float DURATION_BLACK_SCREEN = 2.0F;
static constexpr int MUSIC_FADE = 1500;
// Attract mode: temps d'inactivitat al títol (state MAIN) abans de saltar
// a la demo. Qualsevol input el reseteja.
static constexpr float TITLE_DEMO_TIMEOUT = 20.0F;
static constexpr float ORBIT_AMPLITUDE_X = 4.0F;
static constexpr float ORBIT_AMPLITUDE_Y = 3.0F;
static constexpr float ORBIT_FREQUENCY_X = 0.8F;