Finalitzada la part de entrar nom. Falta posar un temporitzador i una animació

This commit is contained in:
2024-09-30 19:35:41 +02:00
parent 6acf0b7efc
commit 0af441b5df
5 changed files with 25 additions and 19 deletions

View File

@@ -2265,13 +2265,16 @@ void Game::checkInput()
const bool fire3 = input->checkInput(input_fire_right, INPUT_DO_NOT_ALLOW_REPEAT, options.controller[controllerIndex].deviceType, options.controller[controllerIndex].index);
if (fire1 || fire2 || fire3)
{
player->setInput(input_right);
if (player->getRecordNamePos() == 7)
{
player->setInput(input_start);
addScoreToScoreBoard(player->getRecordName(), player->getScore());
player->setStatusPlaying(PLAYER_STATUS_CONTINUE);
}
else
{
player->setInput(input_right);
}
}
else if (input->checkInput(input_up, INPUT_DO_NOT_ALLOW_REPEAT, options.controller[controllerIndex].deviceType, options.controller[controllerIndex].index))
{