calibrats els pulsos al gust

This commit is contained in:
2025-10-23 14:56:33 +02:00
parent 5bf96b9aba
commit e250ca048f
3 changed files with 3 additions and 2 deletions

View File

@@ -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); }
}
}
}

View File

@@ -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
}

View File

@@ -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;