eliminada la merda de slowmotion i hit
This commit is contained in:
@@ -295,37 +295,9 @@ class Game {
|
||||
// --- Utilidades y servicios ---
|
||||
void checkServiceMenu(); // Verifica si el menú de servicio está activo
|
||||
|
||||
void renderHit(); // Dibuja el golpe que recibe el jugador al impactarle un globo
|
||||
void putHitOnScreen(SDL_FPoint position); // Coloca el Hit en pantalla obligando a hacer un renderizado
|
||||
void sendPlayerToTheBack(const std::shared_ptr<Player> &player); // Mueve el jugador para pintarlo al fondo de la lista de jugadores
|
||||
void sendPlayerToTheFront(const std::shared_ptr<Player> &player); // Mueve el jugador para pintarlo el primero de la lista de jugadores
|
||||
|
||||
bool slow_game_enabled = false;
|
||||
enum class SlowPhase { NONE,
|
||||
SLOWING_DOWN,
|
||||
MAINTAINING,
|
||||
SPEEDING_UP };
|
||||
SlowPhase slow_phase = SlowPhase::NONE;
|
||||
|
||||
// Constante para elegir comportamiento de la fase central
|
||||
enum class CentralPhaseType {
|
||||
SLOW_MOTION,
|
||||
FREEZE_TIME
|
||||
};
|
||||
static const CentralPhaseType CENTRAL_PHASE_BEHAVIOR = CentralPhaseType::FREEZE_TIME;
|
||||
// Cambia a CentralPhaseType::FREEZE_TIME para congelar el tiempo
|
||||
|
||||
float original_speed;
|
||||
float target_slow_speed = 1000.0f / 15.0f; // Por ejemplo, 30 FPS
|
||||
|
||||
Uint32 maintain_start_time = 0;
|
||||
Uint32 slowing_down_duration = 0; // 2 segundos manteniendo velocidad lenta
|
||||
Uint32 maintain_duration = 600; // 2 segundos manteniendo velocidad lenta
|
||||
Uint32 speeding_up_duration = 2000; // 2 segundos manteniendo velocidad lenta
|
||||
|
||||
void updateSlowMotion();
|
||||
void enableSlowMotion() { slow_game_enabled = true; }
|
||||
|
||||
// SISTEMA DE GRABACIÓN (CONDICIONAL)
|
||||
#ifdef RECORDING
|
||||
void updateRecording(); // Actualiza variables durante modo de grabación
|
||||
|
||||
Reference in New Issue
Block a user