Deliverables

  • Basic: Pong game functioning with motion controls
  • Extra: Additional game features e.g. other gestures cause powerups

Provided Code

There are some simple python implementations of pong provided in the github repo.

Requirement

Incorporate hand motion capture into the provided game of Pong. After you have accomplished this task, please incorporate on additional asset of motion detection into a game. Specific integration of motion detection input in other games is up to the discretion of the student. However, the game is expected to be reasonable and playable. There are minimal requirements for this lab so you are strongly encouraged to be creative and go further than the minimum requirements. As with the previous lab, the system is not expected to be entirely robust, but should be reliable and return expected and repeatable results.

Discussion

You will be provided code for a generic game of pong in PyGame that takes in standard keyboard input. The code for the game relies on PyGame which needs to be installed on the board. To install Pygame, simply run this command in terminal:

sudo apt-get install python-pygame

As a start, you can incorporate motion capture into this game of pong by governing the paddle position with the detected hand position. This can be done by extracting the part of the PyGame code that affects the paddle position and extracting the hand motion from your motion detection code and integrating these two components. An important consideration is the limitations of motion capture. Consider edge cases where the hand is literally at the edge of the screen. Consider the range at which detection is most accurate. Make sure to incorporate these limitations in your motion capture design.

Beyond the required implementation, creativity is strongly encouraged in this lab (as with all the others) to go further. We are requiring you to do another incorporation of motion capture into a game, but we are leaving the actual design open ended. Consider different objects, different effects, different games... Really, go crazy!

Completed Lab Reports


This lab was developed by Amy Ngai.