fix: el jugador saludant no es pintava si apareixia el lletrero de game over
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user