-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.c
141 lines (86 loc) · 2.35 KB
/
vars.c
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/*****************************************************/
/* Ultimate Blocks */
/* Copyright (c) An Ly 2000, Owen Rudge 2001, 2008 */
/*****************************************************/
#include <allegro.h>
#include "blocks3.h"
DUH *music;
char music_unload;
AL_DUH_PLAYER *mod_player;
int _music_predefined = 0;
DATAFILE *fonts, *sfx, *music_dat;
char login[LOGIN_LEN]; //13];
char login_path[LOGIN_LEN];
BITMAP *ply_pic[2][12];
BITMAP *mon_pic[5][12];
BITMAP *temp_particle;
BITMAP *title_gfx;
PALETTE title_palette;
BITMAP *box_pic, *bomb_pic[3];
BITMAP *token_pic;
BITMAP *teleport_pic[3];
BITMAP *blank;
BITMAP *laser_pic[5];
BITMAP *beam_pic[7];
BITMAP *mirror_pic[2];
BITMAP *explode_pic[8];
BITMAP *filter_pic;
BITMAP *door_pic[3];
BITMAP *switches_pic[3];
BITMAP *editor_icons;
BITMAP *fall_pic;
BITMAP *dark[5];
BITMAP *tick_pic[2];
PALETTE palette;
COLOR_MAP trans_table;
COLOR_MAP light_table;
int _block_width;
int _block_height;
int _block_depth;
int fps_count;
int time_count;
int game_type;
int game_exit;
int lev;
int mus_vol, sfx_vol, cd_vol;
int _game_speed;
char *GAME_SPEEDS[3] = {"Slow ", "Normal", "Fast "};
FPS *fps = NULL;
int map[MAP_MAX_WIDTH][MAP_MAX_HEIGHT][MAP_MAX_DEPTH];
int maps[MAP_MAX_WIDTH][MAP_MAX_HEIGHT][MAP_MAX_DEPTH][101];
char map_motif[100][MOTIF_ID_LEN];
int map2[MAP_MAX_WIDTH][MAP_MAX_HEIGHT];
int map_laser[MAP_MAX_WIDTH][MAP_MAX_HEIGHT][MAP_MAX_DEPTH];
int map_door[MAP_MAX_WIDTH][MAP_MAX_HEIGHT][MAP_MAX_DEPTH];
int map_done[100];
int no_ply;
int mod_track, mod_last;
char motif[MOTIF_ID_LEN];
char map_save[20];
PLY_DEF ply[2];
DIRTY_DEF dirty[MAX_DIRTY], dirty_sort[MAX_DIRTY];
int dirty_count;
BOX_DEF box[468];
uint16 box_count;
EXPLODE_DEF explode[468];
uint16 explode_count;
MENU_DEF menu[4], menu_title[4];
DIR_DEF dir[MAX_DIRS], mod[MAX_MODS];
MON_DEF mon[100];
int mon_count;
SWITCH_DEF switches[60];
DOOR_DEF door[60];
int switches_count;
int door_count;
SOUND_DEF fx[MAX_SOUND_EFFECTS];
int fx_count;
UNDO_DEF undo[20];
int undo_count;
char _particles;
MOTIF motifs[20];
int num_motifs;
PARTICLE_DEF part[MAX_PARTICLES];
int part_count;
int _redraw_status = 1;
volatile int close_button_pressed;
int _level_undos;