Fix snakeSetHeadPos()
- Head position will be updated in tail[][] array
This commit is contained in:
parent
ae7469f291
commit
655657ab43
@ -81,6 +81,8 @@ void snakeSetHeadPos(int xPos, int yPos)
|
|||||||
{
|
{
|
||||||
game.snake.headX = xPos;
|
game.snake.headX = xPos;
|
||||||
game.snake.headY = yPos;
|
game.snake.headY = yPos;
|
||||||
|
game.snake.tail[0][0] = xPos;
|
||||||
|
game.snake.tail[0][1] = yPos;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user