fix: en el mode demo, el segon jugador no tenia cafes
fix: al morir es quedava per ahi el foguet del powerup
This commit is contained in:
@@ -311,12 +311,18 @@ void Game::init(int playerID)
|
||||
players[otherPlayer - 1]->enable(true);
|
||||
}
|
||||
|
||||
// Añade 0, 1 o 2 cafes al jugador
|
||||
// Añade 0, 1 o 2 cafes al jugador 1
|
||||
for (int i = 0; i < rand() % 3; ++i)
|
||||
{
|
||||
players[0]->giveExtraHit();
|
||||
}
|
||||
|
||||
// Añade 0, 1 o 2 cafes al jugador 2
|
||||
for (int i = 0; i < rand() % 3; ++i)
|
||||
{
|
||||
players[1]->giveExtraHit();
|
||||
}
|
||||
|
||||
// Deshabilita los sonidos
|
||||
JA_EnableSound(false);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ void Player::move()
|
||||
// Pinta el jugador en pantalla
|
||||
void Player::render()
|
||||
{
|
||||
if (powerUp)
|
||||
if (powerUp && alive)
|
||||
{
|
||||
powerSprite->render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user