From e88c48ae60dd48542e44b0cc244b191c91782681 Mon Sep 17 00:00:00 2001 From: UnavailableDev Date: Thu, 6 Apr 2023 21:36:24 +0200 Subject: random shop items + animations --- src/demo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/demo.c') diff --git a/src/demo.c b/src/demo.c index c8e3c0e..d072dbc 100644 --- a/src/demo.c +++ b/src/demo.c @@ -48,6 +48,8 @@ void hh_demo_setup() { } void hh_demo_loop(unsigned long frame) { + static uint64_t hh_rng_seed = 0; + hh_rng_seed++; switch (hh_game_states) @@ -59,7 +61,7 @@ void hh_demo_loop(unsigned long frame) { } break; case hh_e_state_shop: - hh_shop(&hh_game_states, &hh_game.shop, hh_game.current_level); + hh_e_upgrades upg = hh_shop(&hh_game_states, &hh_game, hh_rng_seed); break; case hh_e_state_gameplay: hh_gameplay(&hh_game, &hh_game_states); -- cgit v1.2.3