Final Commit

Dependencies:   mbed

Revision:
26:23301f48c1ed
Parent:
25:f03439ee32c6
--- a/SnakeEngine/SnakeEngine.h	Tue May 08 10:52:12 2018 +0000
+++ b/SnakeEngine/SnakeEngine.h	Tue May 08 11:51:03 2018 +0000
@@ -2,7 +2,6 @@
 #define SNAKEENGINE_H
 
 #include "mbed.h"
-#include "FXOS8700CQ.h"
 #include "Gamepad.h"
 #include "N5110.h"
 #include "Food.h"
@@ -15,19 +14,11 @@
 * @date Feb, 2018
 */
 
-int g_tail_length();
-Vector2D g_tail_position();
-
+static Vector2D g_tp;
 void g_frame_time(int frame_time);
 
-int g_get_even_array();
-int g_get_odd_array();
-int g_get_engine_frame_count();
-
-static Vector2D g_tp;
 
 static int g_tl; // tail length
-//static int g_tc; // 
 static int g_engine_fc; // frame counter for draw tail functions
 static int g_ft; // frame counter for decreasing time between food spawning
 static int g_n; // ensures spawning of food occurs periodically
@@ -41,12 +32,6 @@
 static int g_odd_array_y[100]; // array to store odd values for y component of tail segments
 static int g_even_array_x[100]; // array to store even values for x component of tail segments
 static int g_even_array_y[100]; // array to store even values for y component of tail segments
-//static int g_array_x[100];
-//static int g_array_y[100];
-
-Vector2D g_holder_pos();
-
-
     
     
 class SnakeEngine
@@ -172,8 +157,7 @@
     int _tail_x;
     int _tail_y;
     
-    int _number_food_frames;
-    
+    int _number_food_frames;  
     void _wall_col_isr();