Rev 1518 | Rev 1522 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1518 | Rev 1520 | ||
---|---|---|---|
1 | ;;===HEADER==================================================================================================================== |
1 | ;;===HEADER==================================================================================================================== |
2 | 2 | ||
3 | use32 |
3 | use32 |
4 | org 0x0 |
4 | org 0x0 |
5 | db 'MENUET01' |
5 | db 'MENUET01' |
6 | dd 0x1,start,i_end,d_end,stacktop,0x0,cur_dir_path |
6 | dd 0x1,start,i_end,d_end,stacktop,0x0,cur_dir_path |
7 | 7 | ||
8 | ;;---HEADER-------------------------------------------------------------------------------------------------------------------- |
8 | ;;---HEADER-------------------------------------------------------------------------------------------------------------------- |
9 | 9 | ||
10 | include '../../../proc32.inc' |
10 | include '../../../proc32.inc' |
11 | include '../../../macros.inc' |
11 | include '../../../macros.inc' |
12 | include '../../../system/launch/trunk/mem.inc' |
12 | include '../../../system/launch/trunk/mem.inc' |
13 | include '../../../develop/libraries/libs-dev/.test/dll.inc' |
13 | include '../../../develop/libraries/libs-dev/.test/dll.inc' |
14 | include '../../../develop/libraries/box_lib/trunk/box_lib.mac' |
14 | include '../../../develop/libraries/box_lib/trunk/box_lib.mac' |
- | 15 | ;include '../../../system/board/trunk/debug.inc' |
|
15 | 16 | ||
16 | ;;===Define_chapter============================================================================================================ |
17 | ;;===Define_chapter============================================================================================================ |
17 | 18 | ||
18 | WINDOW_WIDTH equ 550 |
19 | WINDOW_WIDTH equ 550 |
19 | WINDOW_HEIGHT equ 320 |
20 | WINDOW_HEIGHT equ 320 |
20 | GRID_STEP equ 20 |
21 | GRID_STEP equ 20 |
21 | GRID_BEGIN_X equ 31 |
22 | GRID_BEGIN_X equ 31 |
22 | GRID_BEGIN_Y equ 31 |
23 | GRID_BEGIN_Y equ 31 |
23 | GRID_WIDTH equ 24 |
24 | GRID_WIDTH equ 24 |
24 | GRID_HEIGHT equ 11 |
25 | GRID_HEIGHT equ 11 |
25 | GRID_ENDS_WIDTH equ 13 |
26 | GRID_ENDS_WIDTH equ 13 |
26 | 27 | ||
27 | BOTTOM_TOP_STRINGS equ 270 |
28 | BOTTOM_TOP_STRINGS equ 270 |
28 | BOTTOM_MIDDLE_STRINGS equ 276 |
29 | BOTTOM_MIDDLE_STRINGS equ 276 |
29 | BOTTOM_BOTTOM_STRINGS equ 282 |
30 | BOTTOM_BOTTOM_STRINGS equ 282 |
30 | TOP_STRINGS equ 5 |
31 | TOP_STRINGS equ 5 |
31 | 32 | ||
32 | SCORE_EAT equ 100 |
33 | SCORE_EAT equ 100 |
33 | 34 | ||
34 | LEFT equ 0 |
35 | LEFT equ 0 |
35 | DOWN equ 1 |
36 | DOWN equ 1 |
36 | UP equ 2 |
37 | UP equ 2 |
37 | RIGHT equ 3 |
38 | RIGHT equ 3 |
38 | 39 | ||
39 | ;;---Define_chapter------------------------------------------------------------------------------------------------------------ |
40 | ;;---Define_chapter------------------------------------------------------------------------------------------------------------ |
40 | 41 | ||
41 | start: |
42 | start: |
42 | 43 | ||
43 | stdcall dll.Load,@IMPORT |
44 | stdcall dll.Load,@IMPORT |
44 | or eax, eax |
45 | or eax, eax |
45 | jnz Exit |
46 | jnz Exit |
46 | 47 | ||
47 | align 4 |
48 | align 4 |
48 | 49 | ||
49 | mov eax, cur_dir_path |
50 | mov eax, cur_dir_path |
50 | @@: |
51 | @@: |
51 | cmp byte[eax], 0 |
52 | cmp byte[eax], 0 |
52 | jz @f |
53 | jz @f |
53 | inc eax |
54 | inc eax |
54 | jmp @b |
55 | jmp @b |
55 | @@: |
56 | @@: |
56 | mov dword[eax], '.ini' |
57 | mov dword[eax], '.ini' |
57 | 58 | ||
58 | invoke ini.get_int, cur_dir_path, aPreferences, aSpeed, 70 |
59 | invoke ini.get_int, cur_dir_path, aPreferences, aSpeed, 80 |
59 | neg eax |
60 | neg eax |
60 | add [time_wait_limit], eax |
61 | add [time_wait_limit], eax |
61 | invoke ini.get_int, cur_dir_path, aPreferences, aDecorations, 1 |
62 | invoke ini.get_int, cur_dir_path, aPreferences, aDecorations, 2 |
62 | mov [decorations], al |
63 | mov [decorations], al |
63 | 64 | ||
64 | invoke ini.get_color, cur_dir_path, aColors, aBackground_color, 0x000000 |
65 | invoke ini.get_color, cur_dir_path, aColors, aBackground_color, 0x000000 |
65 | or [background_color], eax |
66 | or [background_color], eax |
66 | or [window_style], eax |
67 | or [window_style], eax |
67 | invoke ini.get_color, cur_dir_path, aColors, aDecorations_color, 0x00aaaa00 |
68 | invoke ini.get_color, cur_dir_path, aColors, aDecorations_color, 0x00aaaa00 |
68 | or [decorations_color], eax |
69 | or [decorations_color], eax |
69 | invoke ini.get_color, cur_dir_path, aColors, aSnake_color, 0x1111ff |
70 | invoke ini.get_color, cur_dir_path, aColors, aSnake_color, 0x1111ff |
70 | or [snake_color], eax |
71 | or [snake_color], eax |
71 | invoke ini.get_color, cur_dir_path, aColors, aSnake_head_color, 0x1111ff |
72 | invoke ini.get_color, cur_dir_path, aColors, aSnake_head_color, 0x1111ff |
72 | or [snake_head_color], eax |
73 | or [snake_head_color], eax |
73 | invoke ini.get_color, cur_dir_path, aColors, aSnake_picture_color, 0x4488ff |
74 | invoke ini.get_color, cur_dir_path, aColors, aSnake_picture_color, 0x4488ff |
74 | or [snake_picture_color], eax |
75 | or [snake_picture_color], eax |
75 | invoke ini.get_color, cur_dir_path, aColors, aVersion_picture_color, 0x55ff55 |
76 | invoke ini.get_color, cur_dir_path, aColors, aVersion_picture_color, 0x55ff55 |
76 | or [version_picture_color], eax |
77 | or [version_picture_color], eax |
77 | invoke ini.get_color, cur_dir_path, aColors, aPause_picture_color, 0x11ff11 |
78 | invoke ini.get_color, cur_dir_path, aColors, aPause_picture_color, 0x11ff11 |
78 | or [pause_picture_color], eax |
79 | or [pause_picture_color], eax |
79 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_picture_color, 0xff1111 |
80 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_picture_color, 0xff1111 |
80 | or [game_over_picture_color], eax |
81 | or [game_over_picture_color], eax |
81 | invoke ini.get_color, cur_dir_path, aColors, aEat_color, 0xffff11 |
82 | invoke ini.get_color, cur_dir_path, aColors, aEat_color, 0xffff11 |
82 | or [eat_color], eax |
83 | or [eat_color], eax |
83 | invoke ini.get_color, cur_dir_path, aColors, aNavigation_strings_color, 0x80ff7777 |
84 | invoke ini.get_color, cur_dir_path, aColors, aNavigation_strings_color, 0x80ff7777 |
84 | or [navigation_strings_color], eax |
85 | or [navigation_strings_color], eax |
85 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_strings_color, 0x80ff9900 |
86 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_strings_color, 0x80ff9900 |
86 | or [game_over_strings_color], eax |
87 | or [game_over_strings_color], eax |
87 | invoke ini.get_color, cur_dir_path, aColors, aScore_string_color, 0x80ffffff |
88 | invoke ini.get_color, cur_dir_path, aColors, aScore_string_color, 0x80ffffff |
88 | or [score_string_color], eax |
89 | or [score_string_color], eax |
89 | invoke ini.get_color, cur_dir_path, aColors, aHiscore_string_color, 0x80ffffff |
90 | invoke ini.get_color, cur_dir_path, aColors, aHiscore_string_color, 0x80ffffff |
90 | or [hiscore_string_color], eax |
91 | or [hiscore_string_color], eax |
91 | invoke ini.get_color, cur_dir_path, aColors, aChampion_string_color, 0x80ffffff |
92 | invoke ini.get_color, cur_dir_path, aColors, aChampion_string_color, 0x80ffffff |
92 | or [champion_string_color], eax |
93 | or [champion_string_color], eax |
93 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_hiscore_color, 0x80ffdd44 |
94 | invoke ini.get_color, cur_dir_path, aColors, aGame_over_hiscore_color, 0x80ffdd44 |
94 | or [game_over_hiscore_color], eax |
95 | or [game_over_hiscore_color], eax |
95 | invoke ini.get_color, cur_dir_path, aColors, aScore_number_color, 0xffffff |
96 | invoke ini.get_color, cur_dir_path, aColors, aScore_number_color, 0xffffff |
96 | or [score_number_color], eax |
97 | or [score_number_color], eax |
97 | invoke ini.get_color, cur_dir_path, aColors, aHiscore_number_color, 0x00ffffff |
98 | invoke ini.get_color, cur_dir_path, aColors, aHiscore_number_color, 0x00ffffff |
98 | or [hiscore_number_color], eax |
99 | or [hiscore_number_color], eax |
99 | invoke ini.get_color, cur_dir_path, aColors, aChampion_name_color, 0x80ffffff |
100 | invoke ini.get_color, cur_dir_path, aColors, aChampion_name_color, 0x80ffffff |
100 | or [champion_name_color], eax |
101 | or [champion_name_color], eax |
- | 102 | invoke ini.get_color, cur_dir_path, aColors, aEdit_box_selection_color, 0x00aa00 |
|
- | 103 | or [edit1+0x10], eax |
|
- | 104 | ||
- | 105 | mov eax, [background_color] |
|
- | 106 | mov [edit1+0x0C], eax |
|
- | 107 | mov [edit1+0x14], eax |
|
- | 108 | mov [edit1+0x18], eax |
|
- | 109 | mov eax, [game_over_hiscore_color] |
|
- | 110 | mov [edit1+0x1C], eax |
|
101 | 111 | ||
102 | include 'first_menu.asm' ; First menu body and functions |
112 | include 'first_menu.asm' ; First menu body and functions |
103 | include 'level.asm' ; Level body and functions (game process) |
113 | include 'level.asm' ; Level body and functions (game process) |
104 | include 'pause.asm' ; Pause body and functions |
114 | include 'pause.asm' ; Pause body and functions |
105 | include 'game_over.asm' ; Game_over body and functions |
115 | include 'game_over.asm' ; Game_over body and functions |
106 | 116 | ||
107 | ;;===Some_functions============================================================================================================ |
117 | ;;===Some_functions============================================================================================================ |
108 | 118 | ||
109 | Exit: |
119 | Exit: |
110 | ;;===Exit============================================================================================================== |
120 | ;;===Exit============================================================================================================== |
111 | 121 | ||
112 | or eax, -1 |
122 | or eax, -1 |
113 | int 0x40 |
123 | int 0x40 |
114 | 124 | ||
115 | ;;---Exit-------------------------------------------------------------------------------------------------------------- |
125 | ;;---Exit-------------------------------------------------------------------------------------------------------------- |
116 | 126 | ||
117 | 127 | ||
118 | Draw_decorations: |
128 | Draw_decorations: |
119 | ;;===Draw_decorations================================================================================================== |
129 | ;;===Draw_decorations================================================================================================== |
120 | 130 | ||
121 | cmp [decorations], 1 |
131 | cmp [decorations], 1 |
122 | je grid_lines |
132 | je grid_lines |
123 | cmp [decorations], 2 |
133 | cmp [decorations], 2 |
124 | je grid_lines_with_ends |
134 | je grid_lines_with_ends |
125 | cmp [decorations], 3 |
135 | cmp [decorations], 3 |
126 | je grid_lines_with_corners |
136 | je grid_lines_with_corners |
127 | cmp [decorations], 4 |
137 | cmp [decorations], 4 |
128 | je grid_dots |
138 | je grid_dots |
129 | cmp [decorations], 5 |
139 | cmp [decorations], 5 |
130 | je borders_lines |
140 | je borders_lines |
131 | cmp [decorations], 6 |
141 | cmp [decorations], 6 |
132 | je borders_lines_with_ends |
142 | je borders_lines_with_ends |
133 | cmp [decorations], 7 |
143 | cmp [decorations], 7 |
134 | je borders_dots |
144 | je borders_dots |
135 | cmp [decorations], 8 |
145 | cmp [decorations], 8 |
136 | je corners_dots |
146 | je corners_dots |
137 | cmp [decorations], 9 |
147 | cmp [decorations], 9 |
138 | je corners_inner |
148 | je corners_inner |
139 | cmp [decorations], 10 |
149 | cmp [decorations], 10 |
140 | je corners_outer |
150 | je corners_outer |
141 | cmp [decorations], 11 |
151 | cmp [decorations], 11 |
142 | je corners_crosses |
152 | je corners_crosses |
143 | ret |
153 | ret |
144 | 154 | ||
145 | 155 | ||
146 | grid_lines: |
156 | grid_lines: |
147 | 157 | ||
148 | mov eax, 38 |
158 | mov eax, 38 |
149 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1) |
159 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1) |
150 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
160 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
151 | mov edx, [decorations_color] |
161 | mov edx, [decorations_color] |
152 | 162 | ||
153 | @@: |
163 | @@: |
154 | mcall |
164 | mcall |
155 | add ebx, GRID_STEP*65536+GRID_STEP |
165 | add ebx, GRID_STEP*65536+GRID_STEP |
156 | cmp ebx, (GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
166 | cmp ebx, (GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
157 | jng @b |
167 | jng @b |
158 | 168 | ||
159 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
169 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
160 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
170 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
161 | 171 | ||
162 | @@: |
172 | @@: |
163 | mcall |
173 | mcall |
164 | add ecx, GRID_STEP*65536+GRID_STEP |
174 | add ecx, GRID_STEP*65536+GRID_STEP |
165 | cmp ecx, (GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
175 | cmp ecx, (GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
166 | jng @b |
176 | jng @b |
167 | 177 | ||
168 | ret |
178 | ret |
169 | 179 | ||
170 | 180 | ||
171 | grid_lines_with_ends: |
181 | grid_lines_with_ends: |
172 | 182 | ||
173 | mov eax, 38 |
183 | mov eax, 38 |
174 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1) |
184 | mov ebx, (GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1) |
175 | mov ecx, (GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP+GRID_ENDS_WIDTH) |
185 | mov ecx, (GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP+GRID_ENDS_WIDTH) |
176 | mov edx, [decorations_color] |
186 | mov edx, [decorations_color] |
177 | 187 | ||
178 | @@: |
188 | @@: |
179 | mcall |
189 | mcall |
180 | add ebx, GRID_STEP*65536+GRID_STEP |
190 | add ebx, GRID_STEP*65536+GRID_STEP |
181 | cmp ebx, (GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
191 | cmp ebx, (GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP) |
182 | jng @b |
192 | jng @b |
183 | 193 | ||
184 | mov ebx, (GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP+GRID_ENDS_WIDTH) |
194 | mov ebx, (GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP+GRID_ENDS_WIDTH) |
185 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
195 | mov ecx, (GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
186 | 196 | ||
187 | @@: |
197 | @@: |
188 | mcall |
198 | mcall |
189 | add ecx, GRID_STEP*65536+GRID_STEP |
199 | add ecx, GRID_STEP*65536+GRID_STEP |
190 | cmp ecx, (GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
200 | cmp ecx, (GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP)*65536+(GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP) |
191 | jng @b |
201 | jng @b |
192 | 202 | ||
193 | ret |
203 | ret |
194 | 204 | ||
195 | 205 | ||
196 | grid_lines_with_corners: |
206 | grid_lines_with_corners: |
197 | 207 | ||
198 | call grid_lines |
208 | call grid_lines |
199 | call corners_outer |
209 | call corners_outer |
200 | 210 | ||
201 | ret |
211 | ret |
202 | 212 | ||
203 | 213 | ||
204 | grid_dots: |
214 | grid_dots: |
205 | 215 | ||
206 | mov eax, 1 |
216 | mov eax, 1 |
207 | mov ebx, GRID_BEGIN_X-1 |
217 | mov ebx, GRID_BEGIN_X-1 |
208 | mov ecx, GRID_BEGIN_Y-1 |
218 | mov ecx, GRID_BEGIN_Y-1 |
209 | mov edx, [decorations_color] |
219 | mov edx, [decorations_color] |
210 | 220 | ||
211 | @@: |
221 | @@: |
212 | mcall |
222 | mcall |
213 | add ebx, GRID_STEP |
223 | add ebx, GRID_STEP |
214 | cmp ebx, GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1 |
224 | cmp ebx, GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1 |
215 | jng @b |
225 | jng @b |
216 | add ecx, GRID_STEP |
226 | add ecx, GRID_STEP |
217 | cmp ecx, GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1 |
227 | cmp ecx, GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1 |
218 | jg @f |
228 | jg @f |
219 | mov ebx, GRID_BEGIN_X-1 |
229 | mov ebx, GRID_BEGIN_X-1 |
220 | jmp @b |
230 | jmp @b |
221 | 231 | ||
222 | @@: |
232 | @@: |
223 | ret |
233 | ret |
224 | 234 | ||
225 | 235 | ||
226 | borders_lines: |
236 | borders_lines: |
227 | 237 | ||
228 | mcall 38,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),17*65536+263,[decorations_color] |
238 | mcall 38,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),17*65536+263,[decorations_color] |
229 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1), , |
239 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1), , |
230 | mcall ,17*65536+523,(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
240 | mcall ,17*65536+523,(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1) |
231 | mcall ,17*65536+523,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1) |
241 | mcall ,17*65536+523,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1) |
232 | 242 | ||
233 | ret |
243 | ret |
234 | 244 | ||
235 | 245 | ||
236 | borders_lines_with_ends: |
246 | borders_lines_with_ends: |
237 | 247 | ||
238 | call borders_lines |
248 | call borders_lines |
239 | call corners_outer |
249 | call corners_outer |
240 | 250 | ||
241 | ret |
251 | ret |
242 | 252 | ||
243 | 253 | ||
244 | borders_dots: |
254 | borders_dots: |
245 | 255 | ||
246 | mov eax, 1 |
256 | mov eax, 1 |
247 | mov ebx, GRID_BEGIN_X-1 |
257 | mov ebx, GRID_BEGIN_X-1 |
248 | mov ecx, GRID_BEGIN_Y-1 |
258 | mov ecx, GRID_BEGIN_Y-1 |
249 | mov edx, [decorations_color] |
259 | mov edx, [decorations_color] |
250 | @@: |
260 | @@: |
251 | mcall |
261 | mcall |
252 | add ebx, GRID_STEP |
262 | add ebx, GRID_STEP |
253 | cmp ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
263 | cmp ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
254 | jng @b |
264 | jng @b |
255 | 265 | ||
256 | mov ebx, GRID_BEGIN_X-1 |
266 | mov ebx, GRID_BEGIN_X-1 |
257 | mov ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
267 | mov ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
258 | @@: |
268 | @@: |
259 | mcall |
269 | mcall |
260 | add ebx, GRID_STEP |
270 | add ebx, GRID_STEP |
261 | cmp ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
271 | cmp ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
262 | jng @b |
272 | jng @b |
263 | 273 | ||
264 | mov ebx, GRID_BEGIN_X-1 |
274 | mov ebx, GRID_BEGIN_X-1 |
265 | mov ecx, GRID_BEGIN_Y-1 |
275 | mov ecx, GRID_BEGIN_Y-1 |
266 | @@: |
276 | @@: |
267 | mcall |
277 | mcall |
268 | add ecx, GRID_STEP |
278 | add ecx, GRID_STEP |
269 | cmp ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
279 | cmp ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
270 | jng @b |
280 | jng @b |
271 | 281 | ||
272 | mov ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
282 | mov ebx, GRID_BEGIN_X-1+GRID_WIDTH*GRID_STEP |
273 | mov ecx, GRID_BEGIN_Y-1 |
283 | mov ecx, GRID_BEGIN_Y-1 |
274 | @@: |
284 | @@: |
275 | mcall |
285 | mcall |
276 | add ecx, GRID_STEP |
286 | add ecx, GRID_STEP |
277 | cmp ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
287 | cmp ecx, GRID_BEGIN_Y-1+GRID_HEIGHT*GRID_STEP |
278 | jng @b |
288 | jng @b |
279 | 289 | ||
280 | ret |
290 | ret |
281 | 291 | ||
282 | 292 | ||
283 | corners_dots: |
293 | corners_dots: |
284 | 294 | ||
285 | mcall 13,(GRID_BEGIN_X-2)*65536+2,(GRID_BEGIN_Y-2)*65536+2,[decorations_color] |
295 | mcall 13,(GRID_BEGIN_X-2)*65536+2,(GRID_BEGIN_Y-2)*65536+2,[decorations_color] |
286 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+2,(GRID_BEGIN_Y-2)*65536+2, |
296 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+2,(GRID_BEGIN_Y-2)*65536+2, |
287 | mcall 13,(GRID_BEGIN_X-2)*65536+2,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+2, |
297 | mcall 13,(GRID_BEGIN_X-2)*65536+2,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+2, |
288 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+2,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+2, |
298 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+2,(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+2, |
289 | 299 | ||
290 | ret |
300 | ret |
291 | 301 | ||
292 | 302 | ||
293 | corners_inner: |
303 | corners_inner: |
294 | 304 | ||
295 | mcall 38,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1),[decorations_color] |
305 | mcall 38,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1),[decorations_color] |
296 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
306 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
297 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1), |
307 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1), |
298 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
308 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
299 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_ENDS_WIDTH), |
309 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_ENDS_WIDTH), |
300 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_ENDS_WIDTH), |
310 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1+GRID_ENDS_WIDTH), |
301 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
311 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
302 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
312 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-GRID_ENDS_WIDTH-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
303 | 313 | ||
304 | ret |
314 | ret |
305 | 315 | ||
306 | 316 | ||
307 | corners_outer: |
317 | corners_outer: |
308 | 318 | ||
309 | mcall 38,(GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1),[decorations_color] |
319 | mcall 38,(GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1),[decorations_color] |
310 | mcall ,(GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
320 | mcall ,(GRID_BEGIN_X-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
311 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1), |
321 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y-1)*65536+(GRID_BEGIN_Y-1), |
312 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
322 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1+GRID_ENDS_WIDTH),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1), |
313 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1), |
323 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1), |
314 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1), |
324 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y-1-GRID_ENDS_WIDTH)*65536+(GRID_BEGIN_Y-1), |
315 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1+GRID_ENDS_WIDTH), |
325 | mcall ,(GRID_BEGIN_X-1)*65536+(GRID_BEGIN_X-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1+GRID_ENDS_WIDTH), |
316 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1+GRID_ENDS_WIDTH), |
326 | mcall ,(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1)*65536+(GRID_BEGIN_X+GRID_WIDTH*GRID_STEP-1),(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1)*65536+(GRID_BEGIN_Y+GRID_HEIGHT*GRID_STEP-1+GRID_ENDS_WIDTH), |
317 | 327 | ||
318 | ret |
328 | ret |
319 | 329 | ||
320 | 330 | ||
321 | corners_crosses: |
331 | corners_crosses: |
322 | 332 | ||
323 | call corners_inner |
333 | call corners_inner |
324 | call corners_outer |
334 | call corners_outer |
325 | 335 | ||
326 | ret |
336 | ret |
327 | 337 | ||
328 | 338 | ||
329 | ;;---Draw_decorations-------------------------------------------------------------------------------------------------- |
339 | ;;---Draw_decorations-------------------------------------------------------------------------------------------------- |
330 | 340 | ||
331 | 341 | ||
332 | Draw_square: |
342 | Draw_square: |
333 | ;;===Draw_square======================================================================================================= |
343 | ;;===Draw_square======================================================================================================= |
334 | ;; bl - x_coord |
344 | ;; bl - x_coord |
335 | ;; bh - y_coord |
345 | ;; bh - y_coord |
336 | ;; edx - color |
346 | ;; edx - color |
337 | 347 | ||
338 | mov cl, bh |
348 | mov cl, bh |
339 | 349 | ||
340 | mov al, 20 |
350 | mov al, 20 |
341 | mul bl |
351 | mul bl |
342 | mov bx, ax |
352 | mov bx, ax |
343 | add bx, 31 |
353 | add bx, 31 |
344 | shl ebx, 16 |
354 | shl ebx, 16 |
345 | add ebx, 19 |
355 | add ebx, 19 |
346 | 356 | ||
347 | mov al, 20 |
357 | mov al, 20 |
348 | mul cl |
358 | mul cl |
349 | mov cx, ax |
359 | mov cx, ax |
350 | add cx, 31 |
360 | add cx, 31 |
351 | shl ecx, 16 |
361 | shl ecx, 16 |
352 | add ecx, 19 |
362 | add ecx, 19 |
353 | 363 | ||
354 | mcall 13 |
364 | mcall 13 |
355 | 365 | ||
356 | ret |
366 | ret |
357 | 367 | ||
358 | ;;---Draw_square------------------------------------------------------------------------------------------------------- |
368 | ;;---Draw_square------------------------------------------------------------------------------------------------------- |
359 | 369 | ||
360 | 370 | ||
361 | Draw_menu_esc: |
371 | Draw_menu_esc: |
362 | ;;===Draw_menu_esc===================================================================================================== |
372 | ;;===Draw_menu_esc===================================================================================================== |
363 | 373 | ||
364 | mcall 4,234*65536+TOP_STRINGS,[navigation_strings_color],string_menu_esc |
374 | mcall 4,234*65536+TOP_STRINGS,[navigation_strings_color],string_menu_esc |
365 | 375 | ||
366 | ret |
376 | ret |
367 | 377 | ||
368 | ;;---Draw_menu_esc----------------------------------------------------------------------------------------------------- |
378 | ;;---Draw_menu_esc----------------------------------------------------------------------------------------------------- |
369 | 379 | ||
370 | 380 | ||
371 | Draw_score_string: |
381 | Draw_score_string: |
372 | ;;===Draw_score_string================================================================================================= |
382 | ;;===Draw_score_string================================================================================================= |
373 | 383 | ||
374 | mcall 4,56*65536+BOTTOM_TOP_STRINGS,[score_string_color],string_score |
384 | mcall 4,56*65536+BOTTOM_TOP_STRINGS,[score_string_color],string_score |
375 | 385 | ||
376 | ret |
386 | ret |
377 | 387 | ||
378 | ;;---Draw_score_string------------------------------------------------------------------------------------------------- |
388 | ;;---Draw_score_string------------------------------------------------------------------------------------------------- |
379 | 389 | ||
380 | 390 | ||
381 | Draw_score_number: |
391 | Draw_score_number: |
382 | ;;===Draw_score_number================================================================================================= |
392 | ;;===Draw_score_number================================================================================================= |
383 | 393 | ||
384 | mcall 47,0x00070000,[score],104*65536+BOTTOM_TOP_STRINGS,[score_number_color],[background_color] |
394 | mcall 47,0x00070000,[score],104*65536+BOTTOM_TOP_STRINGS,[score_number_color],[background_color] |
385 | 395 | ||
386 | ret |
396 | ret |
387 | 397 | ||
388 | ;;---Draw_score_number------------------------------------------------------------------------------------------------- |
398 | ;;---Draw_score_number------------------------------------------------------------------------------------------------- |
389 | 399 | ||
390 | 400 | ||
391 | Draw_hiscore_string: |
401 | Draw_hiscore_string: |
392 | ;;===Draw_hiscore_string=============================================================================================== |
402 | ;;===Draw_hiscore_string=============================================================================================== |
393 | 403 | ||
394 | mcall 4,376*65536+BOTTOM_TOP_STRINGS,[hiscore_string_color],string_hi_score |
404 | mcall 4,376*65536+BOTTOM_TOP_STRINGS,[hiscore_string_color],string_hi_score |
395 | 405 | ||
396 | ret |
406 | ret |
397 | 407 | ||
398 | ;;---Draw_hiscore_string----------------------------------------------------------------------------------------------- |
408 | ;;---Draw_hiscore_string----------------------------------------------------------------------------------------------- |
399 | 409 | ||
400 | 410 | ||
401 | Draw_hiscore_number: |
411 | Draw_hiscore_number: |
402 | ;;===Draw_hiscore_number=============================================================================================== |
412 | ;;===Draw_hiscore_number=============================================================================================== |
403 | 413 | ||
404 | mcall 47,0x00070000,[hi_score],442*65536+BOTTOM_TOP_STRINGS,[hiscore_number_color] |
414 | mcall 47,0x00070000,[hi_score],442*65536+BOTTOM_TOP_STRINGS,[hiscore_number_color] |
405 | 415 | ||
406 | ret |
416 | ret |
407 | 417 | ||
408 | ;;---Draw_hiscore_number----------------------------------------------------------------------------------------------- |
418 | ;;---Draw_hiscore_number----------------------------------------------------------------------------------------------- |
409 | 419 | ||
410 | 420 | ||
411 | Draw_champion_string: |
421 | Draw_champion_string: |
412 | ;;===Draw_champion_string============================================================================================== |
422 | ;;===Draw_champion_string============================================================================================== |
413 | 423 | ||
414 | mcall 4,376*65536+BOTTOM_BOTTOM_STRINGS,[champion_string_color],string_champion |
424 | mcall 4,376*65536+BOTTOM_BOTTOM_STRINGS,[champion_string_color],string_champion |
415 | 425 | ||
416 | ret |
426 | ret |
417 | 427 | ||
418 | ;;---Draw_champion_string---------------------------------------------------------------------------------------------- |
428 | ;;---Draw_champion_string---------------------------------------------------------------------------------------------- |
419 | 429 | ||
420 | 430 | ||
421 | Draw_champion_name: |
431 | Draw_champion_name: |
422 | ;;===Draw_champion_name================================================================================================ |
432 | ;;===Draw_champion_name================================================================================================ |
423 | 433 | ||
424 | mcall 4,442*65536+BOTTOM_BOTTOM_STRINGS,[champion_name_color],champion_name |
434 | mcall 4,442*65536+BOTTOM_BOTTOM_STRINGS,[champion_name_color],champion_name |
425 | 435 | ||
426 | ret |
436 | ret |
427 | 437 | ||
428 | ;;---Draw_champion_name------------------------------------------------------------------------------------------------ |
438 | ;;---Draw_champion_name------------------------------------------------------------------------------------------------ |
429 | 439 | ||
430 | 440 | ||
431 | Draw_picture: |
441 | Draw_picture: |
432 | ;;===Draw_picture====================================================================================================== |
442 | ;;===Draw_picture====================================================================================================== |
433 | ;; in : |
443 | ;; in : |
434 | ;; al = picture height (in squares) |
444 | ;; al = picture height (in squares) |
435 | ;; bh = number of top square |
445 | ;; bh = number of top square |
436 | ;; ecx = pointer to picture data |
446 | ;; ecx = pointer to picture data |
437 | ;; edx = picture color |
447 | ;; edx = picture color |
438 | ;; |
448 | ;; |
439 | 449 | ||
440 | .draw: |
450 | .draw: |
441 | xor bl, bl |
451 | xor bl, bl |
442 | 452 | ||
443 | .loop: |
453 | .loop: |
444 | cmp byte[ecx], 0 |
454 | cmp byte[ecx], 0 |
445 | jz @f |
455 | jz @f |
446 | push eax ebx ecx |
456 | push eax ebx ecx |
447 | call Draw_square |
457 | call Draw_square |
448 | pop ecx ebx eax |
458 | pop ecx ebx eax |
449 | 459 | ||
450 | @@: |
460 | @@: |
451 | inc ecx |
461 | inc ecx |
452 | inc bl |
462 | inc bl |
453 | cmp bl, GRID_WIDTH |
463 | cmp bl, GRID_WIDTH |
454 | jne .loop |
464 | jne .loop |
455 | 465 | ||
456 | dec al |
466 | dec al |
457 | test al, al |
467 | test al, al |
458 | jnz @f |
468 | jnz @f |
459 | ret |
469 | ret |
460 | @@: |
470 | @@: |
461 | inc bh |
471 | inc bh |
462 | jmp .draw |
472 | jmp .draw |
463 | 473 | ||
464 | 474 | ||
465 | ;;---Draw_picture------------------------------------------------------------------------------------------------------ |
475 | ;;---Draw_picture------------------------------------------------------------------------------------------------------ |
466 | 476 | ||
467 | 477 | ||
468 | Draw_on_map: |
478 | Draw_on_map: |
469 | ;;===Draw_on_map======================================================================================================= |
479 | ;;===Draw_on_map======================================================================================================= |
470 | ;; in : |
480 | ;; in : |
471 | ;; al = x coord |
481 | ;; al = x coord |
472 | ;; ah = y coord |
482 | ;; ah = y coord |
473 | ;; cl = value to draw |
483 | ;; cl = value to draw |
474 | ;; |
484 | ;; |
475 | 485 | ||
476 | and eax, 0x0000ffff |
486 | and eax, 0x0000ffff |
477 | xor bx, bx |
487 | xor bx, bx |
478 | mov bl, al |
488 | mov bl, al |
479 | shr ax, 8 |
489 | shr ax, 8 |
480 | mov dx, 24 |
490 | mov dx, 24 |
481 | mul dx |
491 | mul dx |
482 | add ax, bx |
492 | add ax, bx |
483 | mov edi, field_map |
493 | mov edi, field_map |
484 | add edi, eax |
494 | add edi, eax |
485 | mov [edi], cl |
495 | mov [edi], cl |
486 | 496 | ||
487 | ret |
497 | ret |
488 | 498 | ||
489 | ;;---Draw_on_map------------------------------------------------------------------------------------------------------- |
499 | ;;---Draw_on_map------------------------------------------------------------------------------------------------------- |
490 | 500 | ||
491 | 501 | ||
492 | Get_from_map: |
502 | Get_from_map: |
493 | ;;===Get_from_map====================================================================================================== |
503 | ;;===Get_from_map====================================================================================================== |
494 | ;; in : |
504 | ;; in : |
495 | ;; al = x coord |
505 | ;; al = x coord |
496 | ;; ah = y coord |
506 | ;; ah = y coord |
497 | ;; out : |
507 | ;; out : |
498 | ;; al = value on map |
508 | ;; al = value on map |
499 | ;; |
509 | ;; |
500 | 510 | ||
501 | push eax |
511 | push eax |
502 | 512 | ||
503 | and eax, 0x0000ffff |
513 | and eax, 0x0000ffff |
504 | xor bx, bx |
514 | xor bx, bx |
505 | mov bl, al |
515 | mov bl, al |
506 | shr ax, 8 |
516 | shr ax, 8 |
507 | mov dx, 24 |
517 | mov dx, 24 |
508 | mul dx |
518 | mul dx |
509 | add ax, bx |
519 | add ax, bx |
510 | mov edi, field_map |
520 | mov edi, field_map |
511 | add edi, eax |
521 | add edi, eax |
512 | mov bl, [edi] |
522 | mov bl, [edi] |
513 | 523 | ||
514 | pop eax |
524 | pop eax |
515 | 525 | ||
516 | ret |
526 | ret |
517 | 527 | ||
518 | ;;---Get_from_map------------------------------------------------------------------------------------------------------ |
528 | ;;---Get_from_map------------------------------------------------------------------------------------------------------ |
519 | 529 | ||
520 | 530 | ||
521 | ;;---Some_functions-------------------------------------------------------------------------------------------------------- |
531 | ;;---Some_functions-------------------------------------------------------------------------------------------------------- |
522 | 532 | ||
523 | 533 | ||
524 | ;;===Variables============================================================================================================= |
534 | ;;===Variables============================================================================================================= |
525 | 535 | ||
526 | window_title db 'Snake',0 |
536 | window_title db 'Snake',0 |
527 | window_style dd 0x34000000 |
537 | window_style dd 0x34000000 |
528 | time_before_waiting dd 0x0 |
538 | time_before_waiting dd 0x0 |
529 | time_to_wait dd 0x0 |
539 | time_to_wait dd 0x0 |
530 | time_wait_limit dd 101 |
540 | time_wait_limit dd 101 |
531 | decorations db 0x0 |
541 | decorations db 0x0 |
532 | number_of_free_dots dw 0x0 |
542 | number_of_free_dots dw 0x0 |
533 | 543 | ||
534 | field_map db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
544 | field_map db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
535 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
545 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
536 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
546 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
537 | 0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
547 | 0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
538 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
548 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
539 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
549 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
540 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
550 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
541 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
551 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
542 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
552 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
543 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
553 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
544 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
554 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
545 | 555 | ||
546 | string_score db 'SCORE :',0 |
556 | string_score db 'SCORE :',0 |
547 | string_hi_score db 'HI-SCORE :',0 |
557 | string_hi_score db 'HI-SCORE :',0 |
548 | string_player db 'PLAYER :',0 |
558 | string_player db 'PLAYER :',0 |
549 | string_champion db 'CHAMPION :',0 |
559 | string_champion db 'CHAMPION :',0 |
550 | string_level db 'LEVEL :',0 |
560 | string_level db 'LEVEL :',0 |
551 | string_pause_space db 'PAUSE - ',0x27,'SPACE',0x27,0 |
561 | string_pause_space db 'PAUSE - ',0x27,'SPACE',0x27,0 |
552 | string_resume_space db 'RESUME - ',0x27,'SPACE',0x27,0 |
562 | string_resume_space db 'RESUME - ',0x27,'SPACE',0x27,0 |
553 | string_menu_esc db 'MENU - ',0x27,'ESC',0x27,0 |
563 | string_menu_esc db 'MENU - ',0x27,'ESC',0x27,0 |
554 | string_apply_name_enter db 'APPLY NAME - ',0x27,'ENTER',0x27,0 |
564 | string_apply_name_enter db 'APPLY NAME - ',0x27,'ENTER',0x27,0 |
555 | 565 | ||
556 | champion_name db 'dunkaist',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0 |
566 | champion_name db 'dunkaist',0x20,0x20,0x20,0x20,0x20,0x20,0x20,0 |
557 | 567 | ||
558 | press_to_start db '...PRESS ',0x27,'SPACE',0x27,' OR ',0x27,'ENTER',0x27,' TO START...',0 |
568 | press_to_start db '...PRESS ',0x27,'SPACE',0x27,' OR ',0x27,'ENTER',0x27,' TO START...',0 |
559 | press_esc_to_exit db 'PRESS ',0x27,'ESC',0x27,' TO EXIT',0 |
569 | press_esc_to_exit db 'PRESS ',0x27,'ESC',0x27,' TO EXIT',0 |
560 | ;press_F2_to_options db 'PRESS ',0x27,'F2',0x27,' TO OPTIONS',0 |
570 | ;press_F2_to_options db 'PRESS ',0x27,'F2',0x27,' TO OPTIONS',0 |
561 | 571 | ||
562 | snake_dots db 3,3, 4,3, 5,3, 522 dup (0) ; 264 dots |
572 | snake_dots db 3,3, 4,3, 5,3, 522 dup (0) ; 264 dots |
563 | snake_napravlenie db 3 |
573 | snake_napravlenie db 3 |
564 | snake_napravlenie_next db 3 |
574 | snake_napravlenie_next db 3 |
565 | snake_length_x2 dd 6 |
575 | snake_length_x2 dd 6 |
566 | 576 | ||
567 | eat db 0,0 |
577 | eat db 0,0 |
568 | 578 | ||
569 | score dd 0 |
579 | score dd 0 |
570 | hi_score dd 777 |
580 | hi_score dd 777 |
571 | is_new_record db 0 |
581 | is_new_record db 0 |
572 | 582 | ||
573 | action db 0 |
583 | action db 0 |
574 | 584 | ||
575 | string_congratulations db 'Congratulations!!! You are the champion!! New hi-score is :',0 |
585 | string_congratulations db 'Congratulations!!! You are the champion!! New hi-score is :',0 |
576 | string_enter_your_name db 'Enter your name, please :',0 |
586 | string_enter_your_name db 'Enter your name, please :',0 |
577 | 587 | ||
578 | picture_first_menu_snake db 1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,\ |
588 | picture_first_menu_snake db 1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,\ |
579 | 1,0,0,0,0,1,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,\ |
589 | 1,0,0,0,0,1,1,0,1,0,1,0,0,1,0,1,0,1,0,0,1,0,0,1,\ |
580 | 1,1,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,1,\ |
590 | 1,1,1,1,0,1,0,1,1,0,1,0,0,1,0,1,1,0,0,0,1,1,1,1,\ |
581 | 0,0,0,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,0,0,1,0,0,0,\ |
591 | 0,0,0,1,0,1,0,1,1,0,1,1,1,1,0,1,0,1,0,0,1,0,0,0,\ |
582 | 1,1,1,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,1,1,1 |
592 | 1,1,1,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,1,1,1 |
583 | 593 | ||
584 | picture_first_menu_version db 0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,\ |
594 | picture_first_menu_version db 0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,\ |
585 | 0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,\ |
595 | 0,0,0,0,0,0,0,0,1,0,1,0,0,0,1,1,0,0,0,0,0,0,0,0,\ |
586 | 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,\ |
596 | 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,\ |
587 | 0,0,0,0,0,0,0,0,1,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0 |
597 | 0,0,0,0,0,0,0,0,1,1,1,0,1,0,0,1,0,0,0,0,0,0,0,0 |
588 | 598 | ||
589 | picture_pause db 1,1,1,0,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,0,1,1,1,1,\ |
599 | picture_pause db 1,1,1,0,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,0,1,1,1,1,\ |
590 | 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,\ |
600 | 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,\ |
591 | 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,\ |
601 | 1,0,0,1,0,1,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,0,0,\ |
592 | 1,1,1,0,0,1,1,1,1,0,1,0,0,1,0,1,1,1,1,0,1,1,1,0,\ |
602 | 1,1,1,0,0,1,1,1,1,0,1,0,0,1,0,1,1,1,1,0,1,1,1,0,\ |
593 | 1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,\ |
603 | 1,0,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,\ |
594 | 1,0,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,0,1,1,1,1 |
604 | 1,0,0,0,0,1,0,0,1,0,0,1,1,0,0,1,1,1,1,0,1,1,1,1 |
595 | 605 | ||
596 | picture_game_over db 0,0,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,1,1,1,1,0,\ |
606 | picture_game_over db 0,0,1,1,1,0,0,0,1,0,0,0,1,0,0,0,1,0,1,1,1,1,1,0,\ |
597 | 0,1,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,0,1,0,0,0,0,0,\ |
607 | 0,1,0,0,1,0,0,1,0,1,0,0,1,1,0,1,1,0,1,0,0,0,0,0,\ |
598 | 1,0,0,0,0,0,1,0,0,0,1,0,1,0,1,0,1,0,1,1,1,1,0,0,\ |
608 | 1,0,0,0,0,0,1,0,0,0,1,0,1,0,1,0,1,0,1,1,1,1,0,0,\ |
599 | 1,0,0,1,0,0,1,1,1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,0,\ |
609 | 1,0,0,1,0,0,1,1,1,1,1,0,1,0,0,0,1,0,1,0,0,0,0,0,\ |
600 | 0,1,1,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,1,0,\ |
610 | 0,1,1,1,0,0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,1,0,\ |
601 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
611 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
602 | 0,0,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,0,\ |
612 | 0,0,1,1,1,0,0,1,0,0,0,1,0,1,1,1,1,1,0,1,1,1,1,0,\ |
603 | 0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,\ |
613 | 0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0,1,\ |
604 | 0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,\ |
614 | 0,1,0,0,0,1,0,1,0,0,0,1,0,1,1,1,1,0,0,1,0,0,0,1,\ |
605 | 0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,1,1,1,0,\ |
615 | 0,1,0,0,0,1,0,0,1,0,1,0,0,1,0,0,0,0,0,1,1,1,1,0,\ |
606 | 0,0,1,1,1,0,0,0,0,1,0,0,0,1,1,1,1,1,0,1,0,0,0,1 |
616 | 0,0,1,1,1,0,0,0,0,1,0,0,0,1,1,1,1,1,0,1,0,0,0,1 |
607 | 617 | ||
608 | start_map db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
618 | start_map db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
609 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
619 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
620 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
611 | 0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
621 | 0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
612 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
622 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
613 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
623 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
614 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
624 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
615 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
625 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
616 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
626 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
617 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
627 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,\ |
618 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
628 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 |
619 | 629 | ||
620 | background_color dd 0x000000 |
630 | background_color dd 0x000000 |
621 | decorations_color dd 0x00000000 |
631 | decorations_color dd 0x00000000 |
622 | snake_color dd 0x000000 |
632 | snake_color dd 0x000000 |
623 | snake_head_color dd 0x000000 |
633 | snake_head_color dd 0x000000 |
624 | snake_picture_color dd 0x000000 |
634 | snake_picture_color dd 0x000000 |
625 | version_picture_color dd 0x000000 |
635 | version_picture_color dd 0x000000 |
626 | pause_picture_color dd 0x000000 |
636 | pause_picture_color dd 0x000000 |
627 | game_over_picture_color dd 0x000000 |
637 | game_over_picture_color dd 0x000000 |
628 | eat_color dd 0x000000 |
638 | eat_color dd 0x000000 |
629 | navigation_strings_color dd 0x80000000 |
639 | navigation_strings_color dd 0x80000000 |
630 | game_over_strings_color dd 0x80000000 |
640 | game_over_strings_color dd 0x80000000 |
631 | score_string_color dd 0x80000000 |
641 | score_string_color dd 0x80000000 |
632 | hiscore_string_color dd 0x80000000 |
642 | hiscore_string_color dd 0x80000000 |
633 | champion_string_color dd 0x80000000 |
643 | champion_string_color dd 0x80000000 |
634 | game_over_hiscore_color dd 0x80000000 |
644 | game_over_hiscore_color dd 0x80000000 |
635 | score_number_color dd 0x40000000 |
645 | score_number_color dd 0x40000000 |
636 | hiscore_number_color dd 0x00000000 |
646 | hiscore_number_color dd 0x00000000 |
637 | champion_name_color dd 0x80000000 |
647 | champion_name_color dd 0x80000000 |
638 | 648 | ||
639 | align 4 |
649 | align 4 |
640 | @IMPORT: |
650 | @IMPORT: |
641 | 651 | ||
642 | library \ |
652 | library \ |
643 | libini , 'libini.obj' ,\ |
653 | libini , 'libini.obj' ,\ |
644 | box_lib , 'box_lib.obj' |
654 | box_lib , 'box_lib.obj' |
645 | 655 | ||
646 | import libini,\ |
656 | import libini,\ |
647 | ini.get_str , 'ini_get_str' ,\ |
657 | ini.get_str , 'ini_get_str' ,\ |
648 | ini.get_int , 'ini_get_int' ,\ |
658 | ini.get_int , 'ini_get_int' ,\ |
649 | ini.set_str , 'ini_set_str' ,\ |
659 | ini.set_str , 'ini_set_str' ,\ |
650 | ini.set_int , 'ini_set_int' ,\ |
660 | ini.set_int , 'ini_set_int' ,\ |
651 | ini.get_color , 'ini_get_color' |
661 | ini.get_color , 'ini_get_color' |
652 | 662 | ||
653 | import box_lib,\ |
663 | import box_lib,\ |
654 | edit_box.draw , 'edit_box' ,\ |
664 | edit_box.draw , 'edit_box' ,\ |
655 | edit_box.key , 'edit_box_key' ,\ |
665 | edit_box.key , 'edit_box_key' ,\ |
656 | edit_box.mouse , 'edit_box_mouse' |
666 | edit_box.mouse , 'edit_box_mouse' |
657 | 667 | ||
658 | bFirstDraw db 0 |
668 | bFirstDraw db 0 |
659 | 669 | ||
660 | aScore db 'Score',0 |
670 | aScore db 'Score',0 |
661 | aHiscore db 'Hiscore',0 |
671 | aHiscore db 'Hiscore',0 |
662 | aChampion_name db 'Champion_name',0 |
672 | aChampion_name db 'Champion_name',0 |
663 | 673 | ||
664 | aPreferences db 'Preferences',0 |
674 | aPreferences db 'Preferences',0 |
665 | aSpeed db 'Speed',0 |
675 | aSpeed db 'Speed',0 |
666 | aDecorations db 'Decorations',0 |
676 | aDecorations db 'Decorations',0 |
667 | 677 | ||
668 | aColors db 'Colors',0 |
678 | aColors db 'Colors',0 |
669 | aBackground_color db 'Background_color',0 |
679 | aBackground_color db 'Background_color',0 |
670 | aDecorations_color db 'Decorations_color',0 |
680 | aDecorations_color db 'Decorations_color',0 |
671 | aSnake_color db 'Snake_color',0 |
681 | aSnake_color db 'Snake_color',0 |
672 | aSnake_head_color db 'Snake_head_color',0 |
682 | aSnake_head_color db 'Snake_head_color',0 |
673 | aSnake_picture_color db 'Snake_picture_color',0 |
683 | aSnake_picture_color db 'Snake_picture_color',0 |
674 | aVersion_picture_color db 'Version_picture_color',0 |
684 | aVersion_picture_color db 'Version_picture_color',0 |
675 | aPause_picture_color db 'Pause_picture_color',0 |
685 | aPause_picture_color db 'Pause_picture_color',0 |
676 | aGame_over_picture_color db 'Game_over_picture_color',0 |
686 | aGame_over_picture_color db 'Game_over_picture_color',0 |
677 | aEat_color db 'Eat_color',0 |
687 | aEat_color db 'Eat_color',0 |
678 | aNavigation_strings_color db 'Navigation_string_color',0 |
688 | aNavigation_strings_color db 'Navigation_string_color',0 |
679 | aGame_over_strings_color db 'Game_over_string_color',0 |
689 | aGame_over_strings_color db 'Game_over_string_color',0 |
680 | aScore_string_color db 'Score_string_color',0 |
690 | aScore_string_color db 'Score_string_color',0 |
681 | aHiscore_string_color db 'Hiscore_string_color',0 |
691 | aHiscore_string_color db 'Hiscore_string_color',0 |
682 | aChampion_string_color db 'Champion_string_color',0 |
692 | aChampion_string_color db 'Champion_string_color',0 |
683 | aGame_over_hiscore_color db 'Game_over_hiscore_color',0 |
693 | aGame_over_hiscore_color db 'Game_over_hiscore_color',0 |
684 | aScore_number_color db 'Score_number_color',0 |
694 | aScore_number_color db 'Score_number_color',0 |
685 | aHiscore_number_color db 'Hiscore_number_color',0 |
695 | aHiscore_number_color db 'Hiscore_number_color',0 |
686 | aChampion_name_color db 'Champion_name_color',0 |
696 | aChampion_name_color db 'Champion_name_color',0 |
- | 697 | aEdit_box_selection_color db 'Edit_box_selection_color',0 |
|
687 | 698 | ||
688 | edit1 edit_box 100,397,278,0x000000,0x00aa00,0x000000,0x000000,0x80ffdd44,15,hed,mouse_dd,ed_focus,hed_end-hed-1,hed_end-hed-1 |
699 | edit1 edit_box 100,397,278,0x000000,0x000000,0x000000,0x000000,0x80000000,15,hed,mouse_dd,ed_focus,hed_end-hed-1,hed_end-hed-1 |
689 | 700 | ||
690 | hed db '',0 |
701 | hed db '',0 |
691 | hed_end: |
702 | hed_end: |
692 | rb 256 |
703 | rb 256 |
693 | ed_buffer rb 100 |
- | |
694 | 704 | ||
695 | mouse_dd rd 1 |
705 | mouse_dd rd 1 |
696 | 706 | ||
697 | i_end: |
707 | i_end: |
698 | cur_dir_path rb 4096 |
708 | cur_dir_path rb 4096 |
699 | @PARAMS rb 4096 |
709 | @PARAMS rb 4096 |
700 | ;;---Variables------------------------------------------------------------------------------------------------------------- |
710 | ;;---Variables------------------------------------------------------------------------------------------------------------- |
701 | 711 | ||
702 | rb 4096 |
712 | rb 4096 |
703 | stacktop: |
713 | stacktop: |
704 | d_end: |
714 | d_end: |