This is the structure for sprites. More...
#include <ML_video.h>
Data Fields | |
ML_Image * | image |
long | i |
s16 | x |
s16 | y |
s8 | dx |
s8 | dy |
bool | visible |
u16 | width |
u16 | height |
u8 | rotated |
u8 | alpha |
float | scaleX |
float | scaleY |
float | angle |
bool | tiled |
bool | animated |
u8 | waitForXRefreshBetweenFrames |
u8 | animeFrom |
u8 | animeTo |
u8 | timesAnimated |
u16 | currentFrame |
u16 | nbTiles |
u16 | tileWidth |
u16 | tileHeight |
bool | flipX |
bool | flipY |
This is the structure for sprites.
Transparency (0-255)
float ML_Sprite::angle |
Angle in degrees
bool ML_Sprite::animated |
Is animation enabled
Animation start at...
Animation end at...
Current frame
X velocity
Y velocity
bool ML_Sprite::flipX |
Is the sprite flipped horizontally or not
bool ML_Sprite::flipY |
Is the sprite flipped vertically or not
Height
long ML_Sprite::i |
Used for the animation
Pointer to the image associated with
Number of tiles
Is rotation enabled
float ML_Sprite::scaleX |
X scaling
float ML_Sprite::scaleY |
Y scaling
bool ML_Sprite::tiled |
Is tiling enabled
Height of one tile
Width of one tile
Animation will loop X times
bool ML_Sprite::visible |
Member for setting the sprite visible or not
Number of cycles between each frame changes
u16 ML_Sprite::width |
Width
s16 ML_Sprite::x |
X position
s16 ML_Sprite::y |
Y position