demo system rewritten; now it streams keypresses only when prof is waiting for user...
[awish.git] / asm / defs / globals.awa
blob59b3f125e3d35d65c13258fc2dae4a9cec937992
1 /*
2  * This program is free software: you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
14  */
15 /* public globals */
17 /* common result for many functions and rsts */
18 defevar: rst_result
20 defevar: goobers
22 defevar: game_want_key
24 /* keyboard flags */
25 defevar: key_quit, key_start, key_restart, key_escape
26 defevar: key_left, key_right, key_up, key_down
27 defevar: key_take, key_use, key_minimap
29 /* cheat keys */
30 defevar: key_fall_cheat, key_walk_cheat
31 defevar: key_plev_cheat, key_nlev_cheat
33 /* misc info */
34 defevar: max_level
35 defevar: start_level
36 defevar: game_state
38 /* current level */
39 defevar: cur_level
40 /* level info */
41 defevar: level_code_ofs, level_code_len
42 defgvar: item_name_ofs, item_name_len
43 defevar: level_backpic
44 /* map dimensions; better don't change */
45 defevar: map_width, map_height
46 /* view port dimensions (can't be changed) */
47 defevar: vis_width, vis_height
48 /* view port start */
49 defevar: scr_x, scr_y
52 /* must be public global 'cause engine needs it */
53 defevar: prof_item  ; id of the item professor carrying
56 defevar: mouse_x, mouse_y, mouse_buttons, mouse_hidden, mouse_cursor
57 used: mouse_x, mouse_y, mouse_buttons, mouse_hidden, mouse_cursor
59 defevar: polyfix_base
60 used: polyfix_base
62 defevar: sound_disabled
63 used: sound_disabled
65 defevar: in_menu
66 used: in_menu