SDLGameEngine

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- Data Structures
- Data Structure Index
- Data Fields

Data Fields

# SGESPRITE Struct Reference
SgeSprite

`#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

## 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:

- include/sgesprite.h

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines