View
 

Lab 16: Subroutines

Page history last edited by Mr. Kretsch 3 months, 2 weeks ago

Name: _______________________________________

Objective:

Add a subroutine that manages drawing in our pong game

Instructions:

  1. Open your pong game
  2. Create a subroutine called draw. This subroutine takes no parameters.
  3. Move all drawing statemenrts from where they are not to the new subroutine
  4. Replace the drawing statements in the Local and Timer Tick subroutines with a call to the draw subroutine
  5. Test your code
  6. 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.