25 #include "common/events.h" 26 #include "common/queue.h" 27 #include "got/data/defines.h" 28 #include "got/data/highscores.h" 29 #include "got/data/level.h" 30 #include "got/data/sd_data.h" 31 #include "got/data/setup.h" 32 #include "got/data/thorinfo.h" 33 #include "got/game/script.h" 34 #include "got/gfx/font.h" 35 #include "got/gfx/gfx_chunks.h" 36 #include "got/gfx/gfx_pics.h" 37 #include "got/metaengine.h" 38 #include "got/sound.h" 39 #include "graphics/screen.h" 44 #define TILES_X (320 / TILE_SIZE) 45 #define TILES_Y (192 / TILE_SIZE) 46 #define TILES_COUNT (TILES_X * TILES_Y) 53 key_none = KEYBIND_NONE,
55 key_down = KEYBIND_DOWN,
56 key_left = KEYBIND_LEFT,
57 key_right = KEYBIND_RIGHT,
58 key_fire = KEYBIND_FIRE,
59 key_magic = KEYBIND_MAGIC,
60 key_select = KEYBIND_SELECT
83 bool _freezeHealth =
false;
84 bool _freezeMagic =
false;
85 bool _freezeJewels =
false;
94 void setArea(
int areaNum);
97 void resetEndGameFlags();
111 GameMode _gameMode = MODE_NORMAL;
112 TransitionDir _transitionDir = DIR_LEFT;
115 bool _useItemFlag =
false;
116 bool _slipFlag =
false;
117 bool _slipping =
false;
119 bool _bossIntro1 =
false;
120 bool _bossIntro2 =
false;
125 byte _keyFlag[100] = {};
127 bool _diagFlag =
false;
128 bool _slowMode =
false;
129 bool _startup =
true;
130 bool _shotOk =
false;
138 uint _magicCounter = 0;
140 byte _objectMap[TILES_COUNT] = {};
141 byte _objectIndex[TILES_COUNT] = {};
146 int8 _levelMusic = 0;
147 int8 _currentMusic = -1;
148 int8 _appleDropCounter = 0;
156 byte *_tmpBuff =
nullptr;
158 Actor _actor[MAX_ACTORS] = {};
159 Actor _enemy[MAX_ENEMIES] = {};
160 Actor _shot[MAX_ENEMIES] = {};
161 int8 _enemyType[MAX_ENEMIES] = {};
162 int _etype[MAX_ENEMIES] = {};
164 Actor _magicItem[2] = {};
165 byte _magicPic[2][1024] = {};
166 bool _warpScroll =
false;
168 Actor *_thor =
nullptr;
169 Actor *_hammer =
nullptr;
173 bool _bossDead =
false;
176 bool _warpFlag =
false;
180 int _thunderSnakeCounter = 0;
181 bool _tornadoUsed =
false;
182 bool _shieldOn =
false;
183 bool _appleFlag =
false;
186 bool _musicFlag =
false;
187 bool _soundFlag =
false;
188 bool _cashDoor1Inform =
false;
189 bool _cashDoor2Inform =
false;
190 bool _keyDoorInform =
false;
191 bool _magicMissingInform =
false;
192 bool _cantCarryInform =
false;
193 bool _killGoodGuyInform =
false;
195 bool _bossActive =
false;
196 bool _storyFlag =
true;
197 int8 *_scr =
nullptr;
199 bool _gameOver =
false;
200 bool _endTile =
false;
201 int _currentLevel = 23;
203 int _newLevelTile = 0;
204 int _currentArea = 0;
205 bool _thorSpecialFlag =
false;
206 byte _explosionRow = 0;
210 #define _G(X) (g_vars->_##X) Definition: highscores.h:43
Definition: gfx_chunks.h:80
Definition: gfx_pics.h:77
Definition: gfx_pics.h:64
Definition: thorinfo.h:29