1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#ifndef _BG_H_
#define _BG_H_
#include <SDL/SDL.h>
#include "support.h"
#include "sprite.h"
enum _bg_type {
BG_BLACK=0,
BG_CLOUDS,
BG_STARS,
BG_TILE,
BG_LAST
};
typedef struct {
double speed_base;
double speed_rand;
} CLOUDS_DATA;
void bg_init(int bg_type);
void bg_work();
void bg_destroy();
void clouds_init();
void clouds_remove();
void clouds_mover(SPRITE *s);
void tile_init();
void tile_work();
void tile_display();
void tile_remove();
#endif
|