From 6bc5cf99fbd7cae399cf500051e04cbe2215e48a Mon Sep 17 00:00:00 2001 From: Tsumari Date: Mon, 16 May 2022 09:36:47 -0300 Subject: [PATCH] new screens setup --- src/main.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/src/main.c b/src/main.c index 548c370..45f5486 100644 --- a/src/main.c +++ b/src/main.c @@ -1,28 +1,17 @@ #include -#include "tracklist.h" -#include "xgm_tool.h" -#include "ym_state.h" -#include "psg_state.h" -#include "xd3.h" -#include "log_tab.h" - -#include "smp_null.h" -#include "music.h" -#include "gfx.h" -#include "font.h" - #include "joy_handler.h" #include "screen_state.h" #include "screens/title.h" #include "screens/player.h" -#include "screens/test.h" +#include "screens/menu.h" +#include "screens/info.h" void basicInit(){ JOY_init(); - currentState = STATE_MENU; + currentState = STATE_LOGO; } @@ -33,11 +22,19 @@ int main() while(1){ switch(currentState){ - case STATE_MENU:{ + case STATE_LOGO:{ processStateMenu(); break; } - case STATE_PLAY:{ + case STATE_INFO:{ + infoScreen(); + break; + } + case STATE_MENU:{ + menuScreen(); + break; + } + case STATE_PLAYER:{ playerScreen(); break; }