home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-10-03 | 10.4 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Oct 3 14:24:42 1994, modified Mon Oct 3 14:24:42 1994, creator 'CWIE', type ASCII, 10070 bytes "InterMis.c" , at 0x27d6 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 49 6e 74 65 72 4d | 69 73 2e 63 00 00 00 00 |..InterM|is.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 27 56 00 | 00 01 7e aa b5 fc ea aa |.....'V.|..~.....|
|00000060| b5 fc ea 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 49 95 00 00 |........|....I...|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 57 6f 6c 66 44 65 |#include| "WolfDe|
|00000090| 66 2e 68 22 0d 23 69 6e | 63 6c 75 64 65 20 3c 73 |f.h".#in|clude <s|
|000000a0| 74 72 69 6e 67 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |tring.h>|.#includ|
|000000b0| 65 20 3c 73 74 64 6c 69 | 62 2e 68 3e 0d 0d 65 78 |e <stdli|b.h>..ex|
|000000c0| 74 65 72 6e 20 57 6f 72 | 64 20 4e 75 6d 62 65 72 |tern Wor|d Number|
|000000d0| 49 6e 64 65 78 3b 09 2f | 2a 20 48 61 63 6b 20 66 |Index;./|* Hack f|
|000000e0| 6f 72 20 64 72 61 77 69 | 6e 67 20 6e 75 6d 62 65 |or drawi|ng numbe|
|000000f0| 72 73 20 2a 2f 0d 73 74 | 61 74 69 63 20 4c 6f 6e |rs */.st|atic Lon|
|00000100| 67 57 6f 72 64 20 42 4a | 54 69 6d 65 3b 09 2f 2a |gWord BJ|Time;./*|
|00000110| 20 54 69 6d 65 20 74 6f | 20 64 72 61 77 20 42 4a | Time to| draw BJ|
|00000120| 3f 20 2a 2f 0d 73 74 61 | 74 69 63 20 57 6f 72 64 |? */.sta|tic Word|
|00000130| 20 57 68 69 63 68 42 4a | 3b 09 2f 2a 20 57 68 69 | WhichBJ|;./* Whi|
|00000140| 63 68 20 42 4a 20 74 6f | 20 73 68 6f 77 20 2a 2f |ch BJ to| show */|
|00000150| 0d 73 74 61 74 69 63 20 | 4c 6f 6e 67 57 6f 72 64 |.static |LongWord|
|00000160| 20 49 6e 64 65 78 73 5b | 33 5d 3b 09 09 2f 2a 20 | Indexs[|3];../* |
|00000170| 4f 66 66 73 65 74 73 20 | 74 6f 20 42 4a 27 73 20 |Offsets |to BJ's |
|00000180| 74 72 75 65 20 73 68 61 | 70 65 73 20 2a 2f 0d 73 |true sha|pes */.s|
|00000190| 74 61 74 69 63 20 42 79 | 74 65 20 2a 42 4a 50 74 |tatic By|te *BJPt|
|000001a0| 72 3b 09 09 09 2f 2a 20 | 50 6f 69 6e 74 65 72 20 |r;.../* |Pointer |
|000001b0| 74 6f 20 42 4a 27 73 20 | 73 68 61 70 65 73 20 2a |to BJ's |shapes *|
|000001c0| 2f 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 50 61 |/.static| Word Pa|
|000001d0| 72 54 69 6d 65 3b 09 09 | 2f 2a 20 50 61 72 20 74 |rTime;..|/* Par t|
|000001e0| 69 6d 65 20 66 6f 72 20 | 6c 65 76 65 6c 20 2a 2f |ime for |level */|
|000001f0| 0d 73 74 61 74 69 63 20 | 4c 6f 6e 67 57 6f 72 64 |.static |LongWord|
|00000200| 20 42 6f 6e 75 73 53 63 | 6f 72 65 3b 09 2f 2a 20 | BonusSc|ore;./* |
|00000210| 41 64 64 69 74 69 6f 6e | 61 6c 20 70 6f 69 6e 74 |Addition|al point|
|00000220| 73 20 2a 2f 0d 0d 23 64 | 65 66 69 6e 65 20 42 4f |s */..#d|efine BO|
|00000230| 4e 55 53 58 09 33 35 33 | 0d 23 64 65 66 69 6e 65 |NUSX.353|.#define|
|00000240| 20 42 4f 4e 55 53 59 09 | 31 30 33 0d 23 64 65 66 | BONUSY.|103.#def|
|00000250| 69 6e 65 09 54 49 4d 45 | 58 09 33 35 33 0d 23 64 |ine.TIME|X.353.#d|
|00000260| 65 66 69 6e 65 20 54 49 | 4d 45 57 49 44 54 48 20 |efine TI|MEWIDTH |
|00000270| 33 36 0d 23 64 65 66 69 | 6e 65 09 54 49 4d 45 59 |36.#defi|ne.TIMEY|
|00000280| 09 31 34 30 0d 23 64 65 | 66 69 6e 65 09 54 49 4d |.140.#de|fine.TIM|
|00000290| 45 59 32 09 31 38 30 0d | 23 64 65 66 69 6e 65 20 |EY2.180.|#define |
|000002a0| 53 43 4f 52 45 58 20 33 | 35 33 0d 23 64 65 66 69 |SCOREX 3|53.#defi|
|000002b0| 6e 65 20 53 43 4f 52 45 | 59 20 33 33 32 0d 23 64 |ne SCORE|Y 332.#d|
|000002c0| 65 66 69 6e 65 09 52 41 | 54 49 4f 58 09 33 35 33 |efine.RA|TIOX.353|
|000002d0| 0d 23 64 65 66 69 6e 65 | 09 52 41 54 49 4f 59 09 |.#define|.RATIOY.|
|000002e0| 32 31 37 0d 23 64 65 66 | 69 6e 65 09 52 41 54 49 |217.#def|ine.RATI|
|000002f0| 4f 59 32 09 32 35 33 0d | 23 64 65 66 69 6e 65 09 |OY2.253.|#define.|
|00000300| 52 41 54 49 4f 59 33 09 | 32 39 31 0d 0d 2f 2a 2a |RATIOY3.|291../**|
|00000310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000330| 0d 0d 09 44 72 61 77 20 | 42 4a 20 69 66 20 6e 65 |...Draw |BJ if ne|
|00000340| 65 64 65 64 0d 09 0d 2a | 2a 2a 2a 2a 2a 2a 2a 2a |eded...*|********|
|00000350| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 73 74 61 74 |********|*/..stat|
|00000370| 69 63 20 52 65 63 74 20 | 42 4a 52 65 63 74 20 3d |ic Rect |BJRect =|
|00000380| 20 7b 34 38 2c 37 33 2c | 34 38 2b 31 34 32 2c 37 | {48,73,|48+142,7|
|00000390| 33 2b 31 33 31 7d 3b 09 | 2f 2a 20 52 65 63 74 20 |3+131};.|/* Rect |
|000003a0| 66 6f 72 20 42 4a 27 73 | 20 70 69 63 74 75 72 65 |for BJ's| picture|
|000003b0| 20 2a 2f 0d 73 74 61 74 | 69 63 20 76 6f 69 64 20 | */.stat|ic void |
|000003c0| 53 68 6f 77 42 4a 28 76 | 6f 69 64 29 20 0d 7b 09 |ShowBJ(v|oid) .{.|
|000003d0| 09 0d 09 69 66 20 28 28 | 52 65 61 64 54 69 63 6b |...if ((|ReadTick|
|000003e0| 28 29 2d 42 4a 54 69 6d | 65 29 20 3e 3d 20 32 30 |()-BJTim|e) >= 20|
|000003f0| 29 20 7b 09 09 2f 2a 20 | 54 69 6d 65 20 74 6f 20 |) {../* |Time to |
|00000400| 64 72 61 77 20 61 20 42 | 4a 3f 20 2a 2f 0d 09 09 |draw a B|J? */...|
|00000410| 42 4a 54 69 6d 65 20 3d | 20 52 65 61 64 54 69 63 |BJTime =| ReadTic|
|00000420| 6b 28 29 3b 09 09 09 09 | 2f 2a 20 53 65 74 20 74 |k();....|/* Set t|
|00000430| 68 65 20 6e 65 77 20 74 | 69 6d 65 20 2a 2f 0d 09 |he new t|ime */..|
|00000440| 09 69 66 20 28 57 68 69 | 63 68 42 4a 21 3d 32 29 |.if (Whi|chBJ!=2)|
|00000450| 20 7b 09 09 09 2f 2a 20 | 54 68 75 6d 62 73 20 75 | {.../* |Thumbs u|
|00000460| 70 3f 20 2a 2f 0d 09 09 | 09 57 68 69 63 68 42 4a |p? */...|.WhichBJ|
|00000470| 20 5e 3d 20 31 3b 09 09 | 09 2f 2a 20 4e 6f 70 65 | ^= 1;..|./* Nope|
|00000480| 2c 20 74 6f 67 67 6c 65 | 20 62 72 65 61 74 68 69 |, toggle| breathi|
|00000490| 6e 67 20 2a 2f 0d 09 09 | 7d 0d 09 09 44 72 61 77 |ng */...|}...Draw|
|000004a0| 53 68 61 70 65 28 37 33 | 2c 34 38 2c 26 42 4a 50 |Shape(73|,48,&BJP|
|000004b0| 74 72 5b 49 6e 64 65 78 | 73 5b 57 68 69 63 68 42 |tr[Index|s[WhichB|
|000004c0| 4a 5d 5d 29 3b 09 09 2f | 2a 20 44 72 61 77 20 42 |J]]);../|* Draw B|
|000004d0| 4a 20 2a 2f 0d 09 09 42 | 6c 61 73 74 53 63 72 65 |J */...B|lastScre|
|000004e0| 65 6e 32 28 26 42 4a 52 | 65 63 74 29 3b 09 09 09 |en2(&BJR|ect);...|
|000004f0| 09 2f 2a 20 55 70 64 61 | 74 65 20 76 69 64 65 6f |./* Upda|te video|
|00000500| 20 2a 2f 0d 09 7d 0d 7d | 0d 0d 2f 2a 2a 2a 2a 2a | */..}.}|../*****|
|00000510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000520| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 09 |********|*****...|
|00000530| 48 61 76 65 20 42 4a 20 | 42 72 65 61 74 68 20 66 |Have BJ |Breath f|
|00000540| 6f 72 20 61 20 77 68 69 | 6c 65 0d 09 0d 2a 2a 2a |or a whi|le...***|
|00000550| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000560| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00000570| 0d 0d 73 74 61 74 69 63 | 20 76 6f 69 64 20 42 4a |..static| void BJ|
|00000580| 42 72 65 61 74 68 28 57 | 6f 72 64 20 44 65 6c 61 |Breath(W|ord Dela|
|00000590| 79 29 0d 7b 0d 09 64 6f | 20 7b 0d 09 09 53 68 6f |y).{..do| {...Sho|
|000005a0| 77 42 4a 28 29 3b 0d 09 | 09 69 66 20 28 57 61 69 |wBJ();..|.if (Wai|
|000005b0| 74 54 69 63 6b 73 45 76 | 65 6e 74 28 31 29 29 20 |tTicksEv|ent(1)) |
|000005c0| 7b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |{....bre|ak;...}.|
|000005d0| 09 7d 20 77 68 69 6c 65 | 20 28 2d 2d 44 65 6c 61 |.} while| (--Dela|
|000005e0| 79 29 3b 0d 7d 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a |y);.}../|********|
|000005f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000600| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 09 44 72 61 |********|**...Dra|
|00000610| 77 20 74 68 65 20 73 63 | 6f 72 65 20 0d 09 0d 2a |w the sc|ore ...*|
|00000620| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000630| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000640| 2a 2f 0d 0d 73 74 61 74 | 69 63 20 52 65 63 74 20 |*/..stat|ic Rect |
|00000650| 53 63 6f 72 65 52 65 63 | 74 20 3d 20 7b 53 43 4f |ScoreRec|t = {SCO|
|00000660| 52 45 59 2c 53 43 4f 52 | 45 58 2c 53 43 4f 52 45 |REY,SCOR|EX,SCORE|
|00000670| 59 2b 32 32 2c 53 43 4f | 52 45 58 2b 28 31 32 2a |Y+22,SCO|REX+(12*|
|00000680| 37 29 7d 3b 0d 0d 73 74 | 61 74 69 63 20 76 6f 69 |7)};..st|atic voi|
|00000690| 64 20 44 72 61 77 49 53 | 63 6f 72 65 28 76 6f 69 |d DrawIS|core(voi|
|000006a0| 64 29 20 0d 7b 0d 09 53 | 65 74 4e 75 6d 62 65 72 |d) .{..S|etNumber|
|000006b0| 28 67 61 6d 65 73 74 61 | 74 65 2e 73 63 6f 72 65 |(gamesta|te.score|
|000006c0| 2c 53 43 4f 52 45 58 2c | 53 43 4f 52 45 59 2c 37 |,SCOREX,|SCOREY,7|
|000006d0| 29 3b 09 09 2f 2a 20 44 | 72 61 77 20 74 68 65 20 |);../* D|raw the |
|000006e0| 67 61 6d 65 20 73 63 6f | 72 65 20 2a 2f 0d 09 42 |game sco|re */..B|
|000006f0| 6c 61 73 74 53 63 72 65 | 65 6e 32 28 26 53 63 6f |lastScre|en2(&Sco|
|00000700| 72 65 52 65 63 74 29 3b | 0d 7d 0d 0d 2f 2a 2a 2a |reRect);|.}../***|
|00000710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00000730| 0d 09 44 72 61 77 20 74 | 68 65 20 65 61 72 6e 65 |..Draw t|he earne|
|00000740| 64 20 62 6f 6e 75 73 0d | 09 0d 2a 2a 2a 2a 2a 2a |d bonus.|..******|
|00000750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 73 |********|****/..s|
|00000770| 74 61 74 69 63 20 52 65 | 63 74 20 42 6f 6e 75 73 |tatic Re|ct Bonus|
|00000780| 52 65 63 74 20 3d 20 7b | 42 4f 4e 55 53 59 2c 42 |Rect = {|BONUSY,B|
|00000790| 4f 4e 55 53 58 2c 42 4f | 4e 55 53 59 2b 32 32 2c |ONUSX,BO|NUSY+22,|
|000007a0| 42 4f 4e 55 53 58 2b 28 | 31 32 2a 37 29 7d 3b 0d |BONUSX+(|12*7)};.|
|000007b0| 73 74 61 74 69 63 20 76 | 6f 69 64 20 44 72 61 77 |static v|oid Draw|
|000007c0| 49 42 6f 6e 75 73 28 76 | 6f 69 64 29 0d 7b 0d 09 |IBonus(v|oid).{..|
|000007d0| 53 65 74 4e 75 6d 62 65 | 72 28 42 6f 6e 75 73 53 |SetNumbe|r(BonusS|
|000007e0| 63 6f 72 65 2c 42 4f 4e | 55 53 58 2c 42 4f 4e 55 |core,BON|USX,BONU|
|000007f0| 53 59 2c 37 29 3b 0d 09 | 42 6c 61 73 74 53 63 72 |SY,7);..|BlastScr|
|00000800| 65 65 6e 32 28 26 42 6f | 6e 75 73 52 65 63 74 29 |een2(&Bo|nusRect)|
|00000810| 3b 0d 7d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |;.}../**|********|
|00000820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000830| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 44 72 61 77 20 |********|...Draw |
|00000840| 61 20 74 69 6d 65 20 76 | 61 6c 75 65 20 61 74 20 |a time v|alue at |
|00000850| 74 68 65 20 67 69 76 65 | 6e 20 63 6f 6f 72 64 73 |the give|n coords|
|00000860| 0d 09 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|00000870| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000880| 2a 2a 2a 2a 2a 2f 0d 0d | 73 74 61 74 69 63 20 76 |*****/..|static v|
|00000890| 6f 69 64 20 44 72 61 77 | 54 69 6d 65 28 57 6f 72 |oid Draw|Time(Wor|
|000008a0| 64 20 78 2c 57 6f 72 64 | 20 79 2c 57 6f 72 64 20 |d x,Word| y,Word |
|000008b0| 74 69 6d 65 29 0d 7b 0d | 09 57 6f 72 64 20 6d 69 |time).{.|.Word mi|
|000008c0| 6e 75 74 65 73 2c 73 65 | 63 6f 6e 64 73 3b 0d 09 |nutes,se|conds;..|
|000008d0| 52 65 63 74 20 54 69 6d | 65 52 65 63 74 3b 0d 0d |Rect Tim|eRect;..|
|000008e0| 09 54 69 6d 65 52 65 63 | 74 2e 6c 65 66 74 20 3d |.TimeRec|t.left =|
|000008f0| 20 78 3b 0d 09 54 69 6d | 65 52 65 63 74 2e 72 69 | x;..Tim|eRect.ri|
|00000900| 67 68 74 20 3d 20 78 2b | 28 28 31 32 2a 34 29 2b |ght = x+|((12*4)+|
|00000910| 54 49 4d 45 57 49 44 54 | 48 29 3b 0d 09 54 69 6d |TIMEWIDT|H);..Tim|
|00000920| 65 52 65 63 74 2e 74 6f | 70 20 3d 20 79 3b 0d 09 |eRect.to|p = y;..|
|00000930| 54 69 6d 65 52 65 63 74 | 2e 62 6f 74 74 6f 6d 20 |TimeRect|.bottom |
|00000940| 3d 20 79 2b 32 32 3b 0d | 09 0d 09 6d 69 6e 75 74 |= y+22;.|...minut|
|00000950| 65 73 20 3d 20 74 69 6d | 65 2f 36 30 3b 0d 09 73 |es = tim|e/60;..s|
|00000960| 65 63 6f 6e 64 73 20 3d | 20 74 69 6d 65 25 36 30 |econds =| time%60|
|00000970| 3b 0d 09 53 65 74 4e 75 | 6d 62 65 72 28 6d 69 6e |;..SetNu|mber(min|
|00000980| 75 74 65 73 2c 78 2c 79 | 2c 32 29 3b 0d 09 78 2b |utes,x,y|,2);..x+|
|00000990| 3d 54 49 4d 45 57 49 44 | 54 48 3b 0d 09 53 65 74 |=TIMEWID|TH;..Set|
|000009a0| 4e 75 6d 62 65 72 28 73 | 65 63 6f 6e 64 73 2c 78 |Number(s|econds,x|
|000009b0| 2c 79 2c 32 29 3b 0d 09 | 42 6c 61 73 74 53 63 72 |,y,2);..|BlastScr|
|000009c0| 65 65 6e 32 28 26 54 69 | 6d 65 52 65 63 74 29 3b |een2(&Ti|meRect);|
|000009d0| 0d 7d 0d 0d 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.}../***|********|
|000009e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009f0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 09 44 72 61 77 73 20 |*******.|..Draws |
|00000a00| 61 20 72 61 74 69 6f 20 | 76 61 6c 75 65 20 61 74 |a ratio |value at|
|00000a10| 20 74 68 65 20 67 69 76 | 65 6e 20 63 6f 6f 72 64 | the giv|en coord|
|00000a20| 73 2e 0d 09 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |s....***|********|
|00000a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a40| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 73 74 61 74 69 63 |*******/|..static|
|00000a50| 20 76 6f 69 64 20 44 72 | 61 77 52 61 74 69 6f 28 | void Dr|awRatio(|
|00000a60| 57 6f 72 64 20 78 2c 57 | 6f 72 64 20 79 2c 57 6f |Word x,W|ord y,Wo|
|00000a70| 72 64 20 74 68 65 52 61 | 74 69 6f 29 0d 7b 0d 09 |rd theRa|tio).{..|
|00000a80| 52 65 63 74 20 52 61 74 | 69 6f 52 65 63 74 3b 0d |Rect Rat|ioRect;.|
|00000a90| 09 0d 09 52 61 74 69 6f | 52 65 63 74 2e 74 6f 70 |...Ratio|Rect.top|
|00000aa0| 20 3d 20 79 3b 0d 09 52 | 61 74 69 6f 52 65 63 74 | = y;..R|atioRect|
|00000ab0| 2e 6c 65 66 74 20 3d 20 | 78 3b 0d 09 52 61 74 69 |.left = |x;..Rati|
|00000ac0| 6f 52 65 63 74 2e 62 6f | 74 74 6f 6d 20 3d 20 79 |oRect.bo|ttom = y|
|00000ad0| 2b 32 32 3b 0d 09 52 61 | 74 69 6f 52 65 63 74 2e |+22;..Ra|tioRect.|
|00000ae0| 72 69 67 68 74 20 3d 20 | 78 2b 28 33 2a 31 32 29 |right = |x+(3*12)|
|00000af0| 3b 0d 09 53 65 74 4e 75 | 6d 62 65 72 28 74 68 65 |;..SetNu|mber(the|
|00000b00| 52 61 74 69 6f 2c 78 2c | 79 2c 33 29 3b 0d 09 42 |Ratio,x,|y,3);..B|
|00000b10| 6c 61 73 74 53 63 72 65 | 65 6e 32 28 26 52 61 74 |lastScre|en2(&Rat|
|00000b20| 69 6f 52 65 63 74 29 3b | 0d 7d 0d 0d 2f 2a 2a 2a |ioRect);|.}../***|
|00000b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00000b50| 0d 09 52 6f 6c 6c 53 63 | 6f 72 65 0d 09 44 6f 20 |..RollSc|ore..Do |
|00000b60| 61 20 42 69 6c 6c 2d 42 | 75 64 67 65 79 20 72 6f |a Bill-B|udgey ro|
|00000b70| 6c 6c 20 6f 66 20 74 68 | 65 20 6f 6c 64 20 73 63 |ll of th|e old sc|
|00000b80| 6f 72 65 20 74 6f 20 74 | 68 65 20 6e 65 77 20 73 |ore to t|he new s|
|00000b90| 63 6f 72 65 2c 0d 09 6e | 6f 74 20 62 6f 74 68 65 |core,..n|ot bothe|
|00000ba0| 72 69 6e 67 20 77 69 74 | 68 20 74 68 65 20 6c 6f |ring wit|h the lo|
|00000bb0| 77 65 72 20 64 69 67 69 | 74 2c 20 61 73 20 79 6f |wer digi|t, as yo|
|00000bc0| 75 20 6e 65 76 65 72 20 | 67 65 74 20 6c 65 73 73 |u never |get less|
|00000bd0| 0d 09 74 68 61 6e 20 74 | 65 6e 20 66 6f 72 20 61 |..than t|en for a|
|00000be0| 6e 79 74 68 69 6e 67 2e | 0d 0d 2a 2a 2a 2a 2a 2a |nything.|..******|
|00000bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 73 |********|****/..s|
|00000c10| 74 61 74 69 63 20 76 6f | 69 64 20 52 6f 6c 6c 53 |tatic vo|id RollS|
|00000c20| 63 6f 72 65 28 76 6f 69 | 64 29 0d 7b 0d 09 57 6f |core(voi|d).{..Wo|
|00000c30| 72 64 20 69 3b 0d 0d 09 | 64 6f 20 7b 0d 09 09 69 |rd i;...|do {...i|
|00000c40| 66 20 28 42 6f 6e 75 73 | 53 63 6f 72 65 3e 31 30 |f (Bonus|Score>10|
|00000c50| 30 30 29 20 7b 0d 09 09 | 09 69 20 3d 20 31 30 30 |00) {...|.i = 100|
|00000c60| 30 3b 0d 09 09 7d 20 65 | 6c 73 65 20 7b 0d 09 09 |0;...} e|lse {...|
|00000c70| 09 69 20 3d 20 42 6f 6e | 75 73 53 63 6f 72 65 3b |.i = Bon|usScore;|
|00000c80| 0d 09 09 7d 0d 09 09 42 | 6f 6e 75 73 53 63 6f 72 |...}...B|onusScor|
|00000c90| 65 2d 3d 69 3b 0d 09 09 | 47 69 76 65 50 6f 69 6e |e-=i;...|GivePoin|
|00000ca0| 74 73 28 69 29 3b 0d 09 | 09 53 68 6f 77 42 4a 28 |ts(i);..|.ShowBJ(|
|00000cb0| 29 3b 0d 09 09 44 72 61 | 77 49 53 63 6f 72 65 28 |);...Dra|wIScore(|
|00000cc0| 29 3b 0d 09 09 44 72 61 | 77 49 42 6f 6e 75 73 28 |);...Dra|wIBonus(|
|00000cd0| 29 3b 0d 09 09 50 6c 61 | 79 53 6f 75 6e 64 28 53 |);...Pla|ySound(S|
|00000ce0| 4e 44 5f 4d 47 55 4e 7c | 30 78 38 30 30 30 29 3b |ND_MGUN||0x8000);|
|00000cf0| 0d 09 09 69 66 20 28 57 | 61 69 74 54 69 63 6b 73 |...if (W|aitTicks|
|00000d00| 45 76 65 6e 74 28 36 29 | 29 20 7b 0d 09 09 09 47 |Event(6)|) {....G|
|00000d10| 69 76 65 50 6f 69 6e 74 | 73 28 42 6f 6e 75 73 53 |ivePoint|s(BonusS|
|00000d20| 63 6f 72 65 29 3b 09 2f | 2a 20 41 64 64 20 74 68 |core);./|* Add th|
|00000d30| 65 20 66 69 6e 61 6c 20 | 62 6f 6e 75 73 20 2a 2f |e final |bonus */|
|00000d40| 0d 09 09 09 42 6f 6e 75 | 73 53 63 6f 72 65 3d 30 |....Bonu|sScore=0|
|00000d50| 3b 0d 09 09 09 44 72 61 | 77 49 53 63 6f 72 65 28 |;....Dra|wIScore(|
|00000d60| 29 3b 0d 09 09 09 44 72 | 61 77 49 42 6f 6e 75 73 |);....Dr|awIBonus|
|00000d70| 28 29 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |();....b|reak;...|
|00000d80| 7d 0d 09 7d 20 77 68 69 | 6c 65 20 28 42 6f 6e 75 |}..} whi|le (Bonu|
|00000d90| 73 53 63 6f 72 65 29 3b | 0d 7d 0d 0d 2f 2a 2a 2a |sScore);|.}../***|
|00000da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00000dc0| 0d 09 52 6f 6c 6c 52 61 | 74 69 6f 0d 09 44 6f 20 |..RollRa|tio..Do |
|00000dd0| 61 20 42 69 6c 6c 2d 42 | 75 64 67 65 79 20 72 6f |a Bill-B|udgey ro|
|00000de0| 6c 6c 20 6f 66 20 74 68 | 65 20 72 61 74 69 6f 2e |ll of th|e ratio.|
|00000df0| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00000e00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000e10| 2a 2a 2a 2a 2f 0d 0d 73 | 74 61 74 69 63 20 76 6f |****/..s|tatic vo|
|00000e20| 69 64 20 52 6f 6c 6c 52 | 61 74 69 6f 28 57 6f 72 |id RollR|atio(Wor|
|00000e30| 64 20 78 2c 57 6f 72 64 | 20 79 2c 57 6f 72 64 20 |d x,Word| y,Word |
|00000e40| 72 61 74 69 6f 29 0d 7b | 0d 09 57 6f 72 64 20 69 |ratio).{|..Word i|
|00000e50| 3b 0d 09 57 6f 72 64 20 | 4e 6f 44 65 6c 61 79 3b |;..Word |NoDelay;|
|00000e60| 0d 0d 09 69 20 3d 20 30 | 3b 0d 09 4e 6f 44 65 6c |...i = 0|;..NoDel|
|00000e70| 61 79 20 3d 20 30 3b 0d | 09 77 68 69 6c 65 20 28 |ay = 0;.|.while (|
|00000e80| 69 3c 72 61 74 69 6f 29 | 20 7b 0d 09 09 44 72 61 |i<ratio)| {...Dra|
|00000e90| 77 52 61 74 69 6f 28 78 | 2c 79 2c 69 29 3b 0d 09 |wRatio(x|,y,i);..|
|00000ea0| 09 50 6c 61 79 53 6f 75 | 6e 64 28 53 4e 44 5f 4d |.PlaySou|nd(SND_M|
|00000eb0| 47 55 4e 7c 30 78 38 30 | 30 30 29 3b 0d 09 09 53 |GUN|0x80|00);...S|
|00000ec0| 68 6f 77 42 4a 28 29 3b | 0d 09 09 69 66 20 28 57 |howBJ();|...if (W|
|00000ed0| 61 69 74 54 69 63 6b 73 | 45 76 65 6e 74 28 36 29 |aitTicks|Event(6)|
|00000ee0| 29 20 7b 09 0d 09 09 09 | 4e 6f 44 65 6c 61 79 20 |) {.....|NoDelay |
|00000ef0| 3d 20 31 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |= 1;....|break;..|
|00000f00| 09 7d 0d 09 09 69 2b 3d | 31 30 3b 0d 09 7d 0d 09 |.}...i+=|10;..}..|
|00000f10| 44 72 61 77 52 61 74 69 | 6f 28 78 2c 79 2c 72 61 |DrawRati|o(x,y,ra|
|00000f20| 74 69 6f 29 3b 0d 0d 09 | 2f 2a 20 6d 61 6b 65 20 |tio);...|/* make |
|00000f30| 64 69 6e 67 20 73 6f 75 | 6e 64 20 2a 2f 0d 0d 09 |ding sou|nd */...|
|00000f40| 69 66 20 28 72 61 74 69 | 6f 3d 3d 31 30 30 29 20 |if (rati|o==100) |
|00000f50| 7b 0d 09 09 69 66 20 28 | 21 4e 6f 44 65 6c 61 79 |{...if (|!NoDelay|
|00000f60| 29 20 7b 0d 09 09 09 50 | 6c 61 79 53 6f 75 6e 64 |) {....P|laySound|
|00000f70| 28 53 4e 44 5f 45 58 54 | 52 41 29 3b 0d 09 09 09 |(SND_EXT|RA);....|
|00000f80| 57 61 69 74 54 69 63 6b | 73 28 33 30 29 3b 0d 09 |WaitTick|s(30);..|
|00000f90| 09 7d 0d 09 09 42 6f 6e | 75 73 53 63 6f 72 65 20 |.}...Bon|usScore |
|00000fa0| 2b 3d 20 31 30 30 30 30 | 3b 0d 09 09 44 72 61 77 |+= 10000|;...Draw|
|00000fb0| 49 42 6f 6e 75 73 28 29 | 3b 0d 09 09 69 66 20 28 |IBonus()|;...if (|
|00000fc0| 21 4e 6f 44 65 6c 61 79 | 29 20 7b 0d 09 09 09 42 |!NoDelay|) {....B|
|00000fd0| 4a 42 72 65 61 74 68 28 | 36 30 29 3b 09 2f 2a 20 |JBreath(|60);./* |
|00000fe0| 42 72 65 61 74 68 20 61 | 20 6c 69 74 74 6c 65 20 |Breath a| little |
|00000ff0| 2a 2f 0d 09 09 7d 0d 09 | 7d 0d 7d 0d 0d 2f 2a 2a |*/...}..|}.}../**|
|00001000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001020| 0d 0d 09 4c 65 74 27 73 | 20 73 68 6f 77 20 27 65 |...Let's| show 'e|
|00001030| 6d 20 68 6f 77 20 74 68 | 65 79 20 64 69 64 21 0d |m how th|ey did!.|
|00001040| 09 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00001050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001060| 2a 2a 2a 2a 2f 0d 0d 76 | 6f 69 64 20 4c 65 76 65 |****/..v|oid Leve|
|00001070| 6c 43 6f 6d 70 6c 65 74 | 65 64 20 28 76 6f 69 64 |lComplet|ed (void|
|00001080| 29 0d 7b 0d 09 57 6f 72 | 64 20 6b 3b 0d 09 4c 6f |).{..Wor|d k;..Lo|
|00001090| 6e 67 57 6f 72 64 20 2a | 50 61 63 6b 50 74 72 3b |ngWord *|PackPtr;|
|000010a0| 0d 09 42 79 74 65 20 2a | 53 68 61 70 65 50 74 72 |..Byte *|ShapePtr|
|000010b0| 3b 0d 09 4c 6f 6e 67 57 | 6f 72 64 20 50 61 63 6b |;..LongW|ord Pack|
|000010c0| 4c 65 6e 67 74 68 3b 0d | 0d 2f 2a 20 73 65 74 75 |Length;.|./* setu|
|000010d0| 70 20 2a 2f 0d 0d 09 50 | 61 72 54 69 6d 65 20 3d |p */...P|arTime =|
|000010e0| 20 4d 61 70 4c 69 73 74 | 50 74 72 2d 3e 49 6e 66 | MapList|Ptr->Inf|
|000010f0| 6f 41 72 72 61 79 5b 67 | 61 6d 65 73 74 61 74 65 |oArray[g|amestate|
|00001100| 2e 6d 61 70 6f 6e 5d 2e | 50 61 72 54 69 6d 65 3b |.mapon].|ParTime;|
|00001110| 0d 09 42 6f 6e 75 73 53 | 63 6f 72 65 20 3d 20 30 |..BonusS|core = 0|
|00001120| 3b 09 09 2f 2a 20 49 6e | 69 74 20 74 68 65 20 62 |;../* In|it the b|
|00001130| 6f 6e 75 73 20 2a 2f 0d | 09 0d 09 49 6e 74 65 72 |onus */.|...Inter|
|00001140| 6d 69 73 73 69 6f 6e 48 | 61 63 6b 20 3d 20 54 52 |missionH|ack = TR|
|00001150| 55 45 3b 09 2f 2a 20 48 | 61 63 6b 20 74 6f 20 6b |UE;./* H|ack to k|
|00001160| 65 65 70 20 73 63 6f 72 | 65 20 66 72 6f 6d 20 64 |eep scor|e from d|
|00001170| 72 61 77 69 6e 67 20 74 | 77 69 63 65 20 2a 2f 0d |rawing t|wice */.|
|00001180| 09 4e 75 6d 62 65 72 49 | 6e 64 65 78 20 3d 20 34 |.NumberI|ndex = 4|
|00001190| 37 3b 09 09 2f 2a 20 48 | 61 63 6b 20 74 6f 20 64 |7;../* H|ack to d|
|000011a0| 72 61 77 20 73 63 6f 72 | 65 20 75 73 69 6e 67 20 |raw scor|e using |
|000011b0| 61 6e 20 61 6c 74 65 72 | 6e 61 74 65 20 6e 75 6d |an alter|nate num|
|000011c0| 62 65 72 20 73 65 74 20 | 2a 2f 0d 09 4e 65 77 47 |ber set |*/..NewG|
|000011d0| 61 6d 65 57 69 6e 64 6f | 77 28 31 29 3b 09 09 2f |ameWindo|w(1);../|
|000011e0| 2a 20 46 6f 72 63 65 20 | 35 31 32 20 6d 6f 64 65 |* Force |512 mode|
|000011f0| 20 73 63 72 65 65 6e 20 | 2a 2f 0d 09 50 61 63 6b | screen |*/..Pack|
|00001200| 50 74 72 20 3d 20 4c 6f | 61 64 41 52 65 73 6f 75 |Ptr = Lo|adAResou|
|00001210| 72 63 65 28 72 49 6e 74 | 65 72 6d 69 73 73 69 6f |rce(rInt|ermissio|
|00001220| 6e 29 3b 0d 09 50 61 63 | 6b 4c 65 6e 67 74 68 20 |n);..Pac|kLength |
|00001230| 3d 20 50 61 63 6b 50 74 | 72 5b 30 5d 3b 0d 09 53 |= PackPt|r[0];..S|
|00001240| 68 61 70 65 50 74 72 20 | 3d 20 28 42 79 74 65 20 |hapePtr |= (Byte |
|00001250| 2a 29 20 41 6c 6c 6f 63 | 53 6f 6d 65 4d 65 6d 28 |*) Alloc|SomeMem(|
|00001260| 50 61 63 6b 4c 65 6e 67 | 74 68 29 3b 0d 09 44 4c |PackLeng|th);..DL|
|00001270| 5a 53 53 28 53 68 61 70 | 65 50 74 72 2c 28 42 79 |ZSS(Shap|ePtr,(By|
|00001280| 74 65 20 2a 29 20 26 50 | 61 63 6b 50 74 72 5b 31 |te *) &P|ackPtr[1|
|00001290| 5d 2c 50 61 63 6b 4c 65 | 6e 67 74 68 29 3b 0d 09 |],PackLe|ngth);..|
|000012a0| 44 72 61 77 53 68 61 70 | 65 28 30 2c 30 2c 53 68 |DrawShap|e(0,0,Sh|
|000012b0| 61 70 65 50 74 72 29 3b | 0d 09 46 72 65 65 53 6f |apePtr);|..FreeSo|
|000012c0| 6d 65 4d 65 6d 28 53 68 | 61 70 65 50 74 72 29 3b |meMem(Sh|apePtr);|
|000012d0| 0d 09 52 65 6c 65 61 73 | 65 41 52 65 73 6f 75 72 |..Releas|eAResour|
|000012e0| 63 65 28 72 49 6e 74 65 | 72 6d 69 73 73 69 6f 6e |ce(rInte|rmission|
|000012f0| 29 3b 0d 09 50 61 63 6b | 50 74 72 20 3d 20 4c 6f |);..Pack|Ptr = Lo|
|00001300| 61 64 41 52 65 73 6f 75 | 72 63 65 28 72 49 6e 74 |adAResou|rce(rInt|
|00001310| 65 72 50 69 63 73 29 3b | 0d 09 50 61 63 6b 4c 65 |erPics);|..PackLe|
|00001320| 6e 67 74 68 20 3d 20 50 | 61 63 6b 50 74 72 5b 30 |ngth = P|ackPtr[0|
|00001330| 5d 3b 0d 09 42 4a 50 74 | 72 20 3d 20 28 42 79 74 |];..BJPt|r = (Byt|
|00001340| 65 20 2a 29 41 6c 6c 6f | 63 53 6f 6d 65 4d 65 6d |e *)Allo|cSomeMem|
|00001350| 28 50 61 63 6b 4c 65 6e | 67 74 68 29 3b 0d 09 44 |(PackLen|gth);..D|
|00001360| 4c 5a 53 53 28 42 4a 50 | 74 72 2c 28 42 79 74 65 |LZSS(BJP|tr,(Byte|
|00001370| 20 2a 29 20 26 50 61 63 | 6b 50 74 72 5b 31 5d 2c | *) &Pac|kPtr[1],|
|00001380| 50 61 63 6b 4c 65 6e 67 | 74 68 29 3b 0d 09 52 65 |PackLeng|th);..Re|
|00001390| 6c 65 61 73 65 41 52 65 | 73 6f 75 72 63 65 28 72 |leaseARe|source(r|
|000013a0| 49 6e 74 65 72 50 69 63 | 73 29 3b 0d 09 6d 65 6d |InterPic|s);..mem|
|000013b0| 63 70 79 28 49 6e 64 65 | 78 73 2c 42 4a 50 74 72 |cpy(Inde|xs,BJPtr|
|000013c0| 2c 31 32 29 3b 09 09 2f | 2a 20 43 6f 70 79 20 74 |,12);../|* Copy t|
|000013d0| 68 65 20 69 6e 64 65 78 | 20 74 61 62 6c 65 20 2a |he index| table *|
|000013e0| 2f 0d 09 0d 09 57 68 69 | 63 68 42 4a 20 3d 20 30 |/....Whi|chBJ = 0|
|000013f0| 3b 09 09 2f 2a 20 49 6e | 69 74 20 42 4a 20 2a 2f |;../* In|it BJ */|
|00001400| 0d 09 42 4a 54 69 6d 65 | 20 3d 20 52 65 61 64 54 |..BJTime| = ReadT|
|00001410| 69 63 6b 28 29 2d 35 30 | 3b 09 09 2f 2a 20 46 6f |ick()-50|;../* Fo|
|00001420| 72 63 65 20 61 20 72 65 | 64 72 61 77 20 2a 2f 0d |rce a re|draw */.|
|00001430| 09 42 6c 61 73 74 53 63 | 72 65 65 6e 28 29 3b 09 |.BlastSc|reen();.|
|00001440| 09 2f 2a 20 44 72 61 77 | 20 74 68 65 20 73 63 72 |./* Draw| the scr|
|00001450| 65 65 6e 20 2a 2f 0d 09 | 53 68 6f 77 42 4a 28 29 |een */..|ShowBJ()|
|00001460| 3b 09 09 09 2f 2a 20 44 | 72 61 77 20 42 4a 20 2a |;.../* D|raw BJ *|
|00001470| 2f 0d 09 53 74 61 72 74 | 53 6f 6e 67 28 53 6f 6e |/..Start|Song(Son|
|00001480| 67 4c 69 73 74 50 74 72 | 5b 31 5d 29 3b 09 2f 2a |gListPtr|[1]);./*|
|00001490| 20 50 6c 61 79 20 74 68 | 65 20 69 6e 74 65 72 6d | Play th|e interm|
|000014a0| 69 73 73 69 6f 6e 20 73 | 6f 6e 67 20 2a 2f 0d 09 |ission s|ong */..|
|000014b0| 53 65 74 41 50 61 6c 65 | 74 74 65 28 72 49 6e 74 |SetAPale|tte(rInt|
|000014c0| 65 72 50 61 6c 29 3b 09 | 2f 2a 20 53 65 74 20 74 |erPal);.|/* Set t|
|000014d0| 68 65 20 70 61 6c 65 74 | 74 65 20 2a 2f 0d 09 44 |he palet|te */..D|
|000014e0| 72 61 77 49 53 63 6f 72 | 65 28 29 3b 09 09 09 2f |rawIScor|e();.../|
|000014f0| 2a 20 44 72 61 77 20 74 | 68 65 20 63 75 72 72 65 |* Draw t|he curre|
|00001500| 6e 74 20 73 63 6f 72 65 | 20 2a 2f 0d 09 46 6c 75 |nt score| */..Flu|
|00001510| 73 68 4b 65 79 73 28 29 | 3b 09 09 09 2f 2a 20 46 |shKeys()|;.../* F|
|00001520| 6c 75 73 68 20 74 68 65 | 20 6b 65 79 62 6f 61 72 |lush the| keyboar|
|00001530| 64 20 62 75 66 66 65 72 | 20 2a 2f 0d 0d 09 2f 2a |d buffer| */.../*|
|00001540| 20 46 69 72 73 74 20 61 | 6e 20 69 6e 69 74 69 61 | First a|n initia|
|00001550| 6c 20 70 61 75 73 65 20 | 2a 2f 0d 09 0d 09 42 4a |l pause |*/....BJ|
|00001560| 42 72 65 61 74 68 28 36 | 30 29 3b 0d 0d 09 2f 2a |Breath(6|0);.../*|
|00001570| 20 44 69 73 70 6c 61 79 | 20 50 61 72 20 54 69 6d | Display| Par Tim|
|00001580| 65 2c 20 50 6c 61 79 65 | 72 27 73 20 54 69 6d 65 |e, Playe|r's Time|
|00001590| 2c 20 61 6e 64 20 73 68 | 6f 77 20 62 6f 6e 75 73 |, and sh|ow bonus|
|000015a0| 20 69 66 20 61 6e 79 2e | 20 2a 2f 0d 0d 09 69 66 | if any.| */...if|
|000015b0| 20 28 67 61 6d 65 73 74 | 61 74 65 2e 70 6c 61 79 | (gamest|ate.play|
|000015c0| 74 69 6d 65 3e 3d 28 31 | 30 30 2a 36 30 2a 36 30 |time>=(1|00*60*60|
|000015d0| 55 4c 29 29 20 7b 0d 09 | 09 6b 20 3d 28 39 39 2a |UL)) {..|.k =(99*|
|000015e0| 36 30 29 2b 35 39 3b 0d | 09 7d 20 65 6c 73 65 20 |60)+59;.|.} else |
|000015f0| 7b 0d 09 09 6b 20 3d 20 | 67 61 6d 65 73 74 61 74 |{...k = |gamestat|
|00001600| 65 2e 70 6c 61 79 74 69 | 6d 65 2f 36 30 3b 0d 09 |e.playti|me/60;..|
|00001610| 7d 0d 09 44 72 61 77 54 | 69 6d 65 28 54 49 4d 45 |}..DrawT|ime(TIME|
|00001620| 58 2c 54 49 4d 45 59 2c | 6b 29 3b 09 09 2f 2a 20 |X,TIMEY,|k);../* |
|00001630| 48 6f 77 20 6d 75 63 68 | 20 74 69 6d 65 20 68 61 |How much| time ha|
|00001640| 73 20 65 6c 61 70 73 65 | 64 3f 20 2a 2f 0d 09 44 |s elapse|d? */..D|
|00001650| 72 61 77 54 69 6d 65 28 | 54 49 4d 45 58 2c 54 49 |rawTime(|TIMEX,TI|
|00001660| 4d 45 59 32 2c 50 61 72 | 54 69 6d 65 29 3b 0d 0d |MEY2,Par|Time);..|
|00001670| 09 69 66 20 28 6b 20 3c | 20 50 61 72 54 69 6d 65 |.if (k <| ParTime|
|00001680| 29 20 7b 0d 09 09 6b 20 | 3d 20 28 50 61 72 54 69 |) {...k |= (ParTi|
|00001690| 6d 65 2d 6b 29 20 2a 20 | 35 30 3b 09 09 2f 2a 20 |me-k) * |50;../* |
|000016a0| 35 30 20 70 6f 69 6e 74 | 73 20 70 65 72 20 73 65 |50 point|s per se|
|000016b0| 63 6f 6e 64 20 2a 2f 0d | 09 09 42 6f 6e 75 73 53 |cond */.|..BonusS|
|000016c0| 63 6f 72 65 20 2b 3d 20 | 6b 3b 09 09 2f 2a 20 41 |core += |k;../* A|
|000016d0| 64 64 20 74 6f 20 74 68 | 65 20 62 6f 6e 75 73 20 |dd to th|e bonus |
|000016e0| 2a 2f 0d 09 09 44 72 61 | 77 49 42 6f 6e 75 73 28 |*/...Dra|wIBonus(|
|000016f0| 29 3b 09 09 09 2f 2a 20 | 44 72 61 77 20 74 68 65 |);.../* |Draw the|
|00001700| 20 62 6f 6e 75 73 20 2a | 2f 0d 09 09 50 6c 61 79 | bonus *|/...Play|
|00001710| 53 6f 75 6e 64 28 53 4e | 44 5f 45 58 54 52 41 29 |Sound(SN|D_EXTRA)|
|00001720| 3b 0d 09 09 42 4a 42 72 | 65 61 74 68 28 36 30 29 |;...BJBr|eath(60)|
|00001730| 3b 09 09 09 2f 2a 20 42 | 72 65 61 74 68 20 61 20 |;.../* B|reath a |
|00001740| 6c 69 74 74 6c 65 20 2a | 2f 0d 09 7d 0d 0d 2f 2a |little *|/..}../*|
|00001750| 20 53 68 6f 77 20 72 61 | 74 69 6f 73 20 66 6f 72 | Show ra|tios for|
|00001760| 20 22 74 65 72 6d 69 6e | 61 74 69 6f 6e 73 22 2c | "termin|ations",|
|00001770| 20 74 72 65 61 73 75 72 | 65 2c 20 61 6e 64 20 73 | treasur|e, and s|
|00001780| 65 63 72 65 74 20 73 74 | 75 66 66 2e 20 2a 2f 0d |ecret st|uff. */.|
|00001790| 2f 2a 20 49 66 20 31 30 | 30 25 20 6f 6e 20 61 6c |/* If 10|0% on al|
|000017a0| 6c 20 63 6f 75 6e 74 73 | 2c 20 50 65 72 66 65 63 |l counts|, Perfec|
|000017b0| 74 20 42 6f 6e 75 73 21 | 20 2a 2f 0d 0d 09 6b 3d |t Bonus!| */...k=|
|000017c0| 30 3b 09 09 2f 2a 20 4e | 6f 74 20 70 65 72 66 65 |0;../* N|ot perfe|
|000017d0| 63 74 20 28 59 65 74 29 | 20 2a 2f 0d 09 52 6f 6c |ct (Yet)| */..Rol|
|000017e0| 6c 52 61 74 69 6f 28 52 | 41 54 49 4f 58 2c 52 41 |lRatio(R|ATIOX,RA|
|000017f0| 54 49 4f 59 2c 28 67 61 | 6d 65 73 74 61 74 65 2e |TIOY,(ga|mestate.|
|00001800| 74 72 65 61 73 75 72 65 | 63 6f 75 6e 74 2a 31 30 |treasure|count*10|
|00001810| 30 29 2f 67 61 6d 65 73 | 74 61 74 65 2e 74 72 65 |0)/games|tate.tre|
|00001820| 61 73 75 72 65 74 6f 74 | 61 6c 29 3b 0d 09 69 66 |asuretot|al);..if|
|00001830| 20 28 67 61 6d 65 73 74 | 61 74 65 2e 74 72 65 61 | (gamest|ate.trea|
|00001840| 73 75 72 65 63 6f 75 6e | 74 20 3d 3d 20 67 61 6d |surecoun|t == gam|
|00001850| 65 73 74 61 74 65 2e 74 | 72 65 61 73 75 72 65 74 |estate.t|reasuret|
|00001860| 6f 74 61 6c 29 20 7b 0d | 09 09 6b 2b 2b 3b 09 09 |otal) {.|..k++;..|
|00001870| 09 2f 2a 20 50 65 72 66 | 65 63 74 20 74 72 65 61 |./* Perf|ect trea|
|00001880| 73 75 72 65 20 2a 2f 0d | 09 7d 0d 09 52 6f 6c 6c |sure */.|.}..Roll|
|00001890| 52 61 74 69 6f 28 52 41 | 54 49 4f 58 2c 52 41 54 |Ratio(RA|TIOX,RAT|
|000018a0| 49 4f 59 32 2c 28 67 61 | 6d 65 73 74 61 74 65 2e |IOY2,(ga|mestate.|
|000018b0| 6b 69 6c 6c 63 6f 75 6e | 74 2a 31 30 30 29 2f 67 |killcoun|t*100)/g|
|000018c0| 61 6d 65 73 74 61 74 65 | 2e 6b 69 6c 6c 74 6f 74 |amestate|.killtot|
|000018d0| 61 6c 29 3b 0d 09 69 66 | 20 28 67 61 6d 65 73 74 |al);..if| (gamest|
|000018e0| 61 74 65 2e 6b 69 6c 6c | 63 6f 75 6e 74 20 3d 3d |ate.kill|count ==|
|000018f0| 20 67 61 6d 65 73 74 61 | 74 65 2e 6b 69 6c 6c 74 | gamesta|te.killt|
|00001900| 6f 74 61 6c 29 20 7b 0d | 09 09 6b 2b 2b 3b 09 09 |otal) {.|..k++;..|
|00001910| 09 2f 2a 20 50 65 72 66 | 65 63 74 20 6b 69 6c 6c |./* Perf|ect kill|
|00001920| 73 20 2a 2f 0d 09 7d 0d | 09 52 6f 6c 6c 52 61 74 |s */..}.|.RollRat|
|00001930| 69 6f 28 52 41 54 49 4f | 58 2c 52 41 54 49 4f 59 |io(RATIO|X,RATIOY|
|00001940| 33 2c 28 67 61 6d 65 73 | 74 61 74 65 2e 73 65 63 |3,(games|tate.sec|
|00001950| 72 65 74 63 6f 75 6e 74 | 2a 31 30 30 29 2f 67 61 |retcount|*100)/ga|
|00001960| 6d 65 73 74 61 74 65 2e | 73 65 63 72 65 74 74 6f |mestate.|secretto|
|00001970| 74 61 6c 29 3b 0d 09 69 | 66 20 28 67 61 6d 65 73 |tal);..i|f (games|
|00001980| 74 61 74 65 2e 73 65 63 | 72 65 74 63 6f 75 6e 74 |tate.sec|retcount|
|00001990| 20 3d 3d 20 67 61 6d 65 | 73 74 61 74 65 2e 73 65 | == game|state.se|
|000019a0| 63 72 65 74 74 6f 74 61 | 6c 29 20 7b 0d 09 09 6b |crettota|l) {...k|
|000019b0| 2b 2b 3b 09 09 09 2f 2a | 20 50 65 72 66 65 63 74 |++;.../*| Perfect|
|000019c0| 20 73 65 63 72 65 74 20 | 2a 2f 0d 09 7d 0d 09 69 | secret |*/..}..i|
|000019d0| 66 20 28 42 6f 6e 75 73 | 53 63 6f 72 65 29 20 7b |f (Bonus|Score) {|
|000019e0| 09 2f 2a 20 44 69 64 20 | 79 6f 75 20 67 65 74 20 |./* Did |you get |
|000019f0| 61 20 62 6f 6e 75 73 3f | 20 2a 2f 0d 09 09 52 6f |a bonus?| */...Ro|
|00001a00| 6c 6c 53 63 6f 72 65 28 | 29 3b 0d 09 09 42 4a 42 |llScore(|);...BJB|
|00001a10| 72 65 61 74 68 28 36 30 | 29 3b 0d 09 7d 0d 09 69 |reath(60|);..}..i|
|00001a20| 66 20 28 6b 3d 3d 33 29 | 20 7b 0d 09 09 57 68 69 |f (k==3)| {...Whi|
|00001a30| 63 68 42 4a 20 3d 20 32 | 3b 09 2f 2a 20 44 72 61 |chBJ = 2|;./* Dra|
|00001a40| 77 20 74 68 75 6d 62 73 | 20 75 70 20 66 6f 72 20 |w thumbs| up for |
|00001a50| 42 4a 20 2a 2f 0d 09 09 | 50 6c 61 79 53 6f 75 6e |BJ */...|PlaySoun|
|00001a60| 64 28 53 4e 44 5f 54 48 | 55 4d 42 53 55 50 29 3b |d(SND_TH|UMBSUP);|
|00001a70| 0d 09 7d 0d 09 64 6f 20 | 7b 0d 09 09 53 68 6f 77 |..}..do |{...Show|
|00001a80| 42 4a 28 29 3b 09 09 2f | 2a 20 41 6e 69 6d 61 74 |BJ();../|* Animat|
|00001a90| 65 20 42 4a 20 2a 2f 0d | 09 7d 20 77 68 69 6c 65 |e BJ */.|.} while|
|00001aa0| 20 28 21 57 61 69 74 54 | 69 63 6b 73 45 76 65 6e | (!WaitT|icksEven|
|00001ab0| 74 28 31 29 29 3b 09 09 | 2f 2a 20 57 61 69 74 20 |t(1));..|/* Wait |
|00001ac0| 66 6f 72 20 61 20 6b 65 | 79 70 72 65 73 73 20 2a |for a ke|ypress *|
|00001ad0| 2f 0d 09 46 72 65 65 53 | 6f 6d 65 4d 65 6d 28 42 |/..FreeS|omeMem(B|
|00001ae0| 4a 50 74 72 29 3b 09 09 | 2f 2a 20 52 65 6c 65 61 |JPtr);..|/* Relea|
|00001af0| 73 65 20 42 4a 27 73 20 | 73 68 61 70 65 73 20 2a |se BJ's |shapes *|
|00001b00| 2f 0d 09 46 61 64 65 54 | 6f 42 6c 61 63 6b 28 29 |/..FadeT|oBlack()|
|00001b10| 3b 09 09 2f 2a 20 46 61 | 64 65 20 61 77 61 79 20 |;../* Fa|de away |
|00001b20| 2a 2f 0d 09 49 6e 74 65 | 72 6d 69 73 73 69 6f 6e |*/..Inte|rmission|
|00001b30| 48 61 63 6b 20 3d 20 46 | 41 4c 53 45 3b 09 09 2f |Hack = F|ALSE;../|
|00001b40| 2a 20 52 65 6c 65 61 73 | 65 20 74 68 65 20 68 61 |* Releas|e the ha|
|00001b50| 63 6b 20 2a 2f 0d 09 4e | 75 6d 62 65 72 49 6e 64 |ck */..N|umberInd|
|00001b60| 65 78 20 3d 20 33 36 3b | 09 09 09 2f 2a 20 52 65 |ex = 36;|.../* Re|
|00001b70| 73 74 6f 72 65 20 74 68 | 65 20 69 6e 64 65 78 20 |store th|e index |
|00001b80| 2a 2f 0d 7d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*/.}../*|********|
|00001b90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ba0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 09 48 61 6e 64 |********|*...Hand|
|00001bb0| 6c 65 20 74 68 65 20 69 | 6e 74 65 72 6d 69 73 73 |le the i|ntermiss|
|00001bc0| 69 6f 6e 20 73 63 72 65 | 65 6e 0d 09 0d 2a 2a 2a |ion scre|en...***|
|00001bd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001be0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00001bf0| 0d 0d 76 6f 69 64 20 49 | 6e 74 65 72 6d 69 73 73 |..void I|ntermiss|
|00001c00| 69 6f 6e 20 28 76 6f 69 | 64 29 0d 7b 0d 09 46 61 |ion (voi|d).{..Fa|
|00001c10| 64 65 54 6f 42 6c 61 63 | 6b 28 29 3b 0d 09 4c 65 |deToBlac|k();..Le|
|00001c20| 76 65 6c 43 6f 6d 70 6c | 65 74 65 64 28 29 3b 09 |velCompl|eted();.|
|00001c30| 09 09 2f 2a 20 53 68 6f | 77 20 74 68 65 20 64 61 |../* Sho|w the da|
|00001c40| 74 61 20 28 49 6e 69 74 | 20 50 61 72 54 69 6d 65 |ta (Init| ParTime|
|00001c50| 29 20 2a 2f 0d 09 67 61 | 6d 65 73 74 61 74 65 2e |) */..ga|mestate.|
|00001c60| 67 6c 6f 62 61 6c 74 69 | 6d 65 20 2b 3d 20 67 61 |globalti|me += ga|
|00001c70| 6d 65 73 74 61 74 65 2e | 70 6c 61 79 74 69 6d 65 |mestate.|playtime|
|00001c80| 3b 09 09 2f 2a 20 41 64 | 64 20 69 6e 20 74 68 65 |;../* Ad|d in the|
|00001c90| 20 70 6c 61 79 74 69 6d | 65 20 2a 2f 0d 09 67 61 | playtim|e */..ga|
|00001ca0| 6d 65 73 74 61 74 65 2e | 67 6c 6f 62 61 6c 74 69 |mestate.|globalti|
|00001cb0| 6d 65 74 6f 74 61 6c 20 | 2b 3d 20 50 61 72 54 69 |metotal |+= ParTi|
|00001cc0| 6d 65 3b 09 2f 2a 20 47 | 65 74 20 74 68 65 20 70 |me;./* G|et the p|
|00001cd0| 61 72 20 2a 2f 0d 09 67 | 61 6d 65 73 74 61 74 65 |ar */..g|amestate|
|00001ce0| 2e 67 6c 6f 62 61 6c 73 | 65 63 72 65 74 20 2b 3d |.globals|ecret +=|
|00001cf0| 20 67 61 6d 65 73 74 61 | 74 65 2e 73 65 63 72 65 | gamesta|te.secre|
|00001d00| 74 63 6f 75 6e 74 3b 09 | 2f 2a 20 53 65 63 72 65 |tcount;.|/* Secre|
|00001d10| 74 73 20 66 6f 75 6e 64 | 20 2a 2f 0d 09 67 61 6d |ts found| */..gam|
|00001d20| 65 73 74 61 74 65 2e 67 | 6c 6f 62 61 6c 74 72 65 |estate.g|lobaltre|
|00001d30| 61 73 75 72 65 20 2b 3d | 20 67 61 6d 65 73 74 61 |asure +=| gamesta|
|00001d40| 74 65 2e 74 72 65 61 73 | 75 72 65 63 6f 75 6e 74 |te.treas|urecount|
|00001d50| 3b 09 2f 2a 20 54 72 65 | 61 73 75 72 65 73 20 66 |;./* Tre|asures f|
|00001d60| 6f 75 6e 64 20 2a 2f 0d | 09 67 61 6d 65 73 74 61 |ound */.|.gamesta|
|00001d70| 74 65 2e 67 6c 6f 62 61 | 6c 6b 69 6c 6c 20 2b 3d |te.globa|lkill +=|
|00001d80| 20 67 61 6d 65 73 74 61 | 74 65 2e 6b 69 6c 6c 63 | gamesta|te.killc|
|00001d90| 6f 75 6e 74 3b 09 2f 2a | 20 4e 75 6d 62 65 72 20 |ount;./*| Number |
|00001da0| 6b 69 6c 6c 65 64 20 2a | 2f 0d 09 67 61 6d 65 73 |killed *|/..games|
|00001db0| 74 61 74 65 2e 67 6c 6f | 62 61 6c 73 65 63 72 65 |tate.glo|balsecre|
|00001dc0| 74 74 6f 74 61 6c 20 2b | 3d 20 67 61 6d 65 73 74 |ttotal +|= gamest|
|00001dd0| 61 74 65 2e 73 65 63 72 | 65 74 74 6f 74 61 6c 3b |ate.secr|ettotal;|
|00001de0| 09 2f 2a 20 54 6f 74 61 | 6c 20 73 65 63 72 65 74 |./* Tota|l secret|
|00001df0| 73 20 2a 2f 0d 09 67 61 | 6d 65 73 74 61 74 65 2e |s */..ga|mestate.|
|00001e00| 67 6c 6f 62 61 6c 74 72 | 65 61 73 75 72 65 74 6f |globaltr|easureto|
|00001e10| 74 61 6c 20 2b 3d 20 67 | 61 6d 65 73 74 61 74 65 |tal += g|amestate|
|00001e20| 2e 74 72 65 61 73 75 72 | 65 74 6f 74 61 6c 3b 09 |.treasur|etotal;.|
|00001e30| 2f 2a 20 54 6f 74 61 6c | 20 74 72 65 61 73 75 72 |/* Total| treasur|
|00001e40| 65 73 20 2a 2f 0d 09 67 | 61 6d 65 73 74 61 74 65 |es */..g|amestate|
|00001e50| 2e 67 6c 6f 62 61 6c 6b | 69 6c 6c 74 6f 74 61 6c |.globalk|illtotal|
|00001e60| 20 2b 3d 20 67 61 6d 65 | 73 74 61 74 65 2e 6b 69 | += game|state.ki|
|00001e70| 6c 6c 74 6f 74 61 6c 3b | 09 2f 2a 20 54 6f 74 61 |lltotal;|./* Tota|
|00001e80| 6c 20 6b 69 6c 6c 73 20 | 2a 2f 0d 09 53 65 74 75 |l kills |*/..Setu|
|00001e90| 70 50 6c 61 79 53 63 72 | 65 65 6e 28 29 3b 09 09 |pPlayScr|een();..|
|00001ea0| 2f 2a 20 52 65 73 65 74 | 20 74 68 65 20 67 61 6d |/* Reset| the gam|
|00001eb0| 65 20 73 63 72 65 65 6e | 20 2a 2f 0d 7d 0d 0d 2f |e screen| */.}../|
|00001ec0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ed0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ee0| 2a 2a 0d 0d 09 4f 6b 61 | 79 2c 20 6c 65 74 27 73 |**...Oka|y, let's|
|00001ef0| 20 66 61 63 65 20 69 74 | 3a 20 74 68 65 79 20 77 | face it|: they w|
|00001f00| 6f 6e 20 74 68 65 20 67 | 61 6d 65 2e 0d 09 0d 2a |on the g|ame....*|
|00001f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f30| 2a 2f 0d 0d 76 6f 69 64 | 20 56 69 63 74 6f 72 79 |*/..void| Victory|
|00001f40| 49 6e 74 65 72 6d 69 73 | 73 69 6f 6e 20 28 76 6f |Intermis|sion (vo|
|00001f50| 69 64 29 0d 7b 0d 09 46 | 61 64 65 54 6f 42 6c 61 |id).{..F|adeToBla|
|00001f60| 63 6b 28 29 3b 0d 09 4c | 65 76 65 6c 43 6f 6d 70 |ck();..L|evelComp|
|00001f70| 6c 65 74 65 64 28 29 3b | 0d 7d 0d 0d 2f 2a 2a 2a |leted();|.}../***|
|00001f80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00001fa0| 0d 09 53 68 6f 77 20 70 | 6c 61 79 65 72 20 74 68 |..Show p|layer th|
|00001fb0| 65 20 67 61 6d 65 20 63 | 68 61 72 61 63 74 65 72 |e game c|haracter|
|00001fc0| 73 0d 09 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |s...****|********|
|00001fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001fe0| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |******/.|.#define|
|00001ff0| 20 4e 55 4d 43 41 53 54 | 20 31 32 0d 57 6f 72 64 | NUMCAST| 12.Word|
|00002000| 20 63 61 73 74 73 74 61 | 74 65 5b 4e 55 4d 43 41 | caststa|te[NUMCA|
|00002010| 53 54 5d 20 3d 20 7b 0d | 53 54 5f 47 52 44 5f 57 |ST] = {.|ST_GRD_W|
|00002020| 4c 4b 31 2c 20 53 54 5f | 4f 46 43 5f 57 4c 4b 31 |LK1, ST_|OFC_WLK1|
|00002030| 2c 20 53 54 5f 53 53 5f | 57 4c 4b 31 2c 53 54 5f |, ST_SS_|WLK1,ST_|
|00002040| 4d 55 54 41 4e 54 5f 57 | 4c 4b 31 2c 0d 53 54 5f |MUTANT_W|LK1,.ST_|
|00002050| 44 4f 47 5f 57 4c 4b 31 | 2c 20 53 54 5f 48 41 4e |DOG_WLK1|, ST_HAN|
|00002060| 53 5f 57 4c 4b 31 2c 20 | 53 54 5f 53 43 48 41 42 |S_WLK1, |ST_SCHAB|
|00002070| 42 53 5f 57 4c 4b 31 2c | 20 53 54 5f 54 52 41 4e |BS_WLK1,| ST_TRAN|
|00002080| 53 5f 57 4c 4b 31 2c 0d | 53 54 5f 55 42 45 52 5f |S_WLK1,.|ST_UBER_|
|00002090| 57 4c 4b 31 2c 20 53 54 | 5f 44 4b 4e 49 47 48 54 |WLK1, ST|_DKNIGHT|
|000020a0| 5f 57 4c 4b 31 2c 53 54 | 5f 4d 48 49 54 4c 45 52 |_WLK1,ST|_MHITLER|
|000020b0| 5f 57 4c 4b 31 2c 20 53 | 54 5f 48 49 54 4c 45 52 |_WLK1, S|T_HITLER|
|000020c0| 5f 57 4c 4b 31 7d 3b 0d | 0d 23 69 66 20 30 0d 63 |_WLK1};.|.#if 0.c|
|000020d0| 68 61 72 20 2a 63 61 73 | 74 74 65 78 74 5b 4e 55 |har *cas|ttext[NU|
|000020e0| 4d 43 41 53 54 5d 20 3d | 20 7b 20 2f 2a 20 32 38 |MCAST] =| { /* 28|
|000020f0| 20 63 68 61 72 73 20 6d | 61 78 20 2a 2f 0d 22 47 | chars m|ax */."G|
|00002100| 55 41 52 44 22 2c 0d 22 | 4f 46 46 49 43 45 52 22 |UARD",."|OFFICER"|
|00002110| 2c 0d 22 45 4c 49 54 45 | 20 47 55 41 52 44 22 2c |,."ELITE| GUARD",|
|00002120| 0d 22 4d 55 54 41 4e 54 | 22 2c 0d 22 4d 55 54 41 |."MUTANT|",."MUTA|
|00002130| 4e 54 20 52 41 54 22 2c | 0d 22 48 41 4e 53 20 47 |NT RAT",|."HANS G|
|00002140| 52 4f 53 53 45 22 2c 0d | 22 44 52 2e 20 53 43 48 |ROSSE",.|"DR. SCH|
|00002150| 41 42 42 53 22 2c 0d 22 | 54 52 41 4e 53 20 47 52 |ABBS",."|TRANS GR|
|00002160| 4f 53 53 45 22 2c 0d 22 | 55 42 45 52 4d 55 54 41 |OSSE",."|UBERMUTA|
|00002170| 4e 54 22 2c 0d 22 44 45 | 41 54 48 20 4b 4e 49 47 |NT",."DE|ATH KNIG|
|00002180| 48 54 22 2c 0d 22 4d 45 | 43 48 41 4d 45 49 53 54 |HT",."ME|CHAMEIST|
|00002190| 45 52 22 2c 0d 22 53 54 | 41 41 54 4d 45 49 53 54 |ER",."ST|AATMEIST|
|000021a0| 45 52 22 0d 7d 3b 0d 23 | 65 6e 64 69 66 0d 0d 76 |ER".};.#|endif..v|
|000021b0| 6f 69 64 20 43 68 61 72 | 61 63 74 65 72 43 61 73 |oid Char|acterCas|
|000021c0| 74 28 76 6f 69 64 29 0d | 7b 0d 09 57 6f 72 64 20 |t(void).|{..Word |
|000021d0| 45 6e 65 6d 79 2c 63 6f | 75 6e 74 2c 20 63 79 63 |Enemy,co|unt, cyc|
|000021e0| 6c 65 3b 0d 09 57 6f 72 | 64 20 75 70 3b 0d 09 73 |le;..Wor|d up;..s|
|000021f0| 74 61 74 65 5f 74 20 2a | 53 74 61 74 65 50 74 72 |tate_t *|StatePtr|
|00002200| 3b 0d 0d 2f 2a 20 72 65 | 6c 6f 61 64 20 6c 65 76 |;../* re|load lev|
|00002210| 65 6c 20 61 6e 64 20 73 | 65 74 20 74 68 69 6e 67 |el and s|et thing|
|00002220| 73 20 75 70 20 2a 2f 0d | 0d 09 67 61 6d 65 73 74 |s up */.|..gamest|
|00002230| 61 74 65 2e 6d 61 70 6f | 6e 20 3d 20 30 3b 09 09 |ate.mapo|n = 0;..|
|00002240| 2f 2a 20 46 69 72 73 74 | 20 6c 65 76 65 6c 20 61 |/* First| level a|
|00002250| 67 61 69 6e 20 2a 2f 0d | 09 50 72 65 70 50 6c 61 |gain */.|.PrepPla|
|00002260| 79 4c 6f 6f 70 28 29 3b | 09 09 09 09 2f 2a 20 50 |yLoop();|..../* P|
|00002270| 72 65 70 61 72 65 20 74 | 68 65 20 73 79 73 74 65 |repare t|he syste|
|00002280| 6d 20 2a 2f 0d 09 76 69 | 65 77 78 20 3d 20 61 63 |m */..vi|ewx = ac|
|00002290| 74 6f 72 73 5b 30 5d 2e | 78 3b 09 09 2f 2a 20 4d |tors[0].|x;../* M|
|000022a0| 61 72 6b 20 74 68 65 20 | 73 74 61 72 74 69 6e 67 |ark the |starting|
|000022b0| 20 78 2c 79 20 2a 2f 0d | 09 76 69 65 77 79 20 3d | x,y */.|.viewy =|
|000022c0| 20 61 63 74 6f 72 73 5b | 30 5d 2e 79 3b 0d 0d 09 | actors[|0].y;...|
|000022d0| 74 6f 70 73 70 72 69 74 | 65 73 63 61 6c 65 20 3d |topsprit|escale =|
|000022e0| 20 33 32 2a 32 3b 0d 0d | 2f 2a 20 67 6f 20 74 68 | 32*2;..|/* go th|
|000022f0| 72 6f 75 67 68 20 74 68 | 65 20 63 61 73 74 20 2a |rough th|e cast *|
|00002300| 2f 0d 0d 09 45 6e 65 6d | 79 20 3d 20 30 3b 0d 09 |/...Enem|y = 0;..|
|00002310| 63 79 63 6c 65 20 3d 20 | 30 3b 0d 09 64 6f 20 7b |cycle = |0;..do {|
|00002320| 0d 09 09 53 74 61 74 65 | 50 74 72 20 3d 20 26 73 |...State|Ptr = &s|
|00002330| 74 61 74 65 73 5b 63 61 | 73 74 73 74 61 74 65 5b |tates[ca|ststate[|
|00002340| 45 6e 65 6d 79 5d 5d 3b | 09 09 2f 2a 20 49 6e 69 |Enemy]];|../* Ini|
|00002350| 74 20 74 68 65 20 73 74 | 61 74 65 20 70 6f 69 6e |t the st|ate poin|
|00002360| 74 65 72 20 2a 2f 0d 09 | 09 63 6f 75 6e 74 20 3d |ter */..|.count =|
|00002370| 20 31 3b 09 09 09 2f 2a | 20 46 6f 72 63 65 20 61 | 1;.../*| Force a|
|00002380| 20 66 61 6c 6c 20 74 68 | 72 6f 75 67 68 20 6f 6e | fall th|rough on|
|00002390| 20 66 69 72 73 74 20 70 | 61 73 73 20 2a 2f 0d 09 | first p|ass */..|
|000023a0| 09 75 70 20 3d 20 46 41 | 4c 53 45 3b 0d 09 09 66 |.up = FA|LSE;...f|
|000023b0| 6f 72 20 28 3b 3b 29 20 | 7b 0d 09 09 09 69 66 20 |or (;;) |{....if |
|000023c0| 28 2b 2b 63 79 63 6c 65 | 3e 3d 36 30 2a 34 29 20 |(++cycle|>=60*4) |
|000023d0| 7b 09 09 2f 2a 20 54 69 | 6d 65 20 75 70 3f 20 2a |{../* Ti|me up? *|
|000023e0| 2f 0d 09 09 09 09 63 79 | 63 6c 65 20 3d 20 30 3b |/.....cy|cle = 0;|
|000023f0| 09 09 09 09 2f 2a 20 52 | 65 73 65 74 20 74 68 65 |..../* R|eset the|
|00002400| 20 63 6c 6f 63 6b 20 2a | 2f 0d 09 09 09 09 69 66 | clock *|/.....if|
|00002410| 20 28 2b 2b 45 6e 65 6d | 79 3e 3d 4e 55 4d 43 41 | (++Enem|y>=NUMCA|
|00002420| 53 54 29 20 7b 09 2f 2a | 20 4e 65 78 74 20 62 61 |ST) {./*| Next ba|
|00002430| 64 20 67 75 79 20 2a 2f | 0d 09 09 09 09 09 45 6e |d guy */|......En|
|00002440| 65 6d 79 20 3d 20 30 3b | 09 09 09 2f 2a 20 52 65 |emy = 0;|.../* Re|
|00002450| 73 65 74 20 74 68 65 20 | 62 61 64 20 67 75 79 20 |set the |bad guy |
|00002460| 2a 2f 0d 09 09 09 09 7d | 0d 09 09 09 09 62 72 65 |*/.....}|.....bre|
|00002470| 61 6b 3b 0d 09 09 09 7d | 0d 09 09 09 69 66 20 28 |ak;....}|....if (|
|00002480| 21 2d 2d 63 6f 75 6e 74 | 29 20 7b 0d 09 09 09 09 |!--count|) {.....|
|00002490| 63 6f 75 6e 74 20 3d 20 | 53 74 61 74 65 50 74 72 |count = |StatePtr|
|000024a0| 2d 3e 74 69 63 74 69 6d | 65 3b 0d 09 09 09 09 53 |->tictim|e;.....S|
|000024b0| 74 61 74 65 50 74 72 20 | 3d 20 26 73 74 61 74 65 |tatePtr |= &state|
|000024c0| 73 5b 53 74 61 74 65 50 | 74 72 2d 3e 6e 65 78 74 |s[StateP|tr->next|
|000024d0| 5d 3b 0d 09 09 09 7d 0d | 09 09 09 74 6f 70 73 70 |];....}.|...topsp|
|000024e0| 72 69 74 65 6e 75 6d 20 | 3d 20 53 74 61 74 65 50 |ritenum |= StateP|
|000024f0| 74 72 2d 3e 73 68 61 70 | 65 6e 75 6d 3b 09 2f 2a |tr->shap|enum;./*|
|00002500| 20 53 65 74 20 74 68 65 | 20 66 6f 72 6d 6f 73 74 | Set the| formost|
|00002510| 20 73 68 61 70 65 20 23 | 20 2a 2f 0d 09 09 09 52 | shape #| */....R|
|00002520| 65 6e 64 65 72 56 69 65 | 77 28 29 3b 09 09 2f 2a |enderVie|w();../*|
|00002530| 20 53 68 6f 77 20 74 68 | 65 20 33 64 20 76 69 65 | Show th|e 3d vie|
|00002540| 77 20 2a 2f 0d 09 09 09 | 57 61 69 74 54 69 63 6b |w */....|WaitTick|
|00002550| 73 28 31 29 3b 09 09 2f | 2a 20 4c 69 6d 69 74 20 |s(1);../|* Limit |
|00002560| 74 6f 20 31 35 20 66 72 | 61 6d 65 73 20 61 20 73 |to 15 fr|ames a s|
|00002570| 65 63 6f 6e 64 20 2a 2f | 0d 09 09 09 52 65 61 64 |econd */|....Read|
|00002580| 53 79 73 74 65 6d 4a 6f | 79 73 74 69 63 6b 28 29 |SystemJo|ystick()|
|00002590| 3b 09 2f 2a 20 52 65 61 | 64 20 74 68 65 20 6a 6f |;./* Rea|d the jo|
|000025a0| 79 73 74 69 63 6b 20 2a | 2f 0d 09 09 09 69 66 20 |ystick *|/....if |
|000025b0| 28 21 6a 6f 79 73 74 69 | 63 6b 31 20 26 26 20 21 |(!joysti|ck1 && !|
|000025c0| 75 70 29 20 7b 0d 09 09 | 09 09 75 70 20 3d 20 54 |up) {...|..up = T|
|000025d0| 52 55 45 3b 0d 09 09 09 | 09 63 6f 6e 74 69 6e 75 |RUE;....|.continu|
|000025e0| 65 3b 0d 09 09 09 7d 0d | 09 09 09 69 66 20 28 21 |e;....}.|...if (!|
|000025f0| 75 70 29 20 7b 0d 09 09 | 09 09 63 6f 6e 74 69 6e |up) {...|..contin|
|00002600| 75 65 3b 0d 09 09 09 7d | 0d 09 09 09 69 66 20 28 |ue;....}|....if (|
|00002610| 21 6a 6f 79 73 74 69 63 | 6b 31 29 20 7b 0d 09 09 |!joystic|k1) {...|
|00002620| 09 09 63 6f 6e 74 69 6e | 75 65 3b 0d 09 09 09 7d |..contin|ue;....}|
|00002630| 0d 09 09 09 69 66 20 28 | 6a 6f 79 73 74 69 63 6b |....if (|joystick|
|00002640| 31 20 26 20 28 4a 4f 59 | 50 41 44 5f 53 54 41 52 |1 & (JOY|PAD_STAR|
|00002650| 54 7c 4a 4f 59 50 41 44 | 5f 41 7c 4a 4f 59 50 41 |T|JOYPAD|_A|JOYPA|
|00002660| 44 5f 42 7c 4a 4f 59 50 | 41 44 5f 58 7c 4a 4f 59 |D_B|JOYP|AD_X|JOY|
|00002670| 50 41 44 5f 59 29 29 20 | 7b 0d 09 09 09 09 45 6e |PAD_Y)) |{.....En|
|00002680| 65 6d 79 20 3d 20 4e 55 | 4d 43 41 53 54 3b 0d 09 |emy = NU|MCAST;..|
|00002690| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 7d 0d 09 |...break|;....}..|
|000026a0| 09 09 69 66 20 28 20 28 | 6a 6f 79 73 74 69 63 6b |..if ( (|joystick|
|000026b0| 31 20 26 20 28 4a 4f 59 | 50 41 44 5f 54 4c 7c 4a |1 & (JOY|PAD_TL|J|
|000026c0| 4f 59 50 41 44 5f 4c 46 | 54 29 29 20 26 26 20 45 |OYPAD_LF|T)) && E|
|000026d0| 6e 65 6d 79 20 3e 30 29 | 20 7b 0d 09 09 09 09 45 |nemy >0)| {.....E|
|000026e0| 6e 65 6d 79 2d 2d 3b 0d | 09 09 09 09 62 72 65 61 |nemy--;.|....brea|
|000026f0| 6b 3b 0d 09 09 09 7d 0d | 09 09 09 69 66 20 28 20 |k;....}.|...if ( |
|00002700| 28 6a 6f 79 73 74 69 63 | 6b 31 20 26 20 28 4a 4f |(joystic|k1 & (JO|
|00002710| 59 50 41 44 5f 54 52 7c | 4a 4f 59 50 41 44 5f 52 |YPAD_TR||JOYPAD_R|
|00002720| 47 54 29 29 20 26 26 20 | 45 6e 65 6d 79 20 3c 4e |GT)) && |Enemy <N|
|00002730| 55 4d 43 41 53 54 2d 31 | 29 20 7b 0d 09 09 09 09 |UMCAST-1|) {.....|
|00002740| 45 6e 65 6d 79 2b 2b 3b | 0d 09 09 09 09 62 72 65 |Enemy++;|.....bre|
|00002750| 61 6b 3b 0d 09 09 09 7d | 0d 09 09 7d 0d 09 7d 20 |ak;....}|...}..} |
|00002760| 77 68 69 6c 65 20 28 45 | 6e 65 6d 79 20 3c 20 4e |while (E|nemy < N|
|00002770| 55 4d 43 41 53 54 29 3b | 09 2f 2a 20 53 74 69 6c |UMCAST);|./* Stil|
|00002780| 6c 20 61 62 6c 65 20 74 | 6f 20 73 68 6f 77 20 2a |l able t|o show *|
|00002790| 2f 0d 09 53 74 6f 70 53 | 6f 6e 67 28 29 3b 09 09 |/..StopS|ong();..|
|000027a0| 2f 2a 20 53 74 6f 70 20 | 74 68 65 20 6d 75 73 69 |/* Stop |the musi|
|000027b0| 63 20 2a 2f 0d 09 46 61 | 64 65 54 6f 42 6c 61 63 |c */..Fa|deToBlac|
|000027c0| 6b 28 29 3b 09 2f 2a 20 | 46 61 64 65 20 6f 75 74 |k();./* |Fade out|
|000027d0| 20 2a 2f 0d 7d 0d 00 00 | 00 00 00 00 00 00 00 00 | */.}...|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00002810| 00 00 00 00 00 00 0b f2 | 00 01 ec fc 00 00 00 00 |........|........|
|00002820| 00 00 1c 3c 00 01 f9 2e | 00 00 00 00 00 00 11 76 |...<....|.......v|
|00002830| 0a 49 6e 74 65 72 4d 69 | 73 2e 63 00 02 00 00 00 |.InterMi|s.c.....|
|00002840| 54 45 58 54 70 64 6f 73 | 01 00 00 34 01 c0 00 00 |TEXTpdos|...4....|
|00002850| 00 00 54 45 58 54 70 64 | 6f 73 01 00 00 34 01 c0 |..TEXTpd|os...4..|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 a9 61 c9 ba 00 00 | 27 56 00 00 01 7e 00 00 |...a....|'V...~..|
|00002880| 00 00 07 18 00 02 a8 dc | 00 00 00 00 00 00 16 1c |........|........|
|00002890| 00 02 b0 0c 00 00 00 00 | 00 00 0a 1c 00 02 c6 68 |........|.......h|
|000028a0| 00 00 00 00 00 00 23 de | 00 02 d0 98 00 00 00 00 |......#.|........|
|000028b0| 00 00 14 36 00 02 f4 9a | 00 00 00 00 00 00 0b 4e |...6....|.......N|
|000028c0| 00 03 08 f4 00 00 00 00 | ff ff ff fc 00 03 14 46 |........|.......F|
|000028d0| 00 00 00 00 ff ff ff fc | 00 03 14 46 00 00 00 00 |........|...F....|
|000028e0| ff ff ff fc 00 03 14 46 | 00 00 00 00 ff ff ff fc |.......F|........|
|000028f0| 00 03 14 46 00 00 00 00 | 00 00 0c 0e 00 03 14 5a |...F....|.......Z|
|00002900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002920| 00 00 00 00 00 00 00 03 | 00 04 00 39 00 03 01 c7 |........|...9....|
|00002930| 02 67 00 39 00 03 01 c7 | 02 67 aa b6 01 f4 00 00 |.g.9....|.g......|
|00002940| 22 41 00 00 22 4b 00 00 | 22 38 01 00 00 00 01 00 |"A.."K..|"8......|
|00002950| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 b6 c4 c8 |...L...L|...2....|
|00002960| 0d f6 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00002970| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+