Beispiel #1
0
 internal void Reset()
 {
     CurrentDirection = _defaultDirection;
     _partsToAdd      = 0;
     Score            = 0;
     SnakeParts.Clear();
     SnakeParts.AddLast(new SnakePart(_snakePartImage, _defaultPosition, _color));
     food.SetRandomPosition();
 }
Beispiel #2
0
 private void AddPiece()
 {
     SnakeParts.AddLast(new SnakePart(_snakePartImage, Tail.Position, _color));
 }