2
Watch
3
Star
0
Fork
0
Issue

A 2 player pong game for LeapMotion

tomwalters
tomwalters
pushedAt 8 years ago

tomwalters/leap-pong

Leap Pong!

A 2 player pong game for LeapMotion.

What is it?

This is a seriously simple implementation of the classic game, allowing the LeapMotion to control the 2 paddles. The game continues indefinitely as there is currently no top score feature.

Things it does:

  • Skews the ball in the Y axis depending on the movement of the paddles
  • Counts each player's score
  • Detects movements over 1mm

Things it doesn't do

  • Perfect ball skewing
  • Work off exact values for the ball bumping off the sides and paddles
  • Make you more attractive to the opposite sex

Disclaimer

I'm a web-developer and I know I'm going to hell for not using a seperate style-sheet. This code is also provided as-is - it should work, but it might not, and any embarrassment caused by bugs isn't my fault, but I'll be happy to pull in useful changes or look into random bugs.

Enjoy and let me know your thoughts!

ucloud ads