View
 

Lab 17: Pong IV

Page history last edited by Mr. Kretsch 3 months, 1 week ago

Names: __________________________________________________________

Objective: Writing subroutines and collision detection

Instructions

  1. Open your pong project
  2. 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.
  3. Call the sibroutine at the appropriate place for each paddle

Grading

Feature  Points  Out of  Notes 
Subroutine definition    
Subroutine call     
    10   

Notes

 
 
 
 
 

 

 

Comments (0)

You don't have permission to comment on this page.