fix: el jugador saludant no es pintava si apareixia el lletrero de game over
This commit is contained in:
@@ -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]
|
||||||
|
|
||||||
[animation]
|
[animation]
|
||||||
name=dead
|
name=dizzy
|
||||||
speed=5
|
speed=5
|
||||||
loop=0
|
loop=0
|
||||||
frames=47,48,49,50,51,52,53
|
frames=47,48,49,50,51,52,53
|
||||||
|
|||||||
@@ -464,6 +464,7 @@ void Player::setAnimation() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case State::WAITING:
|
case State::WAITING:
|
||||||
|
case State::GAME_OVER:
|
||||||
player_sprite_->setCurrentAnimation("hello");
|
player_sprite_->setCurrentAnimation("hello");
|
||||||
break;
|
break;
|
||||||
case State::ROLLING:
|
case State::ROLLING:
|
||||||
@@ -473,7 +474,7 @@ void Player::setAnimation() {
|
|||||||
case State::LYING_ON_THE_FLOOR_FOREVER:
|
case State::LYING_ON_THE_FLOOR_FOREVER:
|
||||||
case State::ENTERING_NAME:
|
case State::ENTERING_NAME:
|
||||||
case State::CONTINUE:
|
case State::CONTINUE:
|
||||||
player_sprite_->setCurrentAnimation("dead");
|
player_sprite_->setCurrentAnimation("dizzy");
|
||||||
break;
|
break;
|
||||||
case State::CELEBRATING:
|
case State::CELEBRATING:
|
||||||
player_sprite_->setCurrentAnimation("celebration");
|
player_sprite_->setCurrentAnimation("celebration");
|
||||||
@@ -928,7 +929,8 @@ void Player::playSound(const std::string &name) const {
|
|||||||
|
|
||||||
// Indica si se puede dibujar el objeto
|
// Indica si se puede dibujar el objeto
|
||||||
auto Player::isRenderable() const -> bool {
|
auto Player::isRenderable() const -> bool {
|
||||||
return !isGameOver() && !isTitleHidden();
|
//return !isGameOver() && !isTitleHidden();
|
||||||
|
return !isTitleHidden();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Añade una puntuación a la tabla de records
|
// Añade una puntuación a la tabla de records
|
||||||
|
|||||||
Reference in New Issue
Block a user