| |
Lab 17: Pong IV
Page history
last edited
by Mr. Kretsch 3 months, 1 week ago
Names: __________________________________________________________
Objective: Writing subroutines and collision detection
Instructions
- Open your pong project
- Create a subroutine called Collision that accepts four parameters: the x and y coordinates and the width and height of a paddle. The subroutines changes the ball's horizontal motion if it strikes the paddle.
- Call the sibroutine at the appropriate place for each paddle
Grading
| Feature |
Points |
Out of |
Notes |
| Subroutine definition |
|
5 |
|
| Subroutine call |
|
5 |
|
| |
|
10 |
|
Notes
Lab 17: Pong IV
|
|
Tip: To turn text into a link, highlight the text, then click on a page or file from the list above.
|
|
|
Comments (0)
You don't have permission to comment on this page.