aboutsummaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/demo.c b/src/demo.c
index aae1729..20f8381 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -59,20 +59,22 @@ void hh_demo_loop(unsigned long frame) {
}
break;
case hh_e_state_shop:
- hh_shop(&hh_game_states);
+ hh_shop(&hh_game_states, &hh_game.shop);
break;
case hh_e_state_gameplay:
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;