View
 

Lab 18: Solar System VI

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

Name: _______________________________________________

Objective: Animation

Instructions

  1. Open your solar system project
  2. Add animation to your spacecraft according as per the notes.
    1. Shuttles should move horizontally.
    2. GPS satellites should move vertically.
    3. Objects should kn ow when they hit the wall and reverse direction accordingly.
  3. Modify your Main5 applet to start the animation when the objects are created, as per the notes.

Design considerations 

  • Consider how you will keep track of whether your moving left or right, or up or down. (Hint, you don;t need a boolean.)
  • You know the coordinates of the left and top walls. Consider how you get the coordinates of the right and bottom walls.

Grading

Feature  Points  Out of  Notes 
Animation     
Bounce     
Total   10  

 

Notes

 
 
 
 
 
 

 

 

 

Comments (0)

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