aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/starting_screen.c
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2023-04-03 09:52:17 +0200
committerGitHub <noreply@github.com>2023-04-03 09:52:17 +0200
commitcc23564547b736125fe7e7869de277ea4d4455ab (patch)
treec74b48322acb426a205d5cc9a31351c902dfbb65 /src/game_loop/starting_screen.c
parent7f51cd925883bbf958baa289d4d19231667c9eba (diff)
parente987d23d915942ec4a3910b9cc2729f1b21361a9 (diff)
Merge pull request #48 from heavydemon21/dev
gameloop/bullet/levels
Diffstat (limited to 'src/game_loop/starting_screen.c')
-rw-r--r--src/game_loop/starting_screen.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/game_loop/starting_screen.c b/src/game_loop/starting_screen.c
new file mode 100644
index 0000000..6ab0278
--- /dev/null
+++ b/src/game_loop/starting_screen.c
@@ -0,0 +1,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;
+}