fix(game): HUD lives desde YAML, prompt P1 en single-P2, countdown 9..0 configurable
This commit is contained in:
1 parent
78e164fce4
commit
5e862ceadc
9 files changed
+66
-29
No files matched your search
@@ -127,6 +127,11 @@ class Player : public AnimatedSprite {
|
||||
// Ha de cridar-se abans d'instanciar Player; GameScene ho fa al ctor.
|
||||
static void loadFrom(const std::string& yaml_path);
|
||||
|
||||
// Vides amb què arrenca un jugador (camp `lives:` del YAML del
|
||||
// jugador). El consumeix el HUD per inicialitzar el comptador del
|
||||
// marcador i `Player::resetForJoin` per a re-entrades mid-partida.
|
||||
[[nodiscard]] static auto getInitialLives() -> int { return death_config.initial_lives; }
|
||||
|
||||
Player(const std::string& anim_key, int id, float x, float y, const Controls& controls, const Map::Info& map_info, int paint_tile_index = -1);
|
||||
|
||||
// Update en una sola crida: manté l'API anterior per als tests i
|
||||
|
||||
Reference in new issue
Block a user