Eliminado el menu de pausa
Eliminado el menu de game over Eliminado el menu de seleccionar jugador Se puede poner pausa y salir del juego desde ambos mandos
This commit is contained in:
@@ -77,6 +77,7 @@ void Title::init()
|
||||
fade->setType(FADE_RANDOM_SQUARE);
|
||||
fade->setPost(param->fadePostDuration);
|
||||
demo = true;
|
||||
numControllers = input->getNumControllers();
|
||||
}
|
||||
|
||||
// Actualiza las variables del objeto
|
||||
@@ -167,7 +168,7 @@ void Title::render()
|
||||
|
||||
// Dibuja el mosacico de fondo
|
||||
tiledbg->render();
|
||||
//backgroundObj->render();
|
||||
// backgroundObj->render();
|
||||
|
||||
// Dinuja el logo con el título del juego
|
||||
gameLogo->render();
|
||||
@@ -220,12 +221,23 @@ void Title::checkEvents()
|
||||
// Comprueba las entradas
|
||||
void Title::checkInput()
|
||||
{
|
||||
if (input->checkInput(input_exit, REPEAT_FALSE))
|
||||
// Comprueba todos los controladores
|
||||
for (int i = 0; i < numControllers; ++i)
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
if (input->checkInput(input_exit, REPEAT_FALSE, options->game.input[i].deviceType, options->game.input[i].id))
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_accept, REPEAT_FALSE, options->game.input[i].deviceType, options->game.input[i].id))
|
||||
{
|
||||
fade->activate();
|
||||
postFade = i;
|
||||
}
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_window_fullscreen, REPEAT_FALSE))
|
||||
// Comprueba solo el teclado
|
||||
if (input->checkInput(input_window_fullscreen, REPEAT_FALSE))
|
||||
{
|
||||
screen->switchVideoMode();
|
||||
}
|
||||
@@ -244,34 +256,6 @@ void Title::checkInput()
|
||||
{
|
||||
screen->switchShaders();
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_accept, REPEAT_FALSE))
|
||||
{
|
||||
fade->activate();
|
||||
postFade = 0;
|
||||
postFade = 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Cambia el valor de la variable de modo de pantalla completa
|
||||
void Title::switchFullScreenModeVar()
|
||||
{
|
||||
switch (options->video.mode)
|
||||
{
|
||||
case 0:
|
||||
options->video.mode = SDL_WINDOW_FULLSCREEN;
|
||||
break;
|
||||
case SDL_WINDOW_FULLSCREEN:
|
||||
options->video.mode = SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||
break;
|
||||
case SDL_WINDOW_FULLSCREEN_DESKTOP:
|
||||
options->video.mode = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
options->video.mode = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Bucle para el titulo del juego
|
||||
|
||||
Reference in New Issue
Block a user