View
 

Lab 15: Pong 3

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

Names: ________________________________________________

Objective: Programming graphical input

Instructions

  1. Open your Pong project
  2. Add code that moves the paddles to a clicked location on the picturebox. 
    1. Alternate between the two paddles for every click
    2. You only have to move the paddle to the clicked vertical position; do not change the horizontal position.

Design Considerations

  • You have to remember the paddle locations and change them with every mouse click
  • You will need a toggle to remember which paddle to move

Grading

Feature  Points  Out of  Notes 
Click detection     
Paddle move   5  
Total   10  

 

Notes

 
 
 
 
 

 

 

Comments (0)

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