First For chapter 9 answer problems 1 and 2 on page 251 and label it lab6.9-1.js and lab6.9-2.js.
Next, For chapter 10 answer only problem 1 and label it lab6.10-1.
Also make sure to include a word document about your observations as well.
This is for 2d game programming and I need it by friday before midnight.
chapter 9 problems 1-2
1. Comment out the assignment to this.easingFunction in the AnimationTimer constructor and restart the game. What happens when the runner jumps? Why?
2. Change the ease-out-in function used by the bounce behavior to an ease-in-out function by using AnimationTimer.makeEaseInOut- EasingFunction() instead of AnimationTimer.makeEaseOutInFunction(). Verify that changing the easing function makes it look like coins and jewels are bouncing upside down.
Chapter 10 problem 1
1. Modify Snail Bait’s keydown event handler to run the game in slow motion when the player presses the s key by invoking Snail Bait’s setTimeRate() method. If the game is already running in slow motion when the player presses the s key, return the game to normal speed. The precise definition of slow motion is up to you.


0 comments