aboutsummaryrefslogtreecommitdiff
path: root/src/GameLoop/shop.c
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2023-03-20 19:11:41 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2023-03-20 19:11:41 +0100
commit72295b9df9c0de9e585cce3f41437965eb0390cb (patch)
treec4ec60c1773b654edd2177b5082d5d7d584b2ea4 /src/GameLoop/shop.c
parente79c36460f400991caa82598499c0ea7c37ebb90 (diff)
demo version
Diffstat (limited to 'src/GameLoop/shop.c')
-rw-r--r--src/GameLoop/shop.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/GameLoop/shop.c b/src/GameLoop/shop.c
new file mode 100644
index 0000000..eb6bed5
--- /dev/null
+++ b/src/GameLoop/shop.c
@@ -0,0 +1,30 @@
+#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_clear_screen();
+
+ //hh_setup_shop();
+ hh_e_Shop = hh_e_STATE_Input;
+ return false;
+ break;
+ case hh_e_STATE_Input:
+ if(g_hh_controller_p1.button_primary){
+ 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;
+}