Updates animation state of Animated Color Sprites.
More...
Updates animation state of Animated Color Sprites.
◆ sm2_init_sprite()
MSX2
Construction and (re)initialization of the animated color sprite.
- Parameters
-
s | Sprite object to be (re-)initialized. |
sheet | Sprite-sheet object. |
tag | Frame-tag object that defines the range of animation frames. |
- Note
- This function can be used not only for initialization but also for switching the animation pattern (sprite sheet and/or tag) of a sprite object.
◆ sm2_update_sprite()
◆ sm2_update_sprites()
void sm2_update_sprites |
( |
sm2_Sprite | ss[], |
|
|
size_t | num ) |
|
inline |
MSX2
Update the animation state of a series of sprite objects.
- Parameters
-
ss | An array of sprite objects. |
num | Number of elements of the array. |
- Note
- In order to update the animation state of the sprite object, sm2_update_sprite() and sm2_update_sprites() should be called periodically (as much as possible at each VSYNC timing).
-
Both sm2_update_sprite() and sm2_update_sprites() can be called from the VSYNC interrupt handler.
Definition at line 190 of file sm2.h.