/realitypong

Play Pong with your hands. Build with melty.sh

Primary LanguageJavaScript

REALITY PONG

This project was made with melty.sh, an AI code editor.

REALITY PONG is an interactive, webcam-based version of the classic Pong game. Players control their paddles using hand movements captured by their webcam, creating an immersive and fun gaming experience.

Play at RealityPong.com

Features

  • Webcam-based hand tracking for paddle control
  • Classic Pong gameplay with a modern twist
  • Retro-style graphics with a green-on-black color scheme
  • Sound effects for ball bounces and scoring
  • Real-time score tracking

How to Play

  1. Open the index.html file in a modern web browser.
  2. Allow the browser to access your webcam when prompted.
  3. Position yourself so that your hands are visible to the webcam.
  4. Move your left hand up and down to control the left paddle.
  5. Move your right hand up and down to control the right paddle.
  6. Try to hit the ball with your paddle and score points against your opponent!

Technical Details

  • The game is built using HTML5, CSS3, and JavaScript.
  • Hand tracking is implemented using a simple color-based detection algorithm.
  • The game canvas is rendered using the HTML5 Canvas API.
  • Sound effects are generated using the Web Audio API.

Requirements

  • A modern web browser with JavaScript enabled
  • A webcam
  • Sufficient lighting for hand detection

Development

This project was developed using melty.sh, an AI code editor.

Future Improvements

  • Implement more advanced hand tracking for better control
  • Add difficulty levels and game modes
  • Introduce power-ups and special effects
  • Create a multiplayer online version

License

This project is open-source and available under the MIT License.

Enjoy playing REALITY PONG!