- [NEW] Afegit xicotet detall al logo

- [NEW] Sequencia de introducció (ongoing)
This commit is contained in:
2024-10-04 14:00:27 +02:00
parent c3d1b672c2
commit f84eb3e238
12 changed files with 253 additions and 31 deletions

View File

@@ -15,6 +15,7 @@
#include "m_game.h"
#include "m_menu.h"
#include "m_logo.h"
#include "m_intro.h"
#include "m_ingame.h"
#include "m_gameover.h"
#include "m_catslife.h"
@@ -28,19 +29,20 @@
#include "m_editor_bitmap.h"
#define M_LOGO 0
#define M_MENU 1
#define M_GAME 2
#define M_INGAME 3
#define M_GAMEOVER 4
#define M_CATSLIFE 5
#define M_MENU_TECLES 6
#define M_MENU_GAMEPAD 7
#define M_MENU_AUDIO 8
#define M_EDITOR_MAP 9
#define M_EDITOR_TEMPLATES 10
#define M_EDITOR_COLORS 11
#define M_EDITOR_BITMAP_FILE 12
#define M_EDITOR_BITMAP 13
#define M_INTRO 1
#define M_MENU 2
#define M_GAME 3
#define M_INGAME 4
#define M_GAMEOVER 5
#define M_CATSLIFE 6
#define M_MENU_TECLES 7
#define M_MENU_GAMEPAD 8
#define M_MENU_AUDIO 9
#define M_EDITOR_MAP 10
#define M_EDITOR_TEMPLATES 11
#define M_EDITOR_COLORS 12
#define M_EDITOR_BITMAP_FILE 13
#define M_EDITOR_BITMAP 14
int current_module = M_LOGO;
@@ -138,7 +140,10 @@ bool game::loop()
switch(current_module)
{
case M_LOGO:
if (!modules::logo::loop()) { modules::menu::init(); current_module = M_MENU; }
if (!modules::logo::loop()) { modules::intro::init(); current_module = M_INTRO; }
break;
case M_INTRO:
if (!modules::intro::loop()) { modules::menu::init(); current_module = M_MENU; }
break;
case M_MENU:
option = modules::menu::loop();