Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: Snake/Snake.h
- Revision:
- 13:9785f2404045
- Parent:
- 9:d1d79d4ee673
- Child:
- 16:7b474f873683
diff -r 1e601b176437 -r 9785f2404045 Snake/Snake.h --- a/Snake/Snake.h Tue Apr 02 17:06:22 2019 +0000 +++ b/Snake/Snake.h Wed Apr 03 17:51:19 2019 +0000 @@ -30,17 +30,32 @@ * * This function updates the Snake sprite position on screen. */ - void update(Direction d,float mag,int length); + void update(Direction d,float mag,int length, int speed); /** Get Position * * This function obtains the coordinate of the top-left pixel in the Snake sprite. */ Vector2D get_pos(int length); + Vector2D get_pos_before1(int length); + Vector2D get_pos_before2(int length); + Vector2D get_pos_before3(int length); + Vector2D get_pos_before4(int length); + Vector2D get_pos_before5(int length); + Vector2D get_pos_before6(int length); + Vector2D get_pos_before7(int length); + Vector2D get_pos_before8(int length); + Vector2D get_pos_before9(int length); + Vector2D get_pos_before10(int length); + Vector2D get_pos_before11(int length); + Vector2D get_pos_before12(int length); + Vector2D get_pos_before13(int length); + Vector2D get_pos_before14(int length); + Vector2D get_pos_before15(int length); - + int m; private: - int m; + int _speed; int _x; int _xa; int _xb; @@ -57,7 +72,20 @@ int _xm; int _xn; int _y; - int _speed; + int _ya; + int _yb; + int _yc; + int _yd; + int _ye; + int _yf ; + int _yg; + int _yh; + int _yi; + int _yj; + int _yk; + int _yl; + int _ym; + int _yn; }; #endif \ No newline at end of file