diff --git a/.idea/hellsgamers.iml b/.idea/hellsgamers.iml index db49080..c500079 100644 --- a/.idea/hellsgamers.iml +++ b/.idea/hellsgamers.iml @@ -6,8 +6,8 @@ - - + + diff --git a/src/main/java/GameFrame.java b/src/main/java/GameFrame.java index 91d7414..b6813fb 100644 --- a/src/main/java/GameFrame.java +++ b/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); + + } + } diff --git a/src/main/java/build-project.sh b/src/main/java/build-project.sh index 9a9a4a3..cc1f786 100644 --- a/src/main/java/build-project.sh +++ b/src/main/java/build-project.sh @@ -1 +1 @@ -#!/usr/bin/bash \ No newline at end of file +#!/bin/bash \ No newline at end of file diff --git a/target/classes/java/build-project.sh b/target/classes/java/build-project.sh deleted file mode 100644 index 9a9a4a3..0000000 --- a/target/classes/java/build-project.sh +++ /dev/null @@ -1 +0,0 @@ -#!/usr/bin/bash \ No newline at end of file diff --git a/target/classes/main/java/build-project.sh b/target/classes/main/java/build-project.sh deleted file mode 100644 index 9a9a4a3..0000000 --- a/target/classes/main/java/build-project.sh +++ /dev/null @@ -1 +0,0 @@ -#!/usr/bin/bash \ No newline at end of file