Browse Source

update GameFrame

main
Berkan Sarp 2 years ago
parent
commit
34a4eeaf32
  1. 4
      .idea/hellsgamers.iml
  2. 19
      src/main/java/GameFrame.java
  3. 2
      src/main/java/build-project.sh
  4. 1
      target/classes/java/build-project.sh
  5. 1
      target/classes/main/java/build-project.sh

4
.idea/hellsgamers.iml

@ -6,8 +6,8 @@
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />

19
src/main/java/GameFrame.java

@ -1,2 +1,19 @@
public class GameFrame {
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);
}
}

2
src/main/java/build-project.sh

@ -1 +1 @@
#!/usr/bin/bash
#!/bin/bash

1
target/classes/java/build-project.sh

@ -1 +0,0 @@
#!/usr/bin/bash

1
target/classes/main/java/build-project.sh

@ -1 +0,0 @@
#!/usr/bin/bash
Loading…
Cancel
Save