diff options
Diffstat (limited to 'src/game_loop/shop.c')
-rw-r--r-- | src/game_loop/shop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game_loop/shop.c b/src/game_loop/shop.c index eb41248..da27524 100644 --- a/src/game_loop/shop.c +++ b/src/game_loop/shop.c @@ -2,7 +2,7 @@ #include "engine/maths.h" #include "ppu/ppu.h" -void hh_shop(hh_e_game_state* hh_game_state){ +void hh_shop(hh_e_game_state* hh_game_state, hh_level_entity* level_shop){ static hh_e_shop_states hh_e_shop = hh_e_shop_show; static hh_e_upgrades upgrades[HH_SHOP_UPG_DISPLAY] = {0}; static uint8_t selected = 0; @@ -11,11 +11,11 @@ void hh_shop(hh_e_game_state* hh_game_state){ switch (hh_e_shop) { case hh_e_shop_show: - hh_clear_screen(); - hh_clear_sprite(); + // hh_clear_screen(); + // hh_clear_sprite(); // TODO: make function to show shop - // hh_setup_screen(); //hh_setup_shop(); + hh_setup_screen(*level_shop); hh_shop_init(&upgrades); selected = HH_SHOP_UPG_DISPLAY/2; hh_shop_display(selected, &upgrades); @@ -33,7 +33,7 @@ void hh_shop(hh_e_game_state* hh_game_state){ } if(g_hh_controller_p1.button_primary){ //apply selected upgrade - hh_e_shop = hh_e_shop_end; + // hh_e_shop = hh_e_shop_end; } if(g_hh_controller_p1.button_secondary){//Quick exit hh_e_shop = hh_e_shop_end; @@ -60,7 +60,7 @@ void hh_shop_init(hh_e_upgrades* in) { } void hh_shop_display(uint8_t selected, hh_e_upgrades* upgrades) { - const vec_cor start = {48,16}; + const vec_cor start = {104,144+16}; const uint8_t up = 8, space = 24+8; |