diff --git a/source/player.cpp b/source/player.cpp index a63b394..0f57966 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -882,7 +882,7 @@ void Player::updateContinueCounter(float delta_time) { if (continue_time_accumulator_ >= CONTINUE_INTERVAL_S) { continue_time_accumulator_ -= CONTINUE_INTERVAL_S; decContinueCounter(); - Scoreboard::get()->triggerPanelPulse(scoreboard_panel_, 0.2F); + if (continue_counter_ >= 0) { Scoreboard::get()->triggerPanelPulse(scoreboard_panel_, 0.4F); } } } } diff --git a/source/scoreboard.cpp b/source/scoreboard.cpp index ff349ba..2680ee6 100644 --- a/source/scoreboard.cpp +++ b/source/scoreboard.cpp @@ -381,6 +381,7 @@ void Scoreboard::fillPanelTextures() { // Interpolar entre color base y color aclarado Color target_color = color_.LIGHTEN(PANEL_PULSE_LIGHTEN_AMOUNT); + //Color target_color = color_.INVERSE(); background_color = color_.LERP(target_color, pulse_intensity); background_color.a = 255; // Opaco durante el pulso } diff --git a/source/scoreboard.hpp b/source/scoreboard.hpp index 17a176c..aaed132 100644 --- a/source/scoreboard.hpp +++ b/source/scoreboard.hpp @@ -123,7 +123,7 @@ class Scoreboard { // --- Constantes --- static constexpr int CAROUSEL_VISIBLE_LETTERS = 9; static constexpr float TEXT_SLIDE_DURATION = 0.3F; // Duración de la animación de deslizamiento en segundos - static constexpr int PANEL_PULSE_LIGHTEN_AMOUNT = 100; // Cantidad de aclarado para el pulso del panel + static constexpr int PANEL_PULSE_LIGHTEN_AMOUNT = 40; // Cantidad de aclarado para el pulso del panel // --- Variables de aspecto --- Color text_color1_, text_color2_; // Colores para los marcadores del texto;