© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
V. G. BruscaIntroduction to Video Game Engine Developmenthttps://doi.org/10.1007/978-1-4842-7039-4_7

7. Animation Classes

Victor G Brusca1  
(1)
Edison, NJ, USA
 
In this chapter, we’ll review a set of animation classes that can be used to provide basic animation support for certain elements of your next game. The MmgPositionTween class in particular is an advanced implementation that takes into account child objects, timing, drawing, and positioning. This class needs to be plugged into the game engine’s drawing routine and receive update calls to maintain the correct timing during the animation:
  • MmgPulse

  • MmgPositionTween/MmgSizeTween

Animation Classes: MmgPulse ...

Get Introduction to Video Game Engine Development: Learn to Design, Implement, and Use a Cross-Platform 2D Game Engine 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.