From 1ca9d0c01bbd7926ea4f0c9762de0fd43237128d Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 3 Apr 2026 17:46:03 +0200 Subject: [PATCH] arreglos menors en intro --- source/sections/intro.cpp | 12 ++++++------ source/sections/intro.hpp | 18 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/source/sections/intro.cpp b/source/sections/intro.cpp index c95e11e..5baa184 100644 --- a/source/sections/intro.cpp +++ b/source/sections/intro.cpp @@ -420,7 +420,7 @@ void Intro::initTexts() { // Fins que un desaprensiu... texts_.at(2)->setCaption(Lang::getText("[INTRO] 3")); - texts_.at(2)->setSpeedS(TEXT_SPEED_FAST); + texts_.at(2)->setSpeedS(TEXT_SPEED_SLOW); // HEY! ME ANE A FERME UN CORTAET... texts_.at(3)->setCaption(Lang::getText("[INTRO] 4")); @@ -428,23 +428,23 @@ void Intro::initTexts() { // UAAAAAAAAAAAAA!!! texts_.at(4)->setCaption(Lang::getText("[INTRO] 5")); - texts_.at(4)->setSpeedS(TEXT_SPEED_VERY_SLOW); + texts_.at(4)->setSpeedS(TEXT_SPEED_ULTRA_FAST); // Espera un moment... texts_.at(5)->setCaption(Lang::getText("[INTRO] 6")); - texts_.at(5)->setSpeedS(TEXT_SPEED_VERY_FAST); + texts_.at(5)->setSpeedS(TEXT_SPEED_VERY_SLOW); // Si resulta que no tinc solt! texts_.at(6)->setCaption(Lang::getText("[INTRO] 7")); - texts_.at(6)->setSpeedS(TEXT_SPEED_SLOW); + texts_.at(6)->setSpeedS(TEXT_SPEED_VERY_FAST); // MERDA DE MAQUINA! texts_.at(7)->setCaption(Lang::getText("[INTRO] 8")); - texts_.at(7)->setSpeedS(TEXT_SPEED_MEDIUM_SLOW); + texts_.at(7)->setSpeedS(TEXT_SPEED_FAST); // Blop... blop... blop... texts_.at(8)->setCaption(Lang::getText("[INTRO] 9")); - texts_.at(8)->setSpeedS(TEXT_SPEED_ULTRA_FAST); + texts_.at(8)->setSpeedS(TEXT_SPEED_ULTRA_SLOW); for (auto& text : texts_) { text->center(param.game.game_area.center_x); diff --git a/source/sections/intro.hpp b/source/sections/intro.hpp index fb6f0b6..8940d2c 100644 --- a/source/sections/intro.hpp +++ b/source/sections/intro.hpp @@ -48,14 +48,14 @@ class Intro { static constexpr float TILED_BG_SPEED = 18.0F; // Velocidad del fondo mosaico (pixels/segundo) static constexpr int TEXT_KERNING = -2; // Espaciado entre caracteres - // --- Constantes de velocidades de texto (segundos entre caracteres) --- - static constexpr float TEXT_SPEED_NORMAL = 0.133F; // Velocidad normal (8 frames * 16.67ms = 133ms) - static constexpr float TEXT_SPEED_FAST = 0.2F; // Velocidad rápida (12 frames * 16.67ms = 200ms) - static constexpr float TEXT_SPEED_VERY_SLOW = 0.0167F; // Velocidad muy lenta (1 frame * 16.67ms = 16.7ms) - static constexpr float TEXT_SPEED_VERY_FAST = 0.267F; // Velocidad muy rápida (16 frames * 16.67ms = 267ms) - static constexpr float TEXT_SPEED_SLOW = 0.033F; // Velocidad lenta (2 frames * 16.67ms = 33ms) - static constexpr float TEXT_SPEED_MEDIUM_SLOW = 0.05F; // Velocidad medio-lenta (3 frames * 16.67ms = 50ms) - static constexpr float TEXT_SPEED_ULTRA_FAST = 0.333F; // Velocidad ultra rápida (20 frames * 16.67ms = 333ms) + // --- Constantes de velocidades de texto (segundos entre caracteres, menor = más rápido) --- + static constexpr float TEXT_SPEED_ULTRA_FAST = 0.0167F; // Ultra rápida (1 frame a 60fps) + static constexpr float TEXT_SPEED_VERY_FAST = 0.033F; // Muy rápida (2 frames a 60fps) + static constexpr float TEXT_SPEED_FAST = 0.05F; // Rápida (3 frames a 60fps) + static constexpr float TEXT_SPEED_NORMAL = 0.133F; // Normal (8 frames a 60fps) + static constexpr float TEXT_SPEED_SLOW = 0.2F; // Lenta (12 frames a 60fps) + static constexpr float TEXT_SPEED_VERY_SLOW = 0.267F; // Muy lenta (16 frames a 60fps) + static constexpr float TEXT_SPEED_ULTRA_SLOW = 0.333F; // Ultra lenta (20 frames a 60fps) // --- Constantes de animaciones de tarjetas (duraciones en segundos) --- static constexpr float CARD_ANIM_DURATION_NORMAL = 100.0F / 60.0F; // ≈ 1.6667 s @@ -90,7 +90,7 @@ class Intro { int scene_ = 0; // Indica qué escena está activa State state_ = State::SCENES; // Estado principal de la intro PostState post_state_ = PostState::STOP_BG; // Estado POST - float state_start_time_; // Tiempo de inicio del estado actual (segundos) + float state_start_time_ = 0.0F; // Tiempo de inicio del estado actual (segundos) Color bg_color_ = param.intro.bg_color; // Color de fondo // --- Métodos internos ---