fix: en el modo demo solo se creaban balas rectas hacia arriba
This commit is contained in:
@@ -2768,7 +2768,7 @@ void Game::checkInput()
|
|||||||
if (players[index]->canFire())
|
if (players[index]->canFire())
|
||||||
{
|
{
|
||||||
players[index]->setInput(input_fire_left);
|
players[index]->setInput(input_fire_left);
|
||||||
createBullet(players[index]->getPosX() + (players[index]->getWidth() / 2) - 4, players[index]->getPosY() + (players[index]->getHeight() / 2), BULLET_UP, players[index]->isPowerUp(), index);
|
createBullet(players[index]->getPosX() + (players[index]->getWidth() / 2) - 4, players[index]->getPosY() + (players[index]->getHeight() / 2), BULLET_LEFT, players[index]->isPowerUp(), index);
|
||||||
players[index]->setFireCooldown(10);
|
players[index]->setFireCooldown(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2778,7 +2778,7 @@ void Game::checkInput()
|
|||||||
if (players[index]->canFire())
|
if (players[index]->canFire())
|
||||||
{
|
{
|
||||||
players[index]->setInput(input_fire_right);
|
players[index]->setInput(input_fire_right);
|
||||||
createBullet(players[index]->getPosX() + (players[index]->getWidth() / 2) - 4, players[index]->getPosY() + (players[index]->getHeight() / 2), BULLET_UP, players[index]->isPowerUp(), index);
|
createBullet(players[index]->getPosX() + (players[index]->getWidth() / 2) - 4, players[index]->getPosY() + (players[index]->getHeight() / 2), BULLET_RIGHT, players[index]->isPowerUp(), index);
|
||||||
players[index]->setFireCooldown(10);
|
players[index]->setFireCooldown(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user