añadido map.h y map.cpp

This commit is contained in:
2022-07-01 20:21:28 +02:00
parent 37325a2ec3
commit 661b920dfa
7 changed files with 70 additions and 32 deletions

View File

@@ -17,9 +17,9 @@ Director::Director(std::string path)
setFileList();
// Si falta algún fichero no inicia el programa
Uint8 section = PROG_SECTION_GAME;
Uint8 section = SECTION_PROG_GAME;
if (!mAsset->check())
section = PROG_SECTION_QUIT;
section = SECTION_PROG_QUIT;
// Inicializa el objeto de idioma
mLang = new Lang(mAsset);
@@ -360,20 +360,20 @@ void Director::runGame()
void Director::run()
{
// Bucle principal
while (!(getSection() == PROG_SECTION_QUIT))
while (!(getSection() == SECTION_PROG_QUIT))
{
switch (getSection())
{
case PROG_SECTION_LOGO:
case SECTION_PROG_LOGO:
runLogo();
break;
case PROG_SECTION_INTRO:
case SECTION_PROG_INTRO:
runIntro();
break;
case PROG_SECTION_TITLE:
case SECTION_PROG_TITLE:
runTitle();
break;
case PROG_SECTION_GAME:
case SECTION_PROG_GAME:
runGame();
break;
}