aboutsummaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-05 20:46:53 +0200
committerNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-05 20:46:53 +0200
commitdc5e246ff1e8d89e59acf70c149f180fb41dd584 (patch)
treede7f2c3849a4ab6889747531452b7963ecf59f8c /src/demo.c
parent854a80001b9798d1454e4308e4efba96431e44d8 (diff)
enemy and ai, bullets and gameplay
ai needs finetuning
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demo.c b/src/demo.c
index aae1729..8e7af93 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -65,14 +65,16 @@ void hh_demo_loop(unsigned long frame) {
hh_gameplay(&hh_game, &hh_game_states);
break;
case hh_e_state_game_over:
- // todo:
+ // TODO:
// function: show game over screen
// function: after time goto high score
+ hh_game_states = hh_e_state_high_score;
break;
case hh_e_state_high_score:
// todo:
// fucntion: show all previously scored points
// function: button pressed goto starting screen
+ hh_game_states = hh_e_state_starting_screen;
break;
default:
hh_game_states = hh_e_state_starting_screen;