aboutsummaryrefslogtreecommitdiff
path: root/src/GameLoop/startingScreen.c
blob: 4fc5af94029ea005d7933cc1ed05b5b8a330ea4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "startingScreen.h"
#include "input.h"
#include "engine/title_screen.h"
#include "engine/draw_screen.h"
// #include "engine/player_controller.h"

bool hh_show_startingScreen(){
	static hh_e_screenStates hh_e_startingScreen = hh_e_STATE_SHOW;
	
	switch (hh_e_startingScreen)
	{
	case hh_e_STATE_SHOW:
		hh_clear_screen();
		hh_init_title_screen();
		hh_e_startingScreen = hh_e_STATE_Input;
		return false;
		break;
	case hh_e_STATE_Input:
		if(g_hh_controller_p1.button_primary){
			hh_e_startingScreen = hh_e_STATE_END;
		}
		break;
	case hh_e_STATE_END:
		hh_e_startingScreen = hh_e_STATE_SHOW;
		return true;
		break;
	default:
		hh_e_startingScreen = hh_e_STATE_SHOW;
		break;
	}
	return false;
}