File: star.h

package info (click to toggle)
wing 0.7-33
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,744 kB
  • sloc: cpp: 2,526; sh: 65; makefile: 16
file content (29 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (4)
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