- [NEW] Anbernics en el lloc i ja se poden recollir
- [CHG] Canviats uns pixels en les portes - [NEW] Sequencia de final de joc acabada - [NEW] Al pillar un booster fa sorollet - Treballant en el prólogo
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
#include "m_editor_colors.h"
|
||||
#include "m_editor_bitmap_file.h"
|
||||
#include "m_editor_bitmap.h"
|
||||
#include "m_end_sequence.h"
|
||||
|
||||
|
||||
#define M_LOGO 0
|
||||
#define M_INTRO 1
|
||||
@@ -43,6 +45,7 @@
|
||||
#define M_EDITOR_COLORS 12
|
||||
#define M_EDITOR_BITMAP_FILE 13
|
||||
#define M_EDITOR_BITMAP 14
|
||||
#define M_END 15
|
||||
|
||||
|
||||
int current_module = M_LOGO;
|
||||
@@ -55,6 +58,8 @@ void loadConfig()
|
||||
file::setConfigFolder("thepool");
|
||||
|
||||
if (strcmp(file::getConfigValue("music").c_str(), "no")==0) config::setMusic(false);
|
||||
|
||||
if (strcmp(file::getConfigValue("prologo").c_str(), "unlocked")==0) config::setProgoloDesbloquejat();
|
||||
|
||||
const char *so = file::getConfigValue("sound").c_str();
|
||||
if (strcmp(so, "basic")==0)
|
||||
@@ -140,11 +145,14 @@ bool game::loop()
|
||||
switch(current_module)
|
||||
{
|
||||
case M_LOGO:
|
||||
if (!modules::logo::loop()) { modules::intro::init(); current_module = M_INTRO; }
|
||||
if (!modules::logo::loop()) { modules::intro::init(); current_module = M_END; }
|
||||
break;
|
||||
case M_INTRO:
|
||||
if (!modules::intro::loop()) { modules::menu::init(); current_module = M_MENU; }
|
||||
break;
|
||||
case M_END:
|
||||
if (!modules::end_sequence::loop()) { modules::menu::init(); current_module = M_MENU; }
|
||||
break;
|
||||
case M_MENU:
|
||||
option = modules::menu::loop();
|
||||
if (option != OPTION_NONE) {
|
||||
@@ -182,7 +190,8 @@ bool game::loop()
|
||||
modules::editor_bitmap::init(EDITING_BITMAP_POS); current_module = M_EDITOR_BITMAP;
|
||||
} else if (option==GAME_EDITOR_BITMAP_SIZE) {
|
||||
modules::editor_bitmap::init(EDITING_BITMAP_SIZE); current_module = M_EDITOR_BITMAP;
|
||||
}
|
||||
} else if (option==GAME_END) { modules::end_sequence::init(); current_module = M_END; }
|
||||
|
||||
}
|
||||
break;
|
||||
case M_EDITOR_MAP:
|
||||
@@ -245,7 +254,6 @@ bool game::loop()
|
||||
modules::menu::init(); current_module = M_MENU;
|
||||
}
|
||||
break;
|
||||
|
||||
};
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user