You are browsing as a guest. Sign up (or log in) to start making projects!

ping-pong

  • 1 Devlogs
  • 2 Total hours

A canvas ping pong game, that you play with a computer

Ship #1 Pending review

Ping Pong!

This is a recreation of the classic pong game that many of you may have played. The game is played with a computer. Don’t slack off thinking the bot will go easy on you.

Controls: Use the Up and Down arrows keys on your keyboard to controls your paddle. Guard your fence and hit the ball. If the computer misses you earn a point, and if you miss, the computer gets one. Play for as like as you like!

Refresh the page to reset the scores.

Here is a link to the demo so that you can try it out yourself: https://sawfan1.github.io/ping-pong/

Development

The website was made with the classic HTML, CSS, JS trio. The game logic is written entirely with JS and I used a canvas to render everything, the player, the computer, ball, score, etc. JS is also used to handle the input and update the game state.

Good luck!

Star my project on Github if you enjoyed!

  • 1 devlog
  • 2h
Try project → See source code →

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…