controls help screen
[gbajam22] / src / gba / main.c
index 982463f..4ade404 100644 (file)
@@ -5,7 +5,9 @@
 #include "game.h"
 #include "maxmod.h"
 #include "input.h"
+#include "timer.h"
 #include "xgl.h"
+#include "scoredb.h"
 
 static void vblank(void);
 
@@ -34,6 +36,9 @@ int main(void)
        REG_DISPSTAT |= DISPSTAT_IEN_VBLANK;
        unmask(INTR_VBLANK);
 
+       load_scores();
+       gba_colors = scores[10].score & 1;
+
        xgl_init();
 
        if(init_screens() == -1) {
@@ -44,6 +49,7 @@ int main(void)
                panic(get_pc(), "failed to find starting screen");
        }
 
+       reset_msec_timer();
        intr_enable();
 
        for(;;) {