Rev 1808 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1808 | Rev 1811 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | #include "donkey_01.h" |
9 | #include "donkey_01.h" |
10 | #include "donkey_02.h" |
10 | #include "donkey_02.h" |
11 | #include "az.h" |
11 | #include "az.h" |
12 | 12 | ||
Line 13... | Line 13... | ||
13 | char STR_DONKEY[] = {"D O N K E Y 0.7"}; |
13 | char STR_DONKEY[] = {"D O N K E Y 0.8"}; |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | int start, paintbg, pause; |
15 | int start, paintbg, pause; |
16 | int dox, doy; |
16 | int dox, doy; |
Line 17... | Line 17... | ||
17 | int drx, dry; |
17 | int drx, dry; |
Line 18... | Line 18... | ||
18 | 18 | ||
Line -... | Line 19... | ||
- | 19 | int drn, don; |
|
- | 20 | ||
- | 21 | int speed; |
|
Line 19... | Line 22... | ||
19 | int drn, don; |
22 | |
Line 20... | Line 23... | ||
20 | 23 | char snd_ok[]={0x08, 0x89, 0x0f, 0}; |
|
Line 191... | Line 194... | ||
191 | } |
194 | } |
192 | 195 | ||
Line 193... | Line 196... | ||
193 | if ((drx == dox)&&(dry > doy-15)&&(dry < doy+15)) |
196 | if ((drx == dox)&&(dry > doy-15)&&(dry < doy+15)) |
194 | { |
197 | { |
- | 198 | kol_sound_speaker(snd_game_over); |
|
195 | don++; |
199 | don++; |
196 | dry = 0; |
200 | dry = 0; |
197 | drn /= 10; |
201 | drn /= 10; |
198 | drn *= 10; |
202 | drn *= 10; |
199 | for (y = 0; y<2; y++) |
203 | for (y = 0; y<2; y++) |
Line 322... | Line 326... | ||
322 | if (32 == key) |
326 | if (32 == key) |
323 | { |
327 | { |
324 | if (-1 == pause) |
328 | if (-1 == pause) |
325 | break; |
329 | break; |
- | 330 | ||
- | 331 | kol_sound_speaker(snd_ok); |
|
- | 332 | ||
326 | drx *= -1; |
333 | drx *= -1; |
327 | screen_draw(); |
334 | screen_draw(); |
328 | } |
335 | } |
Line 329... | Line 336... | ||
329 | 336 |