Add a module list with defines

This commit is contained in:
hkz 2025-10-07 12:52:38 +02:00
commit 58f7436c45
6 changed files with 58 additions and 49 deletions

View file

@ -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;
}