![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: SnakevsBlock/SnakevsBlock.h
- Revision:
- 22:ee698f66146f
- Parent:
- 19:05cc9f801468
- Child:
- 24:1c118b071430
diff -r e41126528cc6 -r ee698f66146f SnakevsBlock/SnakevsBlock.h --- a/SnakevsBlock/SnakevsBlock.h Wed Apr 10 04:08:13 2019 +0000 +++ b/SnakevsBlock/SnakevsBlock.h Wed Apr 10 05:24:20 2019 +0000 @@ -56,22 +56,10 @@ 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 b0; - int b1; - int b2; - int b3; - int b4; - int b5; - int b6; - int b7; - int b8; - int b9; - int b10; - int b11; - int b12; - int b13; - int b14; + int b[15]; int b0_to_b14[15]; + int snake_posx[15]; + int snake_posy[15]; private: