forked from jaildesigner-jailgames/jaildoctors_dilemma
Añadido el cambio de borde, tamaño de ventana y paleta a todas las secciones del juego
This commit is contained in:
@@ -94,11 +94,15 @@ void Intro::checkEventHandler()
|
||||
break;
|
||||
}
|
||||
|
||||
// Cualquier tecla pulsada
|
||||
if ((eventHandler->type == SDL_KEYDOWN) || (eventHandler->type == SDL_JOYBUTTONDOWN))
|
||||
// Comprueba las teclas que se han pulsado
|
||||
if ((eventHandler->type == SDL_KEYDOWN && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONDOWN))
|
||||
{
|
||||
switch (eventHandler->key.keysym.scancode)
|
||||
{
|
||||
case SDL_SCANCODE_ESCAPE:
|
||||
section.name = SECTION_PROG_QUIT;
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_B:
|
||||
screen->switchBorder();
|
||||
resource->reLoadTextures();
|
||||
@@ -135,6 +139,7 @@ void Intro::checkEventHandler()
|
||||
|
||||
default:
|
||||
section.name = SECTION_PROG_TITLE;
|
||||
section.subsection = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -293,13 +298,13 @@ void Intro::switchPalette()
|
||||
if (options->palette == p_zxspectrum)
|
||||
{
|
||||
options->palette = p_zxarne;
|
||||
loadingScreenTexture1 = resource->getTexture("loading_screen_bn_zxarne.png");
|
||||
loadingScreenTexture2 = resource->getTexture("loading_screen_color_zxarne.png");
|
||||
sprite1->setTexture(resource->getTexture("loading_screen_bn_zxarne.png"));
|
||||
sprite2->setTexture(resource->getTexture("loading_screen_color_zxarne.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
options->palette = p_zxspectrum;
|
||||
loadingScreenTexture1 = resource->getTexture("loading_screen_bn.png");
|
||||
loadingScreenTexture2 = resource->getTexture("loading_screen_color.png");
|
||||
sprite1->setTexture(resource->getTexture("loading_screen_bn.png"));
|
||||
sprite2->setTexture(resource->getTexture("loading_screen_color.png"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user