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
|
#ifndef _STAR_H
#define _STAR_H
#include <allegro.h>
#include "constants.h"
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* StarTYPE *
* *
* These functions deal with the dynamically generated stars used in the game *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
typedef struct STAR_TYPE
{
int x,y; // position of star
int vel; // horizontal velocity of star
} STAR, *STAR_PTR;
extern STAR_TYPE stars [];
void Draw_Stars ( BITMAP * buffer );
void Move_Stars ( );
void Init_Stars ( );
#endif
|