public SnakeGame() { snake = new Zmija(); dir = Direction.Right; snake.addCircle(); snake.addCircle(); snake.addCircle(); rand = new Random(); pozX = rand.Next(0,19)*20; pozY = rand.Next(0, 19) * 20; food = new Krofna(pozX,pozY); Speed = 25; Poeni = 0; }
public void NovaKrofna() { pozX = rand.Next(0, 19) * 20; pozY = rand.Next(0, 19) * 20; food = new Krofna(pozX, pozY); }