Añadidos nuevos trucos

This commit is contained in:
2022-11-06 15:00:03 +01:00
parent 0cb83657be
commit bf59cc01e4
3 changed files with 25 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ Director::Director(int argc, char *argv[])
section.name = SECTION_PROG_LOGO;
section.subsection = SUBSECTION_LOGO_TO_INTRO;
section.name = SECTION_PROG_GAME;
//section.name = SECTION_PROG_GAME;
// Crea e inicializa las opciones del programa
iniOptions();
@@ -85,8 +85,9 @@ void Director::iniOptions()
// Estos valores no se guardan en el fichero de configuraci´ón
options->console = false;
options->infiniteLives = false;
options->invincible = false;
options->cheat.infiniteLives = false;
options->cheat.invincible = false;
options->cheat.jailEnabled = false;
}
// Comprueba los parametros del programa
@@ -105,12 +106,17 @@ void Director::checkProgramArguments(int argc, char *argv[])
else if (strcmp(argv[i], "--infiniteLives") == 0)
{
options->infiniteLives = true;
options->cheat.infiniteLives = true;
}
else if (strcmp(argv[i], "--invincible") == 0)
{
options->invincible = true;
options->cheat.invincible = true;
}
else if (strcmp(argv[i], "--jailEnabled") == 0)
{
options->cheat.jailEnabled = true;
}
}
}