Chapter 9. Time, Part II: Nonlinear Motion

Topics in This Chapter

9.1 Understand Time and Its Derivatives

9.2 Use Animation Timers and Easing Functions to Implement Nonlinear Jumping

9.3 Implement Animation Timers

9.4 Implement Easing Functions

9.5 Fine-tune Easing Functions

9.6 Implement a Realistic Bounce Behavior

9.7 Randomize Behaviors

9.8 Implement Nonlinear Color Changes with Animation Timers and Easing Functions

9.9 Conclusion

9.10 Exercises

From sprinting gazelles on the plains of Africa to someone reaching for a cup of coffee in a high-rise office building in Tokyo, natural motion is predominantly nonlinear, meaning it involves acceleration. In Snail Bait, the runner’s jumping motion is nonlinear because gravity slows ...

Get Core HTML5 2D Game Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.