ZIYI CHEN ml17z4c 201214999

Dependencies:   mbed

Revision:
8:52e0506e98b8
Parent:
7:8b6f175fcb0e
Child:
9:a8b2086a46e5
--- a/Game/Game.h	Tue Apr 30 09:14:17 2019 +0000
+++ b/Game/Game.h	Mon May 06 00:06:15 2019 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+
+
+
+
+class Snake
+{
+public:
+ 
+    
+    Snake();
+    ~Snake();
+    void init(int x, int y);
+    void update(Direction d);
+    int getLength();    
+    int getX(int head);
+    int getY(int head);
+    void grow();
+
+private:
+
+
+    int _x[484];      
+    int _y[484];
+    int _length;
+    int _speed;
+    char _oldDirection;
+
+
+};