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/README.md b/README.md index 2a78ee8..6f03192 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,3 @@ Pong Game developed by Eren Esen, Berkan Sarp, Justin Senn, Brice Tchoumi Pong game is a two-player table tennis-themed console game. The game involves two paddles and a moving ball. The players have to move paddles in an upwards or downwards direction and save the ball from getting hit onto the wall. If the ball hits the wall then it’s a score for another player. The game ends at 20 Points. - diff --git a/src/main/java/Ball.java b/src/main/java/Ball.java new file mode 100644 index 0000000..f1f843c --- /dev/null +++ b/src/main/java/Ball.java @@ -0,0 +1,2 @@ +public class Ball { +} diff --git a/src/main/java/GameFrame.java b/src/main/java/GameFrame.java new file mode 100644 index 0000000..b6813fb --- /dev/null +++ b/src/main/java/GameFrame.java @@ -0,0 +1,19 @@ +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/Paddle.java b/src/main/java/Paddle.java new file mode 100644 index 0000000..942d2bd --- /dev/null +++ b/src/main/java/Paddle.java @@ -0,0 +1,2 @@ +public class Paddle { +} diff --git a/src/main/java/Score.java b/src/main/java/Score.java new file mode 100644 index 0000000..e188430 --- /dev/null +++ b/src/main/java/Score.java @@ -0,0 +1,2 @@ +public class Score { +} 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/Main.class b/target/classes/Main.class deleted file mode 100644 index bc70d74..0000000 Binary files a/target/classes/Main.class and /dev/null differ