Ya se puede cambiar el JailerID desde la pantalla de titulo
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user