Browse Source

update GamePanel

main
Berkan Sarp 2 years ago
parent
commit
d9a892aae4
  1. 10
      src/main/java/GamePanel.java

10
src/main/java/GamePanel.java

@ -1,3 +1,11 @@
import javax.swing.*;
import java.awt.*; import java.awt.*;
public class GamePanel {
public class GamePanel extends JPanel implements Runnable {
static final int FRAME_WIDTH = 1000;
static final int FRAME_HEIGHT = (int) (FRAME_WIDTH * 0.5);
static final int BALL_DIAMETER = 26;
static final int PADDLE_WIDTH = 25;
static final int PADDLE_HEIGHT = 100;
static final Dimension SCREEN = new Dimension(FRAME_WIDTH, FRAME_HEIGHT);
}
Loading…
Cancel
Save