diff options
author | UnavailableDev <ggwildplay@gmail.com> | 2023-04-06 21:36:24 +0200 |
---|---|---|
committer | UnavailableDev <ggwildplay@gmail.com> | 2023-04-06 21:36:24 +0200 |
commit | e88c48ae60dd48542e44b0cc244b191c91782681 (patch) | |
tree | 344243247b21a93311a9cc2173fbddb2d126c040 /src/demo.c | |
parent | 03748610041bcc8ec7a7743e9a5fb35c06731fa0 (diff) |
random shop items + animations
Diffstat (limited to 'src/demo.c')
-rw-r--r-- | src/demo.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |