Ya se ven las notificaciones por pantalla

This commit is contained in:
2022-11-15 12:57:56 +01:00
parent 7d62b3a339
commit 754671e695
6 changed files with 57 additions and 20 deletions

View File

@@ -187,10 +187,6 @@ void Intro::checkEventHandler()
// Cualquier tecla pulsada
if ((eventHandler->type == SDL_KEYDOWN) || (eventHandler->type == SDL_JOYBUTTONDOWN))
{
JA_StopMusic();
section.name = PROG_SECTION_TITLE;
section.subsection = TITLE_SECTION_1;
switch (eventHandler->key.keysym.scancode)
{
case SDL_SCANCODE_F:
@@ -218,7 +214,14 @@ void Intro::checkEventHandler()
texture->reLoad();
break;
case SDL_SCANCODE_F5:
screen->showText("HOLA MAMA!");
break;
default:
JA_StopMusic();
section.name = PROG_SECTION_TITLE;
section.subsection = TITLE_SECTION_1;
break;
}
}
@@ -404,6 +407,8 @@ void Intro::update()
// Actualiza las escenas de la intro
updateScenes();
screen->updateNotifier();
}
}