public void reset() { x = Window.rollDice(Window.width() - side / 2) + side / 2; y = Window.rollDice(Window.height() - side / 2) + side / 2; }
public Food() { x = Window.rollDice(Window.width() - side / 2) + side / 2; y = Window.rollDice(Window.height() - side / 2) + side / 2; }