Balint Bogdan 2645 project, 200966741

Dependents:   2645Game_el15bb

Revision:
3:b24ef00836c5
Parent:
2:5e04e34a3b66
Child:
4:c74ec3f409f9
diff -r 5e04e34a3b66 -r b24ef00836c5 Snake.h
--- a/Snake.h	Fri May 05 11:55:34 2017 +0000
+++ b/Snake.h	Fri May 05 13:56:24 2017 +0000
@@ -22,14 +22,15 @@
     
         Snake();
         ~Snake();
-        void init(int x, int y, int lenght);
+        void init(int x, int y, int lenght,int _live);
         void draw(N5110 &lcd);
         void update(Gamepad &pad);
         void deadSnake(N5110 &lcd);
-        snakePart add_point(int x, int y);
+        void add_point();
         void checkWallCollision(N5110 &lcd);
         int _length;
         int live;
+       
         
         
       
@@ -40,15 +41,17 @@
         int _speed;
         int _direction;
         
-        int counter;
+        
         int startx;
         int starty;
+        int startl;
         
         //int _snakeX[4000];
         //int _snakeY[4000];
         //int _snakeDir[4000];
         int x;
         Direction d;
+        Food _food;
         //Gamepad pad;
         //GameEngine engine;