diff --git a/source/game.cpp b/source/game.cpp index 504e3ae..8d5a5d4 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -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); } diff --git a/source/player.cpp b/source/player.cpp index 874e1a3..5e26706 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -155,7 +155,7 @@ void Player::move() // Pinta el jugador en pantalla void Player::render() { - if (powerUp) + if (powerUp && alive) { powerSprite->render(); }