Name: _______________________________________
Objective:
Add a subroutine that manages drawing in our pong game
Instructions:
- Open your pong game
- Create a subroutine called draw. This subroutine takes no parameters.
- Move all drawing statemenrts from where they are not to the new subroutine
- Replace the drawing statements in the Local and Timer Tick subroutines with a call to the draw subroutine
- Test your code
- Change the size your paddles and test again. (How many places did you have to change?)
Grading
| Feature |
Points |
Out of |
Notes |
| Subroutine definition |
|
3 |
|
| Subroutine use |
|
2 |
|
| |
|
5 |
|
Notes
Comments (0)
You don't have permission to comment on this page.