Browse Source

update

main
Justin Senn 2 years ago
parent
commit
e7ecbe3715
  1. 9
      src/main/java/Snake/Apple.java
  2. BIN
      target/classes/Ball.class
  3. BIN
      target/classes/GameFrame.class
  4. BIN
      target/classes/GamePanel.class
  5. BIN
      target/classes/Paddle.class
  6. BIN
      target/classes/Score.class

9
src/main/java/Snake/Apple.java

@ -1,7 +1,7 @@
package Snake;
import java.awt.Point;
import java.util.concurrent.ThreadLocalRandom;
public class Apple
@ -14,4 +14,11 @@ public class Apple
this.position = new Point(0, 0);
}
public void selectGridPosition(int gridSize)
{
int x = ThreadLocalRandom.current().nextInt(0, gridSize);
int y = ThreadLocalRandom.current().nextInt(0, gridSize);
}
}

BIN
target/classes/Ball.class

BIN
target/classes/GameFrame.class

BIN
target/classes/GamePanel.class

BIN
target/classes/Paddle.class

BIN
target/classes/Score.class

Loading…
Cancel
Save