afegit mode autoplay en debug

This commit is contained in:
2026-04-04 10:42:31 +02:00
parent 4c1ed1cf9b
commit 1a2298963d
4 changed files with 100 additions and 2 deletions

View File

@@ -198,6 +198,10 @@ class Game {
#ifdef _DEBUG
bool auto_pop_balloons_ = false; // Si es true, incrementa automaticamente los globos explotados
bool autoplay_ = false; // Si es true, los jugadores se mueven solos con datos de demo
float autoplay_elapsed_s_ = 0.0F;
int autoplay_index_ = 0;
std::vector<DemoData> autoplay_data_;
#endif
// --- Ciclo principal del juego ---
@@ -349,5 +353,6 @@ class Game {
// --- Depuración (solo en modo DEBUG) ---
#ifdef _DEBUG
void handleDebugEvents(const SDL_Event& event); // Comprueba los eventos en el modo DEBUG
void autoplayHandleInput(); // Alimenta input de demo a los jugadores en autoplay
#endif
};