email me at borlaj@portlandschools.org

Loading
notes previous (10/<10) submit the dump links  
  Hockey - start with this file
Jack (Jock from High School/Students and Teachers folder on the CD or Web gallery) is planning to try out for the school hockey team this fall. As a successful athlete, Jack knows that "practice is the name of the game." Jack has set up a hockey net (Sports) on the lake and is going to practice his aim with the hockey stick (Sports) to improve his chances of making the team.


Create a world level method called hitPuck for jack to hit the puck to the net. Allow 2 parameters which is speed and rotation. The speed is the time it takes to reach the net and the rotation is how much he rotates.

 

 

Let's allow the user to select the power factor behind Jack's swing of the hockey stick. The power factor will determine how fast Jack swings the stick and how far the hockey puck travels when hit by the stick. The power factor will be selected by a mouse-click on one of the power buttons (GumDrops from KitchenIFood folder) in the lower right of the scene. The yellow button will select low, green will select average, and red will select a high power factor.