mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2026-01-11 02:43:04 +11:00
Add a module list with defines
This commit is contained in:
parent
969fe9deab
commit
58f7436c45
6 changed files with 58 additions and 49 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "game_data.h"
|
||||
#include "input.h"
|
||||
#include "sound.h"
|
||||
#include "module_list.h"
|
||||
|
||||
// External initialization requirements
|
||||
#pragma require __preserve_zp
|
||||
|
|
@ -54,7 +55,7 @@ void main(void) {
|
|||
shared_page->master_command = MASTER_COMMAND_NONE;
|
||||
}
|
||||
|
||||
shared_page->next_module_idx = 4; // Go to the GAME module
|
||||
shared_page->next_module_idx = MODULE_GAME; // Go to the GAME module
|
||||
gad->mode = GAME_MODE_NORMAL; // Set the proper start mode for the game
|
||||
|
||||
while(!read_any_key() && (wait_counter != WAIT_COUNTER_END)) {
|
||||
|
|
@ -63,7 +64,7 @@ void main(void) {
|
|||
}
|
||||
|
||||
if (wait_counter == WAIT_COUNTER_END) {
|
||||
shared_page->next_module_idx = 5; // Actually go to the DEMO module
|
||||
shared_page->next_module_idx = MODULE_DEMO; // Actually go to the DEMO module
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue