https://github.com/bouk/motion-pong
Motion controlled pong game for school project
https://github.com/bouk/motion-pong
Last synced: 9 months ago
JSON representation
Motion controlled pong game for school project
- Host: GitHub
- URL: https://github.com/bouk/motion-pong
- Owner: bouk
- License: other
- Created: 2013-02-08T20:41:49.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-03T18:12:53.000Z (over 13 years ago)
- Last Synced: 2025-03-16T13:24:58.591Z (over 1 year ago)
- Language: Python
- Size: 3.23 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
This is the source code for a school project done by Bouke van der Bijl and Yannick Middelkoop
It is an implementation of pong which uses the webcam to control the paddles
## Requirements to run
* [PyBox2d](http://code.google.com/p/pybox2d/)
* [OpenCV (compiled with some GIL locks removed)](https://github.com/boukevanderbijl/opencv)
* [PyGame](http://www.pygame.org/news.html)
* Python 2.7
* 2 green circles like these:

## How to play the game
Execute `python game.py` to play the game. You'll be greeted by a menu that you can control with the arrow keys and enter to select an option. After selecting something the game starts immediately.
Just stand in front of your webcam and (with sufficient lighting) the game should detect the green circles and move the in-game paddles to their correct positions. Try to bounce the ball into your opponent's endzone!