Skip to content

Commit

Permalink
new screens setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Flicksie committed May 16, 2022
1 parent 3eb26e6 commit 6bc5cf9
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
#include <genesis.h>

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


Expand All @@ -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;
}
Expand Down

0 comments on commit 6bc5cf9

Please sign in to comment.