- Prologo quasi acabat

This commit is contained in:
2024-10-08 13:59:04 +02:00
parent 119136332b
commit 9827865e9c
16 changed files with 332 additions and 113 deletions

View File

@@ -28,7 +28,7 @@
#include "m_editor_bitmap_file.h"
#include "m_editor_bitmap.h"
#include "m_end_sequence.h"
#include "m_prologo_intro.h"
#define M_LOGO 0
#define M_INTRO 1
@@ -46,6 +46,7 @@
#define M_EDITOR_BITMAP_FILE 13
#define M_EDITOR_BITMAP 14
#define M_END 15
#define M_PROLOGO_INTRO 16
int current_module = M_LOGO;
@@ -150,6 +151,9 @@ bool game::loop()
case M_INTRO:
if (!modules::intro::loop()) { modules::menu::init(); current_module = M_MENU; }
break;
case M_PROLOGO_INTRO:
if (!modules::prologo_intro::loop()) { modules::game::init(true); current_module = M_GAME; }
break;
case M_END:
if (!modules::end_sequence::loop()) { modules::menu::init(); current_module = M_MENU; }
break;
@@ -157,7 +161,7 @@ bool game::loop()
option = modules::menu::loop();
if (option != OPTION_NONE) {
if (option == OPTION_EIXIR) return false;
if (option == OPTION_PROLOGO) { modules::game::init(true); current_module = M_GAME; }
if (option == OPTION_PROLOGO) { modules::prologo_intro::init(); current_module = M_PROLOGO_INTRO; }
if (option == OPTION_JUGAR) { modules::game::init(); current_module = M_GAME; }
if (option == OPTION_TECLES) { modules::menu_tecles::init(); current_module = M_MENU_TECLES; }
if (option == OPTION_GAMEPAD) { modules::menu_gamepad::init(); current_module = M_MENU_GAMEPAD; }