Exemplo n.º 1
0
 public void NewSnake()
 {
     AddObject(new Food(randomCoordinate.RandomY(graphics.ClientWidth), randomCoordinate.RandomX(graphics.ClientHeight), randomCoordinate));
     AddObject(new Snake(graphics, randomCoordinate));
 }
Exemplo n.º 2
0
 public void SnakeAdd()
 {
     snake.Add(new SnakePart(randomCoordinate.RandomY(g.ClientWidth), randomCoordinate.RandomX(g.ClientHeight), g));
 }