Unformatted text preview: The first should be blue and 5 pixels from the left end. It should begin with a vertical speed of 1 pixel/loop downward, and when it reaches the bottom or top of the screen, it should bounce off. The second should be red and 5 pixels from the right end. It should begin with the same speed, but when it touches the bottom of the screen, it should appear back at the top and continue with the same speed, so it has a scrolling effect. 5. [10%] Extra Credit: Make the scrolling effect when the right paddle reaches the bottom smooth. That is, as each row of the rectangle passes the boundary, only that row will appear back at the top, so it is a continuous transition. To Submit on T-Square: 1. Submit your file main.c for Assignment 2....
View Full Document
- Spring '09
- C preprocessor, Preprocessor, pong paddles, Preprocessor Macros GBA, rectangular pong paddles, Game Loop Dynamics