The game of Pong revolutionized the video game industry. For the first time ever,
video games could be played at home using a video screen and a hardware system.
Based on the Celoxica Handel-C code that was used to implement the
bouncing ball in the tutorial, add the following features to build your
own Pong-style video game in hardware. Be prepared to give a demonstation of
your working program in class and upload the source code as a text file
to the gradebot server.
Refer to the RC10 Manual (a part of the Celoxica PSL)
for an explaination of how to use I/O devices.
- Draw a wall along the top, left, and bottom side of the screen that is 10 pixels thick.
Your ball should bounce off these walls.
- Draw a paddle along the right side of the screen.
This paddle should be 60 pixels tall and 8 pixels thick.
- Use the joystick to move the paddle up and down the screen.
The ball should bounce off the paddle when it is in the right position.
Stop the paddle when at the top and bottom of the screen.
- Draw ticks (small vertical bars) at the bottom left of the screen to
track how many balls remain in the game. Start with 5 and decrement each time
that the ball passes by the paddle.
- Draw ticks at the top left of the screen to keep track of the number
of times the ball hits the left wall during the game.
- Beep the speaker when the ball hits the paddle.
- Increase the difficulty (speed of the ball) as the game progresses
- Extra Credit: Use your imagination to add your own feature to the game to
enhance the play, graphics, or sound.