blob: 6ab027881485a6909a0270767292e5c57526dde8 (
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 "starting_screen.h""
#include "input.h"
#include "engine/title_screen.h"
#include "engine/draw_screen.h"
// #include "engine/player_controller.h"
bool hh_show_starting_screen(){
static hh_e_screen_states hh_e_starting_screen = hh_e_state_show;
switch (hh_e_starting_screen)
{
case hh_e_state_show:
hh_clear_screen();
hh_init_title_screen();
hh_e_starting_screen = hh_e_state_input;
return false;
break;
case hh_e_state_input:
if(g_hh_controller_p1.button_primary){
hh_e_starting_screen = hh_e_state_end;
}
break;
case hh_e_state_end:
hh_e_starting_screen = hh_e_state_show;
return true;
break;
default:
hh_e_starting_screen = hh_e_state_show;
break;
}
return false;
}
|