30 lines
583 B
C
30 lines
583 B
C
|
typedef struct sLayer
|
||
|
{
|
||
|
SDL_Surface* sprite;
|
||
|
int x,y,h,v;
|
||
|
int oX, oY;
|
||
|
} SLayer;
|
||
|
|
||
|
typedef struct transition
|
||
|
{
|
||
|
int in;
|
||
|
SDL_Color incolor;
|
||
|
int out;
|
||
|
SDL_Color outcolor;
|
||
|
} Transition;
|
||
|
|
||
|
typedef struct scene
|
||
|
{
|
||
|
SLayer** sprites;
|
||
|
int nSprites;
|
||
|
int time;
|
||
|
Transition fade;
|
||
|
} Scene;
|
||
|
|
||
|
SLayer* newSLayer(char* filename, int x, int y, int h, int v);
|
||
|
void deleteSLayer(SLayer* target);
|
||
|
|
||
|
Scene* newScene(int in, int out, int time, SDL_Color incolor, SDL_Color outcolor);
|
||
|
void buildScene(Scene* self, SLayer* sprite);
|
||
|
void playScene(Scene* self);
|
||
|
void deleteScene(Scene* target);
|