- Treballant en el editor de posició i tamany del bitmap
This commit is contained in:
@@ -23,19 +23,22 @@
|
||||
#include "m_editor_templates.h"
|
||||
#include "m_editor_colors.h"
|
||||
#include "m_editor_bitmap_file.h"
|
||||
#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_AUDIO 7
|
||||
#define M_EDITOR_MAP 8
|
||||
#define M_EDITOR_TEMPLATES 9
|
||||
#define M_EDITOR_COLORS 10
|
||||
#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_AUDIO 7
|
||||
#define M_EDITOR_MAP 8
|
||||
#define M_EDITOR_TEMPLATES 9
|
||||
#define M_EDITOR_COLORS 10
|
||||
#define M_EDITOR_BITMAP_FILE 11
|
||||
#define M_EDITOR_BITMAP 12
|
||||
|
||||
|
||||
int current_module = M_LOGO;
|
||||
int zoom = 3;
|
||||
@@ -150,6 +153,10 @@ bool game::loop()
|
||||
modules::editor_colors::init(); current_module = M_EDITOR_COLORS;
|
||||
} else if (option==GAME_EDITOR_BITMAP_FILE) {
|
||||
modules::editor_bitmap_file::init(); current_module = M_EDITOR_BITMAP_FILE;
|
||||
} else if (option==GAME_EDITOR_BITMAP_POS) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -173,6 +180,11 @@ bool game::loop()
|
||||
current_module = M_GAME;
|
||||
}
|
||||
break;
|
||||
case M_EDITOR_BITMAP:
|
||||
if (!modules::editor_bitmap::loop()) {
|
||||
current_module = M_GAME;
|
||||
}
|
||||
break;
|
||||
case M_INGAME:
|
||||
option = modules::ingame::loop();
|
||||
if (option != INGAME_NONE) {
|
||||
|
||||
Reference in New Issue
Block a user