Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: SnakeFood/SnakeFood.h
- Revision:
- 38:30e4e6191762
- Parent:
- 36:dfdd619874ae
- Child:
- 41:4edac50f010d
diff -r ee47699915b8 -r 30e4e6191762 SnakeFood/SnakeFood.h --- a/SnakeFood/SnakeFood.h Thu Apr 18 14:03:43 2019 +0000 +++ b/SnakeFood/SnakeFood.h Mon Apr 22 04:24:38 2019 +0000 @@ -41,14 +41,14 @@ * This function is used to change the position of the sprite to specific coordinates when called. */ void set_pos(Vector2D p); + Vector2D velocity; private: int n; int _fx; //food x int _fy; //food y int fooddrop; //this makes food 1,2,and 3 drop at reasonable speeds - - Vector2D _velocity; + int _blockbuff; }; #endif \ No newline at end of file