blob: 8e6dc713af59afa237699c77d865f1d519cd2b7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "shop.h"
void hh_Shop(hh_e_GameState* hh_game_state){
static hh_e_ShopStates 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;
}
}
|