Adventure game written for ECE2035 at the Georgia Institute of Technology

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Revision:
4:cdc54191ff07
Parent:
2:0876296d9473
--- a/globals.h	Wed Apr 18 20:18:51 2018 +0000
+++ b/globals.h	Tue May 22 19:13:03 2018 +0000
@@ -14,6 +14,8 @@
 #include "uLCD_4DGL.h"
 #include "SDFileSystem.h"
 
+
+
 // Declare the hardware interface objects
 extern uLCD_4DGL uLCD;      // LCD Screen
 extern SDFileSystem sd;     // SD Card
@@ -26,6 +28,17 @@
 extern PwmOut speaker;
 extern wave_player waver;
 
+typedef struct{
+    int x,y;    // Current locations
+    int px, py; // Previous locations
+    int has_key;
+    int quest_complete;
+    int rock_pushed;
+    int health;
+    int lives;
+    int gems;
+}Player;
+
 // === [define the macro of error heandle function] ===
 // when the condition (c) is not true, assert the program and show error code
 #define ASSERT_P(c,e) do { \