You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
465 B
19 lines
465 B
import javax.swing.*;
|
|
import java.awt.*;
|
|
|
|
public class GameFrame extends JFrame {
|
|
GamePanel panel;
|
|
GameFrame(){
|
|
panel = new GamePanel();
|
|
this.add(panel);
|
|
this.setTitle("2D Ping-Pong");
|
|
this.setResizable(false);
|
|
this.setBackground(new Color(31,78,47));
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
this.pack();
|
|
this.setVisible(true);
|
|
this.setLocationRelativeTo(null);
|
|
|
|
}
|
|
|
|
}
|