calibrats els pulsos al gust
This commit is contained in:
@@ -882,7 +882,7 @@ void Player::updateContinueCounter(float delta_time) {
|
|||||||
if (continue_time_accumulator_ >= CONTINUE_INTERVAL_S) {
|
if (continue_time_accumulator_ >= CONTINUE_INTERVAL_S) {
|
||||||
continue_time_accumulator_ -= CONTINUE_INTERVAL_S;
|
continue_time_accumulator_ -= CONTINUE_INTERVAL_S;
|
||||||
decContinueCounter();
|
decContinueCounter();
|
||||||
Scoreboard::get()->triggerPanelPulse(scoreboard_panel_, 0.2F);
|
if (continue_counter_ >= 0) { Scoreboard::get()->triggerPanelPulse(scoreboard_panel_, 0.4F); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -381,6 +381,7 @@ void Scoreboard::fillPanelTextures() {
|
|||||||
|
|
||||||
// Interpolar entre color base y color aclarado
|
// Interpolar entre color base y color aclarado
|
||||||
Color target_color = color_.LIGHTEN(PANEL_PULSE_LIGHTEN_AMOUNT);
|
Color target_color = color_.LIGHTEN(PANEL_PULSE_LIGHTEN_AMOUNT);
|
||||||
|
//Color target_color = color_.INVERSE();
|
||||||
background_color = color_.LERP(target_color, pulse_intensity);
|
background_color = color_.LERP(target_color, pulse_intensity);
|
||||||
background_color.a = 255; // Opaco durante el pulso
|
background_color.a = 255; // Opaco durante el pulso
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ class Scoreboard {
|
|||||||
// --- Constantes ---
|
// --- Constantes ---
|
||||||
static constexpr int CAROUSEL_VISIBLE_LETTERS = 9;
|
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 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 ---
|
// --- Variables de aspecto ---
|
||||||
Color text_color1_, text_color2_; // Colores para los marcadores del texto;
|
Color text_color1_, text_color2_; // Colores para los marcadores del texto;
|
||||||
|
|||||||
Reference in New Issue
Block a user