From 4db92d423c323dffc063356c3a8d6b8fc557b5b1 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sun, 29 Mar 2026 07:45:28 +0200 Subject: [PATCH] cos: afegida duracio final el logo --- source/game/scenes/logo.cpp | 6 ++++++ source/game/scenes/logo.hpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/source/game/scenes/logo.cpp b/source/game/scenes/logo.cpp index af29f8b..e64fb47 100644 --- a/source/game/scenes/logo.cpp +++ b/source/game/scenes/logo.cpp @@ -180,6 +180,12 @@ void Logo::updateState(float delta_time) { case State::FADE_OUT: if (state_time_ >= FADE_OUT_DURATION) { + transitionToState(State::BLACK_SCREEN); + } + break; + + case State::BLACK_SCREEN: + if (state_time_ >= BLACK_SCREEN_DURATION) { transitionToState(State::END); endSection(); } diff --git a/source/game/scenes/logo.hpp b/source/game/scenes/logo.hpp index a5bc441..0e33761 100644 --- a/source/game/scenes/logo.hpp +++ b/source/game/scenes/logo.hpp @@ -22,6 +22,7 @@ class Logo { SINCE_1998_FADE_IN, // Aparición gradual del texto "Since 1998" DISPLAY, // Logo completo visible FADE_OUT, // Desaparición gradual + BLACK_SCREEN, // Pantalla en negro antes de terminar END // Fin de la secuencia }; @@ -38,6 +39,7 @@ class Logo { static constexpr float SINCE_1998_FADE_DURATION = 0.5F; // Duración del fade-in de "Since 1998" static constexpr float DISPLAY_DURATION = 3.5F; // Tiempo que el logo permanece visible static constexpr float FADE_OUT_DURATION = 0.5F; // Duración del fade-out final + static constexpr float BLACK_SCREEN_DURATION = 1.0F; // Duración de la pantalla negra final // --- Constantes de animación --- static constexpr float JAILGAMES_SLIDE_DURATION = 0.8F; // Duración de la animación de slide-in (segundos)