magic numbers: game.cpp i player.cpp

This commit is contained in:
2025-09-18 14:17:54 +02:00
parent 0c0518adac
commit 5c82916650
9 changed files with 46 additions and 333 deletions

View File

@@ -15,8 +15,8 @@ namespace Game {
constexpr float WIDTH = 320.0F;
constexpr float HEIGHT = 256.0F;
constexpr float ITEM_SIZE = 20.0F;
constexpr int NAME_ENTRY_IDLE_TIME = 10;
constexpr int NAME_ENTRY_TOTAL_TIME = 60;
constexpr int NAME_ENTRY_IDLE_TIME = 10000; // 10 segundos en milisegundos
constexpr int NAME_ENTRY_TOTAL_TIME = 60000; // 60 segundos en milisegundos
constexpr bool HIT_STOP = false;
constexpr int HIT_STOP_MS = 500;
constexpr const char* ITEM_TEXT_OUTLINE_COLOR = "FFFFFF00"; // 255, 255, 255, 0