![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: GameEngine/SnakevsBlock/SnakevsBlock.h
- Revision:
- 96:1ab67b3e6898
- Parent:
- 95:b068b0735f45
- Child:
- 98:3061aa318fa2
diff -r b068b0735f45 -r 1ab67b3e6898 GameEngine/SnakevsBlock/SnakevsBlock.h --- a/GameEngine/SnakevsBlock/SnakevsBlock.h Thu May 09 08:35:02 2019 +0000 +++ b/GameEngine/SnakevsBlock/SnakevsBlock.h Thu May 09 09:23:57 2019 +0000 @@ -235,10 +235,10 @@ int velocity; //this is to stop/move the background (food and blocks), when collision occurs at a length greater than 10. int _length; //this is diffrent to the _virtualLength as this saves the length of the snake, for collision detection relative to it's length and calculations. int _virtualLength; //saves the length of the snake, for collision detection relative to it's Max screen length. - int immobile_bead_n[10]; //this saves the beed number of the colliding snake, if beed 3 from top was colliding with any obstruction, immobile_bead_n[2] will be 1. + int immobile_bead_n[10]; //this array is indexed by the beed number of the colliding snake, if beed 3 from top was colliding with any obstruction, immobile_bead_n[2] will be 1. //TURN DIRECTION, TILT ANGLE AND ANGLE RESET BUFFER (GARBAGE). - Direction _d; + Direction _d; //This struct saves the direction of snake movement. float _tiltAngle; //saves the angle of tilt. int garbage; //to save the angle at the point button A is pressed.