Skip to content

A simple clone of "Pong" game written in pure Java using "Swing" library.

Notifications You must be signed in to change notification settings

JasonNumberThirteen/JavaPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong

A simple clone of "Pong" game written in pure Java using "Swing" library.

Table of Contents

General information

  • This is a simple application of "Pong" game. It was written in pure Java with the aid of "Swing" library for drawing graphics.
  • The project presents my programming skills how I do write code taking care of several optimisations. I did my best to make code follow the SOLID rules.
  • The game consists of deflecting the ball by two paddles placed on opposite sides of the field. Players can move their paddles vertically, and they must not let the ball fly to their side of the screen. If this happens, the opponent receives a point. The game ends when any of the players receives sufficient amount of points.
  • Win condition: none
  • Lose condition: none

Used technologies

  • "IntelliJIDEA" IDE for writing code
  • Eclipse Adoptium 17.0.4.1+1 64-bit

Features

  • Resolution: 640x480
  • Realtime game loop using thread (used technique from this link)
  • Adjustable amount of paddles which can be controlled either by player or CPU
  • Scoring system when the ball goes outside the screen
  • UI system drawing centered texts in given color
  • Adjustable plenty of values in single class

Usage

  • Press W / S keys to control the left paddle

Screenshots

"Pong" "Pong" "Pong"

Credits

  • This project was made by Jason

About

A simple clone of "Pong" game written in pure Java using "Swing" library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages