alot of code changed; first try to move level loader out of C engine; not working yet
[awish.git] / asm / game / frame_common.awa
blob03f0b2b2e7c1f163f668b2f51bc621f05ef422e0
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 game_next_frame:
16   jeq .no_minimap, [key_minimap], 0
17   set [key_minimap], 0
18   rst FRST_MINIMAP
19 .no_minimap:
20   jne quit_program, [key_quit], 0
21   ;
22   jeq .noplc, [key_plev_cheat], 0
23   jle .noplc, [cur_level], 0
24   sub [cur_level], 1
25   jmp entry_game_restart_level
26 .noplc:
27   jeq .nonlc, [key_nlev_cheat], 0
28   psh [cur_level]
29   psh [max_level]
30   sub 1
31   jge .nonlc
32   add [cur_level], 1
33   jmp entry_game_restart_level
34 .nonlc:
35   ;
36   jne entry_game_restart_level, [key_restart], 0
37   ;
38   brk
39   ret