![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: Snake/Snake.cpp
- Revision:
- 43:233f93860d08
- Parent:
- 41:4edac50f010d
- Child:
- 44:cd10d07ea1e5
--- a/Snake/Snake.cpp Tue Apr 23 15:22:09 2019 +0000 +++ b/Snake/Snake.cpp Thu Apr 25 18:12:17 2019 +0000 @@ -245,7 +245,7 @@ if(_length >= 10) {_length = 10;} //to stop the snake length virtually at 10 when it goes past it. //this makes all of the snake beeds chained together by making the lower ones drag towards where the top one was in the previous loop - //the b[i] makes sure that the snake beed doesn't move if that beed is deactivated by colliding with a barrier. + //the b[i] makes sure that the snake beed doesn't move if that beed is deactivated by colliding with a barrier. b[i] also signifies the specific beed number by i. for(int i=0; i<=13; i++) { if((_length > i+1)&&(_x[i] != _x[i+1])) { if ((_x[i] > _x[i+1])&&(b[i+1] == 1)&&(b[i] == 1)) {