Canviats defines per constexpr

This commit is contained in:
2025-02-21 12:27:03 +01:00
parent 788aec0dab
commit 134b679a75
17 changed files with 158 additions and 162 deletions

View File

@@ -9,21 +9,21 @@ class AnimatedSprite;
class Texture;
// Contadores
#define DEATH_COUNTER 350
constexpr int DEATH_COUNTER = 350;
// Estados del jugador
#define PLAYER_STATUS_WALKING_LEFT 0
#define PLAYER_STATUS_WALKING_RIGHT 1
#define PLAYER_STATUS_WALKING_STOP 2
constexpr int PLAYER_STATUS_WALKING_LEFT = 0;
constexpr int PLAYER_STATUS_WALKING_RIGHT = 1;
constexpr int PLAYER_STATUS_WALKING_STOP = 2;
#define PLAYER_STATUS_FIRING_UP 0
#define PLAYER_STATUS_FIRING_LEFT 1
#define PLAYER_STATUS_FIRING_RIGHT 2
#define PLAYER_STATUS_FIRING_NO 3
constexpr int PLAYER_STATUS_FIRING_UP = 0;
constexpr int PLAYER_STATUS_FIRING_LEFT = 1;
constexpr int PLAYER_STATUS_FIRING_RIGHT = 2;
constexpr int PLAYER_STATUS_FIRING_NO = 3;
// Variables del jugador
#define PLAYER_INVULNERABLE_COUNTER 200
#define PLAYER_POWERUP_COUNTER 1500
constexpr int PLAYER_INVULNERABLE_COUNTER = 200;
constexpr int PLAYER_POWERUP_COUNTER = 1500;
// Clase Player
class Player