Skip to content

Khaleeq01/Ping-Pong-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ping-Pong-Game

A Ping Pong game project

  1. There will be 2 rods at the top and bottom of the screen.
  2. Both rods will be controlled with the same keys. In other words, they will move together.
  3. When the game starts, an alert should be shown about the highest score and the player who scored it. If there is no such record, say 'this is your first time'.
  4. If the score becomes highest, then store the name and max-score in local storage.
  5. After every round, when one wins an alert will be displayed showing the winning player and his score.
  6. Every round should start when the 'Enter' key is pressed. ( You can use another key as well )
  7. The rods will only move horizontally using the 'a' and 'd' keys. ( You can use other keys as well )
  8. The losing rod will get the ball for the next match and the rods and ball will move to center.
  9. The score will be counted from the start of every match.

Screenshot 2022-10-25 194901

About

A Ping Pong game project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published