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