Skip to content

Marinopolis/Pong-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

A classic Pong game implemented in Java using Swing.

Table of Contents

Introduction

Pong Game is a simple implementation of the classic Pong game in Java using Swing. It features paddles, a ball, and a scoring system.

Features

  • Two-player gameplay with individual paddles.
  • Scoring system to keep track of player scores.
  • Realistic paddle movement using keyboard controls.

Game Components

Paddle Class

The Paddle class represents a player's paddle. It includes methods for handling keyboard input to move the paddle up and down.

Score Class

The Score class manages the scoring system. It displays the scores for both players on the screen.

How to Play

  • Player 1 controls the blue paddle with the W and S keys.
  • Player 2 controls the red paddle with the UP and DOWN arrow keys.
  • The game continues until one player scores a point. The scores are displayed in the center of the screen.

Installation

Clone the repository and run the GameFrame class to start the game.

git clone https://github.com/your-username/Pong-Game.git
cd Pong-Game
javac GameFrame.java
java GameFrame

Screenshots

image

Contact

For questions or feedback, feel free to reach out:

Email: marian.s.stoikov@gmail.com
GitHub: Marinopolis

About

Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages