![]() Those are only two examples, but most animations change its animation type in runtime. But when the solider lands, it changes its animation to TYPE_ANIM_SOLDIER. Similar, the TYPE_ANIM_SOLDIER_JUMPING animates the “jumping” solider. But when the hero is at the same Y position as it is, then it changes its animation to TYPE_ANIM_SOLDIER. For example, the TYPE_ANIM_SOLIDER_BEHIND_SMTH has certain logic. See TYPE_ANIM_TBL in main.asm for the complete list of animation types.Īn sprite can change its animation in runtime. For example, the animation type TYPE_ANIM_SOLDIER_BULLET, animates the bullet. Animation typeĪn animation represents what the sprite should do during the game. Some enemies, like the motorcycle, take two sprites.
0 Comments
Leave a Reply. |