diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-03 09:52:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 09:52:17 +0200 |
commit | cc23564547b736125fe7e7869de277ea4d4455ab (patch) | |
tree | c74b48322acb426a205d5cc9a31351c902dfbb65 /src/game_loop/shop.c | |
parent | 7f51cd925883bbf958baa289d4d19231667c9eba (diff) | |
parent | e987d23d915942ec4a3910b9cc2729f1b21361a9 (diff) |
Merge pull request #48 from heavydemon21/dev
gameloop/bullet/levels
Diffstat (limited to 'src/game_loop/shop.c')
-rw-r--r-- | src/game_loop/shop.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/game_loop/shop.c b/src/game_loop/shop.c new file mode 100644 index 0000000..b3d2234 --- /dev/null +++ b/src/game_loop/shop.c @@ -0,0 +1,30 @@ +#include "shop.h" + + +void hh_shop(hh_e_game_state* hh_game_state){ + static hh_e_shop_states hh_e_shop = hh_e_shop_show; + + switch (hh_e_shop) + { + case hh_e_shop_show: + hh_clear_screen(); + hh_clear_sprite(); + // todo: make function to show shop + //hh_setup_shop(); + hh_e_shop = hh_e_shop_input; + break; + case hh_e_shop_input: + // todo: make it so that you can choose between shop + if(g_hh_controller_p1.button_primary){ + hh_e_shop = hh_e_shop_end; + } + break; + case hh_e_shop_end: + hh_e_shop = hh_e_shop_show; + *hh_game_state = hh_e_state_gameplay; + break; + default: + hh_e_shop = hh_e_shop_show; + break; + } +} |