Ya se puede cambiar el JailerID desde la pantalla de titulo

This commit is contained in:
2023-09-24 08:53:11 +02:00
parent 6f1eee21b9
commit 458be05547
3 changed files with 29 additions and 13 deletions

View File

@@ -693,6 +693,20 @@ void Title::checkEvents()
// Reinicia el contador
counter = TITLE_COUNTER;
}
if (eventHandler->type == SDL_KEYDOWN)
{
switch (eventHandler->key.keysym.scancode)
{
case SDL_SCANCODE_A:
std::cout << "PULSA A" << std::endl;
runEnterID();
break;
default:
break;
}
}
}
}
}
@@ -1009,6 +1023,14 @@ void Title::runDemoGame()
delete demoGame;
}
// Introduce el JailerID
void Title::runEnterID()
{
enterID = new EnterID(renderer, screen, asset, options, section);
enterID->run();
delete enterID;
}
// Modifica las opciones para los controles de los jugadores
bool Title::updatePlayerInputs(int numPlayer)
{