aboutsummaryrefslogtreecommitdiff
path: root/src/game_loop/shop.c
blob: b3d2234e2116d5697fa57cbe9d6c02316fb87c9c (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_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;
	}
}