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.
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.
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/>.
27 bsr mm_fix_start_level
30 psh [polyfix_base] ; scale
32 rst FRST_START_POLY, 140, 85 ; ofsx, ofsy
33 rst FRST_ADD_POLY_POINT, 0, 0
34 rst FRST_ADD_POLY_POINT, 130, 0
35 rst FRST_ADD_POLY_POINT, 130, 90
36 rst FRST_ADD_POLY_POINT, 0, 90
37 rst FRST_END_POLY, 0, 180
40 bsr draw_menu, 100, main_menu_data
43 jne quit_program, [key_quit], 0
45 jeq @@f, [key_escape], 0
48 jeq @@f, [key_start], 0
49 jeq quit_program, [.actitem], 3
50 jlt .start, [.actitem], 2
52 sub 1, [sound_disabled], [sound_disabled]
55 jeq @@f, [.actitem], 0
58 jeq @@f, [key_down], 0
59 jeq @@f, [.actitem], 3
62 jeq @@f, [key_left], 0
63 jne @@f, [.actitem], 1
64 jeq @@f, [start_level], 0
67 jeq @@f, [key_right], 0
68 jne @@f, [.actitem], 1
69 jeq @@f, [start_level], [max_level]
78 proc: mm_fix_start_level
79 jlt .onedigit, [start_level], 9
81 psh main_menu_level_digit1
87 psh main_menu_level_digit0
96 psh main_menu_level_digit0
102 wxc main_menu_level_digit1, 32
104 endp: mm_fix_start_level
108 jeq .sound, [sound_disabled], 0
109 wxc main_menu_sound_text0, 110
110 wxc main_menu_sound_text1, 111
111 wxc main_menu_sound_text2, 32
114 wxc main_menu_sound_text0, 121
115 wxc main_menu_sound_text1, 101
116 wxc main_menu_sound_text2, 115
122 args: .actitem, .y, .menu
130 psh [polyfix_base] ; scale
135 jne @@f, [.-10], 0 ; .actitem
139 rst FRST_DRAW_TEXT, [.-8] ; .menu
154 label: main_menu_level_digit0 = $-3
155 label: main_menu_level_digit1 = $-2
157 label: main_menu_sound_text0 = $-4
158 label: main_menu_sound_text1 = $-3
159 label: main_menu_sound_text2 = $-2