1 deftvar: prof_dir ; used everywhere (PDIR_XXX)
4 deftvar: game_fan_left_v ; have left working fan?
5 deftvar: game_fan_right_v ; have right working fan?
6 deftvar: game_fan_dx_v ; !0: some fan in effect
8 ; used in 'monster death'
12 const: PSPR_STANDING = 0
13 const: PSPR_WALKING_LAST = 9
14 const: PSPR_TURNING = 10
15 const: PSPR_FACING = 11
16 const: PSPR_JUMPING = 12
17 const: PSPR_TAKING0 = 13
18 const: PSPR_TAKING1 = 14
19 const: PSPR_USING = 15
20 const: PSPR_CLOSED_EYES = 16
21 const: PSPR_LYING_DEAD = 19
22 const: PSPR_DRILLING0 = 20
23 const: PSPR_DRILLING1 = 21
24 const: PSPR_HARRY_EATS_PROF_START = 33
25 const: PSPR_HARRY_EATS_PROF_END = 38
30 const: PDIR_FACING = 0
37 set [spr_bank], BANK_PROF
38 set [spr_num], PSPR_FACING
39 set [spr_dir], DIR_LEFT
41 jlt .bad_level, [cur_level], 0
42 jge .bad_level, [cur_level], [max_level]
47 set [level_code_len], 6
48 mul [cur_level], [level_code_len], [level_code_ofs]
49 add [level_code_ofs], level_codes
51 rst FRST_LOAD_LEVEL, [cur_level]
52 jne quit_program, [rst_result], 0
83 set [key_fall_cheat], 0
84 set [key_walk_cheat], 0
85 set [key_plev_cheat], 0
86 set [key_nlev_cheat], 0
88 ;set [prof_fall_count], 0
92 set [monster_tid], -666
96 // move first item to player
100 set pos_x, [pos_x], 1
117 jmp game_facing_loop_w2f
120 include: game/utils.awa
121 include: game/walkcheck.awa
122 include: game/falling.awa
123 include: game/fanchecks.awa
124 include: game/dodie.awa
125 include: game/scrolls.awa
126 include: game/doors.awa
127 include: game/sidemove.awa
128 include: game/loops_main.awa
129 include: game/jumps.awa
130 include: game/nono.awa
131 include: game/check_do_earth.awa
132 include: game/frame_common.awa