fix: el jugador saludant no es pintava si apareixia el lletrero de game over

This commit is contained in:
2025-08-10 20:05:55 +02:00
parent 4695f14de6
commit 0fc709f6d5
2 changed files with 5 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ frames=42,42,42,42,42,42,43,44,45,46,46,46,46,46,46,45,45,45,46,46,46,45,45,45,4
[/animation]
[animation]
name=dead
name=dizzy
speed=5
loop=0
frames=47,48,49,50,51,52,53

View File

@@ -464,6 +464,7 @@ void Player::setAnimation() {
break;
}
case State::WAITING:
case State::GAME_OVER:
player_sprite_->setCurrentAnimation("hello");
break;
case State::ROLLING:
@@ -473,7 +474,7 @@ void Player::setAnimation() {
case State::LYING_ON_THE_FLOOR_FOREVER:
case State::ENTERING_NAME:
case State::CONTINUE:
player_sprite_->setCurrentAnimation("dead");
player_sprite_->setCurrentAnimation("dizzy");
break;
case State::CELEBRATING:
player_sprite_->setCurrentAnimation("celebration");
@@ -928,7 +929,8 @@ void Player::playSound(const std::string &name) const {
// Indica si se puede dibujar el objeto
auto Player::isRenderable() const -> bool {
return !isGameOver() && !isTitleHidden();
//return !isGameOver() && !isTitleHidden();
return !isTitleHidden();
};
// Añade una puntuación a la tabla de records