|
SDLGameEngine
|
#include <sgesprite.h>
Data Fields | |
| int | x |
| the x position of the sprite | |
| int | y |
| the y position of the sprite | |
| Uint32 | currentFrame |
| the current frame of the durrent anim bank | |
| SGEARRAY * | sprite |
| a SGEARRAY holding SGEARRAYS with the sprites | |
| SGEARRAY * | wayPoints |
| a SGEARRAY holding the waypoints of the sprite | |
| void * | userData |
| a void pointer for adding your own userdata to the sprite | |
| int | numberOfBanks |
| the number of anim banks the sprite has | |
| int | currentBank |
| the current anim bank of the sprite | |
| int | animate |
| do animate the sprite (YES/NO) | |
| Uint8 | alpha |
| the alpha of the sprite (0-255) | |
| float | moveSpeed |
| the speed for automatic sprite movement | |
a sprite, a image that can be animated and detect collision with other sprites
Definition at line 42 of file sgesprite.h.