ara pots recolocar al jugador en debug amb el ratoli

This commit is contained in:
2025-11-21 21:16:03 +01:00
parent 4fc5947ba7
commit 7479231110
5 changed files with 97 additions and 1 deletions

View File

@@ -103,6 +103,12 @@ class Player {
[[nodiscard]] auto isAlive() const -> bool { return is_alive_; } // Comprueba si el jugador esta vivo
void setPaused(bool value) { is_paused_ = value; } // Pone el jugador en modo pausa
#ifdef _DEBUG
// --- Funciones de debug ---
void setDebugPosition(float x, float y); // Establece la posición del jugador directamente (debug)
void finalizeDebugTeleport(); // Fija estado ON_GROUND, velocidades a 0, actualiza last_grounded_position_ (debug)
#endif
private:
// --- Constantes ---
static constexpr int WIDTH = 8; // Ancho del jugador