SDLGameEngine

SGESPRITE Struct Reference

#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
SGEARRAYsprite
 a SGEARRAY holding SGEARRAYS with the sprites
SGEARRAYwayPoints
 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

Detailed Description

a sprite, a image that can be animated and detect collision with other sprites

Definition at line 42 of file sgesprite.h.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines