Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: SnakevsBlock/SnakevsBlock.h
- Revision:
- 25:e827f1a8fadc
- Parent:
- 24:1c118b071430
- Child:
- 27:3b4775a0d0bb
--- a/SnakevsBlock/SnakevsBlock.h Wed Apr 10 10:59:15 2019 +0000 +++ b/SnakevsBlock/SnakevsBlock.h Wed Apr 10 14:37:05 2019 +0000 @@ -30,7 +30,7 @@ * * This function contains the update functions of the other libraries used in the game. */ - void update(Gamepad &pad); + int update(Gamepad &pad); /** Draw * @@ -56,6 +56,7 @@ int srn; int send; //makes sure that the block number is only updated when send is activated. int speed; //makes sure that snake only moves if not colliding to block walls + int back; //enables the player to go back on main menu if back is pressed. int b[15]; int b0_to_b14[15]; Vector2D snake_pos[15];