A simple browser-based "pong" game built with HTML5 Canvas and JavaScript. Test your aim by throwing balls to hit the red circles!
Players can drag and release a ball to aim at red circles arranged in a triangle formation. The game features realistic physics including gravity, bounce effects, and friction.
- Click and hold the blue ball at the bottom of the screen
- Drag to aim (a guide line will appear)
- Release to throw the ball
- Try to hit all the red cups
- The ball automatically resets when it stops moving
- Hit cups turn gray to mark your progress
- Clone this repository
- Open
index.html
in a modern web browser - Start playing!
Works in all modern browsers that support HTML5 Canvas.
Feel free to use and modify this code for your own projects.