Añadida la primera versión de la tabla de records

This commit is contained in:
2022-11-17 18:57:54 +01:00
parent 3e666689c5
commit 53c6da4a37
7 changed files with 275 additions and 10 deletions

View File

@@ -309,6 +309,10 @@ void Title::update()
{
runInstructions(m_auto);
}
if (section.name != PROG_SECTION_QUIT)
{
runHiScoreTable(mhst_auto);
}
}
else
section.name = PROG_SECTION_LOGO;
@@ -494,6 +498,10 @@ void Title::update()
{
runInstructions(m_auto);
}
if (section.name != PROG_SECTION_QUIT)
{
runHiScoreTable(mhst_auto);
}
init();
demo = false;
counter = TITLE_COUNTER;
@@ -665,7 +673,7 @@ void Title::checkEventHandler()
case SDL_SCANCODE_ESCAPE:
section.name = PROG_SECTION_QUIT;
break;
case SDL_SCANCODE_F:
screen->switchVideoMode();
reloadTextures();
@@ -962,6 +970,16 @@ section_t Title::runInstructions(mode_e mode)
return section;
}
// Ejecuta la parte donde se muestra la tabla de puntuaciones
section_t Title::runHiScoreTable(mode_hiScoreTable_e mode)
{
hiScoreTable = new HiScoreTable(renderer, screen, asset, lang, options);
section = hiScoreTable->run(mode);
delete hiScoreTable;
return section;
}
// Ejecuta el juego en modo demo
section_t Title::runDemoGame()
{