Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: GameEngine/SnakevsBlock/SnakevsBlock.h
- Revision:
- 71:4bd2b27693f3
- Parent:
- 70:7caab8069b9b
- Child:
- 79:35cb65c52d25
diff -r 7caab8069b9b -r 4bd2b27693f3 GameEngine/SnakevsBlock/SnakevsBlock.h --- a/GameEngine/SnakevsBlock/SnakevsBlock.h Sat May 04 20:48:10 2019 +0000 +++ b/GameEngine/SnakevsBlock/SnakevsBlock.h Sat May 04 22:09:59 2019 +0000 @@ -188,7 +188,7 @@ //OBJECT POSITIONS ON SCREEN. int snakex; //x position of top beed int snakey; //y position of top beed - Vector2D snake_pos[15]; //saves the position of all the snake beeds in an array for ease of collision processing. + Vector2D snake_pos[10]; //saves the position of all the snake beeds in an array for ease of collision processing. Vector2D food_pos[3]; //saves the position of all 3 snake food on the screen in a single array for ease of collision processing. Vector2D b_pos; //saves the origin of the blocks on the screen (this is the top left corner of the block row).