Ping Pong Game

Language Used : Java (Project is build on Java Swing Library)

Table of content

S.No. Content
1. About Project
2. Technologies Used
3. How to run?

About Project

  • It a multi player game (max players 2).
  • Player 1 controls : w (up) | s (down)
  • Player 2 controls : up ⬆️ | down ⬇️
  • Adjust the side bars (up - down) to hit the ping pong ball.
  • Player 1 will gain a point if Player 2 misses the ball and visa versa.
  • Speed of ball will increase with each hit.
  • Speed and position of the ball will reset after any of the player scores a point.

Technologies Used

  • The project will primarily use Java language for coding.
  • Java Swing have also used here to build the GUI of this game.
  • Java Swing is a part of JFC (Java Foundation Classes) which is used to create window-based applications.
  • JFrame is used to create the window frame.
  • Graphics library is used to paint and show the graphics.

How to run?

Some Screenshots of the game

  • Starting Screen Screenshot (71)

  • Middle of the game Screenshot (67)

version https://git-lfs.github.com/spec/v1 oid sha256:35866e40cde59f989ecb3f6c413c64e3426c47e0265cb5aafcf71a66dceb9884 size 1663