aboutsummaryrefslogtreecommitdiff
path: root/src/GameLoop/shop.c
blob: 31ff5ce41da2116624ddb2cd61eadee9172c4313 (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
#include "shop.h"


bool hh_show_Shop(){
	static hh_e_ShopStates hh_e_Shop = hh_e_STATE_SHOW;
	
	switch (hh_e_Shop)
	{
	case hh_e_STATE_SHOW:
		hh_setup_startingScreen();
		hh_e_Shop = hh_e_STATE_Input;
		return false;
		break;
	case hh_e_STATE_Input:
		if(g_hh_controller_p1.dpad_right){
			hh_e_Shop = hh_e_STATE_END;
		}
		break;
	case hh_e_STATE_END:
		hh_e_Shop = hh_e_STATE_SHOW;
		return true;
		break;
	default:
		hh_e_Shop = hh_e_STATE_SHOW;
		break;
	}
	return false;
}