Introduce the game variables struct (#338)

Co-authored-by: emiyl <me@emiyl.com>

* Introduce the game variables struct

* Fix clang format

* Move game variables into their own file
This commit is contained in:
Rickey
2026-03-29 14:32:21 -07:00
committed by GitHub
co-authored by emiyl
parent 34fb0b22db
commit 835e44e4db
5 changed files with 73 additions and 45 deletions
+3 -3
View File
@@ -11,7 +11,7 @@
static const Rect COUNTDOWN_TIMER_RECT = {208, 144, 240, 152};
static uint timer = 0;
void splash_screen_on_init()
void splash_screen_on_init(GameVariables* vars)
{
timer = 0;
@@ -25,7 +25,7 @@ void splash_screen_on_init()
tte_printf("#{P:8,144; cx:0xF000}(Press any key to skip)");
}
void splash_screen_on_update()
void splash_screen_on_update(GameVariables* vars)
{
timer++;
@@ -49,7 +49,7 @@ void splash_screen_on_update()
tte_erase_screen();
}
void splash_screen_on_exit()
void splash_screen_on_exit(GameVariables* vars)
{
mmStart(MOD_MAIN_THEME, MM_PLAY_LOOP);
}