-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.h
More file actions
48 lines (34 loc) · 1.06 KB
/
variable.h
File metadata and controls
48 lines (34 loc) · 1.06 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SDL_Surface *screen=NULL;
SDL_Surface *back[2]={NULL,NULL}; //Holds three background..
SDL_Surface *upback=NULL;
SDL_Surface *bike=NULL;
SDL_Surface *obs_wall[2]={NULL,NULL};
SDL_Surface *menu_pic=NULL;
SDL_Surface *play_menu=NULL;
SDL_Surface *instruction_menu=NULL;
SDL_Surface *quit_menu=NULL;
TTF_Font *font=NULL;
SDL_Surface *times=NULL;
SDL_Surface *time_limit=NULL;
SDL_Surface *die=NULL;
SDL_Color textColor={225,0,0};
SDL_Event event; //For checking the event happen...
Uint8 *keystate=SDL_GetKeyState(NULL); //for check key event keys..
//Variable for background...
background bg[2];
//variable for time..
int start_time;
int end_time;
int time_gap;
int speed;
int jump_state=0;
int max_limit=200;
//variable for bike..
int bike_stand=LAYER_Y;
int bike_x=START_BIKE_X;
int bike_y;
//Variable for wall...
wall w1[SMAX_WALL];
wall w2[BMAX_WALL];
//Game states..
int game_on=1;