home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / sorgenti vari / wolf3dmacsource.sit / Wolf3DMacSource / Level.c < prev    next >
MacBinary  |  1994-10-19  |  17.1 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).

ConfidenceProgramDetectionMatch TypeSupport
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, Wed Oct 19 13:32:46 1994, modified Wed Oct 19 13:32:46 1994, creator 'CWIE', type ASCII, 17023 bytes "Level.c" , at 0x42ff 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
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 4c 65 76 65 6c 2e | 63 00 00 00 00 00 00 00 |..Level.|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 42 7f 00 | 00 01 7e aa cb 08 be aa |.....B..|..~.....|
|00000060| cb 08 be 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 a4 16 00 00 |........|........|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 77 6f 6c 66 64 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 0d 2f 2a 20 73 74 61 |tring.h>|../* sta|
|000000b0| 74 69 63 20 6f 62 6a 65 | 63 74 20 69 6e 66 6f 2a |tic obje|ct info*|
|000000c0| 2f 0d 0d 2f 2a 20 4c 69 | 73 74 20 6f 66 20 62 61 |/../* Li|st of ba|
|000000d0| 64 20 67 75 79 20 73 70 | 72 69 74 65 73 20 2a 2f |d guy sp|rites */|
|000000e0| 0d 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 44 4b |..static| Word DK|
|000000f0| 6e 69 67 68 74 53 70 72 | 73 5b 5d 20 3d 20 7b 0d |nightSpr|s[] = {.|
|00000100| 53 5f 44 4b 4e 49 47 48 | 54 5f 41 54 4b 31 2c 0d |S_DKNIGH|T_ATK1,.|
|00000110| 53 5f 44 4b 4e 49 47 48 | 54 5f 41 54 4b 32 2c 0d |S_DKNIGH|T_ATK2,.|
|00000120| 53 5f 44 4b 4e 49 47 48 | 54 5f 41 54 4b 33 2c 0d |S_DKNIGH|T_ATK3,.|
|00000130| 53 5f 44 4b 4e 49 47 48 | 54 5f 41 54 4b 34 2c 0d |S_DKNIGH|T_ATK4,.|
|00000140| 53 5f 44 4b 4e 49 47 48 | 54 5f 57 4c 4b 31 2c 0d |S_DKNIGH|T_WLK1,.|
|00000150| 53 5f 44 4b 4e 49 47 48 | 54 5f 57 4c 4b 32 2c 0d |S_DKNIGH|T_WLK2,.|
|00000160| 53 5f 44 4b 4e 49 47 48 | 54 5f 57 4c 4b 33 2c 0d |S_DKNIGH|T_WLK3,.|
|00000170| 53 5f 44 4b 4e 49 47 48 | 54 5f 57 4c 4b 34 2c 0d |S_DKNIGH|T_WLK4,.|
|00000180| 53 5f 44 4b 4e 49 47 48 | 54 5f 44 54 48 31 2c 0d |S_DKNIGH|T_DTH1,.|
|00000190| 53 5f 44 4b 4e 49 47 48 | 54 5f 44 54 48 32 2c 0d |S_DKNIGH|T_DTH2,.|
|000001a0| 53 5f 44 4b 4e 49 47 48 | 54 5f 44 54 48 33 2c 53 |S_DKNIGH|T_DTH3,S|
|000001b0| 5f 47 5f 4b 45 59 2c 30 | 7d 3b 0d 0d 73 74 61 74 |_G_KEY,0|};..stat|
|000001c0| 69 63 20 57 6f 72 64 20 | 44 6f 67 53 70 72 73 5b |ic Word |DogSprs[|
|000001d0| 5d 20 3d 20 7b 0d 53 5f | 44 4f 47 5f 41 54 4b 31 |] = {.S_|DOG_ATK1|
|000001e0| 2c 0d 53 5f 44 4f 47 5f | 41 54 4b 32 2c 0d 53 5f |,.S_DOG_|ATK2,.S_|
|000001f0| 44 4f 47 5f 41 54 4b 33 | 2c 0d 53 5f 44 4f 47 5f |DOG_ATK3|,.S_DOG_|
|00000200| 57 4c 4b 31 2c 0d 53 5f | 44 4f 47 5f 57 4c 4b 32 |WLK1,.S_|DOG_WLK2|
|00000210| 2c 0d 53 5f 44 4f 47 5f | 57 4c 4b 33 2c 0d 53 5f |,.S_DOG_|WLK3,.S_|
|00000220| 44 4f 47 5f 57 4c 4b 34 | 2c 0d 53 5f 44 4f 47 5f |DOG_WLK4|,.S_DOG_|
|00000230| 44 54 48 31 2c 0d 53 5f | 44 4f 47 5f 44 54 48 32 |DTH1,.S_|DOG_DTH2|
|00000240| 2c 0d 53 5f 44 4f 47 5f | 44 54 48 33 2c 30 7d 3b |,.S_DOG_|DTH3,0};|
|00000250| 0d 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 4e 61 |..static| Word Na|
|00000260| 7a 69 53 70 72 73 5b 5d | 20 3d 20 7b 0d 53 5f 47 |ziSprs[]| = {.S_G|
|00000270| 55 41 52 44 5f 41 54 4b | 31 2c 0d 53 5f 47 55 41 |UARD_ATK|1,.S_GUA|
|00000280| 52 44 5f 41 54 4b 32 2c | 0d 53 5f 47 55 41 52 44 |RD_ATK2,|.S_GUARD|
|00000290| 5f 41 54 4b 33 2c 0d 53 | 5f 47 55 41 52 44 5f 57 |_ATK3,.S|_GUARD_W|
|000002a0| 4c 4b 31 2c 0d 53 5f 47 | 55 41 52 44 5f 57 4c 4b |LK1,.S_G|UARD_WLK|
|000002b0| 32 2c 0d 53 5f 47 55 41 | 52 44 5f 57 4c 4b 33 2c |2,.S_GUA|RD_WLK3,|
|000002c0| 0d 53 5f 47 55 41 52 44 | 5f 57 4c 4b 34 2c 0d 53 |.S_GUARD|_WLK4,.S|
|000002d0| 5f 47 55 41 52 44 5f 50 | 41 49 4e 2c 0d 53 5f 47 |_GUARD_P|AIN,.S_G|
|000002e0| 55 41 52 44 5f 44 54 48 | 31 2c 0d 53 5f 47 55 41 |UARD_DTH|1,.S_GUA|
|000002f0| 52 44 5f 44 54 48 32 2c | 0d 53 5f 47 55 41 52 44 |RD_DTH2,|.S_GUARD|
|00000300| 5f 44 54 48 33 2c 53 5f | 41 4d 4d 4f 2c 30 7d 3b |_DTH3,S_|AMMO,0};|
|00000310| 0d 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 48 61 |..static| Word Ha|
|00000320| 6e 73 53 70 72 73 5b 5d | 20 3d 20 7b 0d 53 5f 48 |nsSprs[]| = {.S_H|
|00000330| 41 4e 53 5f 41 54 4b 31 | 2c 0d 53 5f 48 41 4e 53 |ANS_ATK1|,.S_HANS|
|00000340| 5f 41 54 4b 32 2c 0d 53 | 5f 48 41 4e 53 5f 41 54 |_ATK2,.S|_HANS_AT|
|00000350| 4b 33 2c 0d 53 5f 48 41 | 4e 53 5f 57 4c 4b 31 2c |K3,.S_HA|NS_WLK1,|
|00000360| 0d 53 5f 48 41 4e 53 5f | 57 4c 4b 32 2c 0d 53 5f |.S_HANS_|WLK2,.S_|
|00000370| 48 41 4e 53 5f 57 4c 4b | 33 2c 0d 53 5f 48 41 4e |HANS_WLK|3,.S_HAN|
|00000380| 53 5f 57 4c 4b 34 2c 0d | 53 5f 48 41 4e 53 5f 44 |S_WLK4,.|S_HANS_D|
|00000390| 54 48 31 2c 0d 53 5f 48 | 41 4e 53 5f 44 54 48 32 |TH1,.S_H|ANS_DTH2|
|000003a0| 2c 0d 53 5f 48 41 4e 53 | 5f 44 54 48 33 2c 53 5f |,.S_HANS|_DTH3,S_|
|000003b0| 47 5f 4b 45 59 2c 30 7d | 3b 0d 0d 73 74 61 74 69 |G_KEY,0}|;..stati|
|000003c0| 63 20 57 6f 72 64 20 48 | 69 74 6c 65 72 53 70 72 |c Word H|itlerSpr|
|000003d0| 73 5b 5d 20 3d 20 7b 0d | 53 5f 48 49 54 4c 45 52 |s[] = {.|S_HITLER|
|000003e0| 5f 41 54 4b 31 2c 0d 53 | 5f 48 49 54 4c 45 52 5f |_ATK1,.S|_HITLER_|
|000003f0| 41 54 4b 32 2c 0d 53 5f | 48 49 54 4c 45 52 5f 41 |ATK2,.S_|HITLER_A|
|00000400| 54 4b 33 2c 0d 53 5f 48 | 49 54 4c 45 52 5f 57 4c |TK3,.S_H|ITLER_WL|
|00000410| 4b 31 2c 0d 53 5f 48 49 | 54 4c 45 52 5f 57 4c 4b |K1,.S_HI|TLER_WLK|
|00000420| 32 2c 0d 53 5f 48 49 54 | 4c 45 52 5f 57 4c 4b 33 |2,.S_HIT|LER_WLK3|
|00000430| 2c 0d 53 5f 48 49 54 4c | 45 52 5f 57 4c 4b 34 2c |,.S_HITL|ER_WLK4,|
|00000440| 0d 53 5f 48 49 54 4c 45 | 52 5f 44 54 48 31 2c 0d |.S_HITLE|R_DTH1,.|
|00000450| 53 5f 48 49 54 4c 45 52 | 5f 44 54 48 32 2c 0d 53 |S_HITLER|_DTH2,.S|
|00000460| 5f 48 49 54 4c 45 52 5f | 44 54 48 33 2c 0d 53 5f |_HITLER_|DTH3,.S_|
|00000470| 4d 48 49 54 4c 45 52 5f | 41 54 4b 31 2c 0d 53 5f |MHITLER_|ATK1,.S_|
|00000480| 4d 48 49 54 4c 45 52 5f | 41 54 4b 32 2c 0d 53 5f |MHITLER_|ATK2,.S_|
|00000490| 4d 48 49 54 4c 45 52 5f | 41 54 4b 33 2c 0d 53 5f |MHITLER_|ATK3,.S_|
|000004a0| 4d 48 49 54 4c 45 52 5f | 44 49 45 31 2c 0d 53 5f |MHITLER_|DIE1,.S_|
|000004b0| 4d 48 49 54 4c 45 52 5f | 44 49 45 32 2c 0d 53 5f |MHITLER_|DIE2,.S_|
|000004c0| 4d 48 49 54 4c 45 52 5f | 44 49 45 33 2c 0d 53 5f |MHITLER_|DIE3,.S_|
|000004d0| 4d 48 49 54 4c 45 52 5f | 44 49 45 34 2c 0d 53 5f |MHITLER_|DIE4,.S_|
|000004e0| 4d 48 49 54 4c 45 52 5f | 57 4c 4b 31 2c 0d 53 5f |MHITLER_|WLK1,.S_|
|000004f0| 4d 48 49 54 4c 45 52 5f | 57 4c 4b 32 2c 0d 53 5f |MHITLER_|WLK2,.S_|
|00000500| 4d 48 49 54 4c 45 52 5f | 57 4c 4b 33 2c 0d 53 5f |MHITLER_|WLK3,.S_|
|00000510| 4d 48 49 54 4c 45 52 5f | 57 4c 4b 34 2c 30 7d 3b |MHITLER_|WLK4,0};|
|00000520| 0d 0d 73 74 61 74 69 63 | 20 57 6f 72 64 20 55 62 |..static| Word Ub|
|00000530| 65 72 53 70 72 73 5b 5d | 20 3d 20 7b 0d 53 5f 55 |erSprs[]| = {.S_U|
|00000540| 42 45 52 5f 41 54 4b 31 | 2c 0d 53 5f 55 42 45 52 |BER_ATK1|,.S_UBER|
|00000550| 5f 41 54 4b 32 2c 0d 53 | 5f 55 42 45 52 5f 41 54 |_ATK2,.S|_UBER_AT|
|00000560| 4b 33 2c 0d 53 5f 55 42 | 45 52 5f 41 54 4b 34 2c |K3,.S_UB|ER_ATK4,|
|00000570| 0d 53 5f 55 42 45 52 5f | 57 4c 4b 31 2c 0d 53 5f |.S_UBER_|WLK1,.S_|
|00000580| 55 42 45 52 5f 57 4c 4b | 32 2c 0d 53 5f 55 42 45 |UBER_WLK|2,.S_UBE|
|00000590| 52 5f 57 4c 4b 33 2c 0d | 53 5f 55 42 45 52 5f 57 |R_WLK3,.|S_UBER_W|
|000005a0| 4c 4b 34 2c 0d 53 5f 55 | 42 45 52 5f 44 54 48 31 |LK4,.S_U|BER_DTH1|
|000005b0| 2c 0d 53 5f 55 42 45 52 | 5f 44 54 48 32 2c 0d 53 |,.S_UBER|_DTH2,.S|
|000005c0| 5f 55 42 45 52 5f 44 54 | 48 33 2c 53 5f 47 5f 4b |_UBER_DT|H3,S_G_K|
|000005d0| 45 59 2c 30 7d 3b 0d 0d | 73 74 61 74 69 63 20 57 |EY,0};..|static W|
|000005e0| 6f 72 64 20 4d 75 74 61 | 6e 74 53 70 72 73 5b 5d |ord Muta|ntSprs[]|
|000005f0| 20 3d 20 7b 0d 53 5f 4d | 55 54 41 4e 54 5f 41 54 | = {.S_M|UTANT_AT|
|00000600| 4b 31 2c 0d 53 5f 4d 55 | 54 41 4e 54 5f 41 54 4b |K1,.S_MU|TANT_ATK|
|00000610| 32 2c 0d 53 5f 4d 55 54 | 41 4e 54 5f 41 54 4b 33 |2,.S_MUT|ANT_ATK3|
|00000620| 2c 0d 53 5f 4d 55 54 41 | 4e 54 5f 57 4c 4b 31 2c |,.S_MUTA|NT_WLK1,|
|00000630| 0d 53 5f 4d 55 54 41 4e | 54 5f 57 4c 4b 32 2c 0d |.S_MUTAN|T_WLK2,.|
|00000640| 53 5f 4d 55 54 41 4e 54 | 5f 57 4c 4b 33 2c 0d 53 |S_MUTANT|_WLK3,.S|
|00000650| 5f 4d 55 54 41 4e 54 5f | 57 4c 4b 34 2c 0d 53 5f |_MUTANT_|WLK4,.S_|
|00000660| 4d 55 54 41 4e 54 5f 50 | 41 49 4e 2c 0d 53 5f 4d |MUTANT_P|AIN,.S_M|
|00000670| 55 54 41 4e 54 5f 44 54 | 48 31 2c 0d 53 5f 4d 55 |UTANT_DT|H1,.S_MU|
|00000680| 54 41 4e 54 5f 44 54 48 | 32 2c 0d 53 5f 4d 55 54 |TANT_DTH|2,.S_MUT|
|00000690| 41 4e 54 5f 44 54 48 33 | 2c 53 5f 41 4d 4d 4f 2c |ANT_DTH3|,S_AMMO,|
|000006a0| 30 7d 3b 0d 0d 73 74 61 | 74 69 63 20 57 6f 72 64 |0};..sta|tic Word|
|000006b0| 20 4f 66 66 69 63 65 72 | 53 70 72 73 5b 5d 20 3d | Officer|Sprs[] =|
|000006c0| 20 7b 0d 53 5f 4f 46 46 | 49 43 45 52 5f 41 54 4b | {.S_OFF|ICER_ATK|
|000006d0| 31 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 41 54 4b |1,.S_OFF|ICER_ATK|
|000006e0| 32 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 41 54 4b |2,.S_OFF|ICER_ATK|
|000006f0| 33 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 57 4c 4b |3,.S_OFF|ICER_WLK|
|00000700| 31 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 57 4c 4b |1,.S_OFF|ICER_WLK|
|00000710| 32 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 57 4c 4b |2,.S_OFF|ICER_WLK|
|00000720| 33 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 57 4c 4b |3,.S_OFF|ICER_WLK|
|00000730| 34 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 50 41 49 |4,.S_OFF|ICER_PAI|
|00000740| 4e 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 44 54 48 |N,.S_OFF|ICER_DTH|
|00000750| 31 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 44 54 48 |1,.S_OFF|ICER_DTH|
|00000760| 32 2c 0d 53 5f 4f 46 46 | 49 43 45 52 5f 44 54 48 |2,.S_OFF|ICER_DTH|
|00000770| 33 2c 53 5f 41 4d 4d 4f | 2c 30 7d 3b 0d 0d 73 74 |3,S_AMMO|,0};..st|
|00000780| 61 74 69 63 20 57 6f 72 | 64 20 53 63 68 61 62 62 |atic Wor|d Schabb|
|00000790| 73 53 70 72 5b 5d 20 3d | 20 7b 0d 53 5f 53 43 48 |sSpr[] =| {.S_SCH|
|000007a0| 41 42 42 53 5f 41 54 4b | 31 2c 0d 53 5f 53 43 48 |ABBS_ATK|1,.S_SCH|
|000007b0| 41 42 42 53 5f 41 54 4b | 32 2c 0d 53 5f 53 43 48 |ABBS_ATK|2,.S_SCH|
|000007c0| 41 42 42 53 5f 57 4c 4b | 31 2c 0d 53 5f 53 43 48 |ABBS_WLK|1,.S_SCH|
|000007d0| 41 42 42 53 5f 57 4c 4b | 32 2c 0d 53 5f 53 43 48 |ABBS_WLK|2,.S_SCH|
|000007e0| 41 42 42 53 5f 57 4c 4b | 33 2c 0d 53 5f 53 43 48 |ABBS_WLK|3,.S_SCH|
|000007f0| 41 42 42 53 5f 57 4c 4b | 34 2c 0d 53 5f 53 43 48 |ABBS_WLK|4,.S_SCH|
|00000800| 41 42 42 53 5f 44 54 48 | 31 2c 0d 53 5f 53 43 48 |ABBS_DTH|1,.S_SCH|
|00000810| 41 42 42 53 5f 44 54 48 | 32 2c 0d 53 5f 53 43 48 |ABBS_DTH|2,.S_SCH|
|00000820| 41 42 42 53 5f 44 54 48 | 33 2c 53 5f 47 5f 4b 45 |ABBS_DTH|3,S_G_KE|
|00000830| 59 2c 30 7d 3b 0d 0d 73 | 74 61 74 69 63 20 57 6f |Y,0};..s|tatic Wo|
|00000840| 72 64 20 53 53 53 70 72 | 73 5b 5d 20 3d 20 7b 0d |rd SSSpr|s[] = {.|
|00000850| 53 5f 53 53 5f 41 54 4b | 31 2c 0d 53 5f 53 53 5f |S_SS_ATK|1,.S_SS_|
|00000860| 41 54 4b 32 2c 0d 53 5f | 53 53 5f 41 54 4b 33 2c |ATK2,.S_|SS_ATK3,|
|00000870| 0d 53 5f 53 53 5f 57 4c | 4b 31 2c 0d 53 5f 53 53 |.S_SS_WL|K1,.S_SS|
|00000880| 5f 57 4c 4b 32 2c 0d 53 | 5f 53 53 5f 57 4c 4b 33 |_WLK2,.S|_SS_WLK3|
|00000890| 2c 0d 53 5f 53 53 5f 57 | 4c 4b 34 2c 0d 53 5f 53 |,.S_SS_W|LK4,.S_S|
|000008a0| 53 5f 50 41 49 4e 2c 0d | 53 5f 53 53 5f 44 54 48 |S_PAIN,.|S_SS_DTH|
|000008b0| 31 2c 0d 53 5f 53 53 5f | 44 54 48 32 2c 0d 53 5f |1,.S_SS_|DTH2,.S_|
|000008c0| 53 53 5f 44 54 48 33 2c | 53 5f 4d 41 43 48 49 4e |SS_DTH3,|S_MACHIN|
|000008d0| 45 47 55 4e 2c 53 5f 41 | 4d 4d 4f 2c 30 7d 3b 0d |EGUN,S_A|MMO,0};.|
|000008e0| 0d 73 74 61 74 69 63 20 | 57 6f 72 64 20 54 72 61 |.static |Word Tra|
|000008f0| 6e 73 53 70 72 73 5b 5d | 20 3d 20 7b 0d 53 5f 54 |nsSprs[]| = {.S_T|
|00000900| 52 41 4e 53 5f 41 54 4b | 31 2c 0d 53 5f 54 52 41 |RANS_ATK|1,.S_TRA|
|00000910| 4e 53 5f 41 54 4b 32 2c | 0d 53 5f 54 52 41 4e 53 |NS_ATK2,|.S_TRANS|
|00000920| 5f 41 54 4b 33 2c 0d 53 | 5f 54 52 41 4e 53 5f 57 |_ATK3,.S|_TRANS_W|
|00000930| 4c 4b 31 2c 0d 53 5f 54 | 52 41 4e 53 5f 57 4c 4b |LK1,.S_T|RANS_WLK|
|00000940| 32 2c 0d 53 5f 54 52 41 | 4e 53 5f 57 4c 4b 33 2c |2,.S_TRA|NS_WLK3,|
|00000950| 0d 53 5f 54 52 41 4e 53 | 5f 57 4c 4b 34 2c 0d 53 |.S_TRANS|_WLK4,.S|
|00000960| 5f 54 52 41 4e 53 5f 44 | 54 48 31 2c 0d 53 5f 54 |_TRANS_D|TH1,.S_T|
|00000970| 52 41 4e 53 5f 44 54 48 | 32 2c 0d 53 5f 54 52 41 |RANS_DTH|2,.S_TRA|
|00000980| 4e 53 5f 44 54 48 33 2c | 53 5f 47 5f 4b 45 59 2c |NS_DTH3,|S_G_KEY,|
|00000990| 30 7d 3b 0d 0d 73 74 61 | 74 69 63 20 42 79 74 65 |0};..sta|tic Byte|
|000009a0| 20 45 6e 65 6d 79 48 69 | 74 73 5b 31 36 5d 3b 0d | EnemyHi|ts[16];.|
|000009b0| 0d 73 74 61 74 69 63 20 | 57 6f 72 64 20 2a 45 6e |.static |Word *En|
|000009c0| 65 6d 79 53 70 72 73 5b | 5d 20 3d 20 7b 09 2f 2a |emySprs[|] = {./*|
|000009d0| 20 54 68 69 73 20 6c 69 | 73 74 20 4d 55 53 54 20 | This li|st MUST |
|000009e0| 6d 61 74 63 68 20 63 6c | 61 73 73 5f 74 21 20 2a |match cl|ass_t! *|
|000009f0| 2f 0d 4e 61 7a 69 53 70 | 72 73 2c 0d 4f 66 66 69 |/.NaziSp|rs,.Offi|
|00000a00| 63 65 72 53 70 72 73 2c | 0d 53 53 53 70 72 73 2c |cerSprs,|.SSSprs,|
|00000a10| 0d 44 6f 67 53 70 72 73 | 2c 0d 4d 75 74 61 6e 74 |.DogSprs|,.Mutant|
|00000a20| 53 70 72 73 2c 0d 48 61 | 6e 73 53 70 72 73 2c 0d |Sprs,.Ha|nsSprs,.|
|00000a30| 53 63 68 61 62 62 73 53 | 70 72 2c 0d 54 72 61 6e |SchabbsS|pr,.Tran|
|00000a40| 73 53 70 72 73 2c 0d 55 | 62 65 72 53 70 72 73 2c |sSprs,.U|berSprs,|
|00000a50| 0d 44 4b 6e 69 67 68 74 | 53 70 72 73 2c 0d 48 69 |.DKnight|Sprs,.Hi|
|00000a60| 74 6c 65 72 53 70 72 73 | 2c 0d 48 69 74 6c 65 72 |tlerSprs|,.Hitler|
|00000a70| 53 70 72 73 0d 7d 3b 0d | 0d 0d 73 74 61 74 69 63 |Sprs.};.|..static|
|00000a80| 20 42 79 74 65 20 57 61 | 6c 6c 48 69 74 73 5b 32 | Byte Wa|llHits[2|
|00000a90| 35 36 5d 3b 0d 0d 57 6f | 72 64 20 73 74 61 74 69 |56];..Wo|rd stati|
|00000aa0| 63 66 6c 61 67 73 5b 5d | 20 3d 20 7b 0d 30 2c 09 |cflags[]| = {.0,.|
|00000ab0| 09 09 09 09 2f 2a 53 5f | 57 41 54 45 52 5f 50 55 |..../*S_|WATER_PU|
|00000ac0| 44 44 4c 45 2c 2a 2f 0d | 54 49 5f 42 4c 4f 43 4b |DDLE,*/.|TI_BLOCK|
|00000ad0| 4d 4f 56 45 2c 09 09 2f | 2a 53 5f 47 52 45 45 4e |MOVE,../|*S_GREEN|
|00000ae0| 5f 42 41 52 52 45 4c 2c | 2a 2f 0d 54 49 5f 42 4c |_BARREL,|*/.TI_BL|
|00000af0| 4f 43 4b 4d 4f 56 45 2c | 09 09 2f 2a 53 5f 43 48 |OCKMOVE,|../*S_CH|
|00000b00| 41 49 52 5f 54 41 42 4c | 45 2c 2a 2f 0d 54 49 5f |AIR_TABL|E,*/.TI_|
|00000b10| 42 4c 4f 43 4b 4d 4f 56 | 45 2c 09 09 2f 2a 53 5f |BLOCKMOV|E,../*S_|
|00000b20| 46 4c 4f 4f 52 5f 4c 41 | 4d 50 2c 2a 2f 0d 30 2c |FLOOR_LA|MP,*/.0,|
|00000b30| 09 09 09 09 09 2f 2a 53 | 5f 43 48 41 4e 44 45 4c |...../*S|_CHANDEL|
|00000b40| 49 45 52 2c 2a 2f 0d 54 | 49 5f 47 45 54 41 42 4c |IER,*/.T|I_GETABL|
|00000b50| 45 2c 09 09 09 2f 2a 53 | 5f 44 4f 47 5f 46 4f 4f |E,.../*S|_DOG_FOO|
|00000b60| 44 2c 2a 2f 0d 54 49 5f | 42 4c 4f 43 4b 4d 4f 56 |D,*/.TI_|BLOCKMOV|
|00000b70| 45 2c 09 09 2f 2a 53 5f | 43 4f 4c 55 4d 4e 2c 2a |E,../*S_|COLUMN,*|
|00000b80| 2f 0d 54 49 5f 42 4c 4f | 43 4b 4d 4f 56 45 2c 09 |/.TI_BLO|CKMOVE,.|
|00000b90| 09 2f 2a 53 5f 50 4f 54 | 54 45 44 5f 54 52 45 45 |./*S_POT|TED_TREE|
|00000ba0| 2c 2a 2f 0d 0d 54 49 5f | 42 4c 4f 43 4b 4d 4f 56 |,*/..TI_|BLOCKMOV|
|00000bb0| 45 2c 09 09 2f 2a 53 5f | 46 4c 41 47 2c 2a 2f 0d |E,../*S_|FLAG,*/.|
|00000bc0| 54 49 5f 42 4c 4f 43 4b | 4d 4f 56 45 2c 09 09 2f |TI_BLOCK|MOVE,../|
|00000bd0| 2a 53 5f 50 4f 54 54 45 | 44 5f 50 4c 41 4e 54 2c |*S_POTTE|D_PLANT,|
|00000be0| 2a 2f 0d 54 49 5f 42 4c | 4f 43 4b 4d 4f 56 45 2c |*/.TI_BL|OCKMOVE,|
|00000bf0| 09 09 2f 2a 53 5f 42 4c | 55 45 5f 50 4f 54 2c 2a |../*S_BL|UE_POT,*|
|00000c00| 2f 0d 30 2c 09 09 09 09 | 09 2f 2a 53 5f 44 45 42 |/.0,....|./*S_DEB|
|00000c10| 52 49 53 31 2c 2a 2f 0d | 30 2c 09 09 09 09 09 2f |RIS1,*/.|0,...../|
|00000c20| 2a 53 5f 4c 49 47 48 54 | 2c 2a 2f 0d 30 2c 09 09 |*S_LIGHT|,*/.0,..|
|00000c30| 09 09 09 2f 2a 53 5f 42 | 55 43 4b 45 54 2c 2a 2f |.../*S_B|UCKET,*/|
|00000c40| 0d 54 49 5f 42 4c 4f 43 | 4b 4d 4f 56 45 2c 09 09 |.TI_BLOC|KMOVE,..|
|00000c50| 2f 2a 53 5f 41 52 4d 4f | 55 52 2c 2a 2f 0d 54 49 |/*S_ARMO|UR,*/.TI|
|00000c60| 5f 42 4c 4f 43 4b 4d 4f | 56 45 2c 09 09 2f 2a 53 |_BLOCKMO|VE,../*S|
|00000c70| 5f 43 41 47 45 2c 2a 2f | 0d 0d 54 49 5f 47 45 54 |_CAGE,*/|..TI_GET|
|00000c80| 41 42 4c 45 2c 09 09 09 | 2f 2a 53 5f 47 5f 4b 45 |ABLE,...|/*S_G_KE|
|00000c90| 59 2c 2a 2f 0d 54 49 5f | 47 45 54 41 42 4c 45 2c |Y,*/.TI_|GETABLE,|
|00000ca0| 09 09 09 2f 2a 53 5f 53 | 5f 4b 45 59 2c 2a 2f 0d |.../*S_S|_KEY,*/.|
|00000cb0| 54 49 5f 47 45 54 41 42 | 4c 45 2c 09 09 09 2f 2a |TI_GETAB|LE,.../*|
|00000cc0| 53 5f 42 41 4e 44 4f 4c | 49 45 52 2a 2f 0d 54 49 |S_BANDOL|IER*/.TI|
|00000cd0| 5f 47 45 54 41 42 4c 45 | 2c 09 09 09 2f 2a 53 5f |_GETABLE|,.../*S_|
|00000ce0| 41 4d 4d 4f 43 41 53 45 | 2c 2a 2f 0d 54 49 5f 47 |AMMOCASE|,*/.TI_G|
|00000cf0| 45 54 41 42 4c 45 2c 09 | 09 09 2f 2a 53 5f 46 4f |ETABLE,.|../*S_FO|
|00000d00| 4f 44 2c 2a 2f 0d 54 49 | 5f 47 45 54 41 42 4c 45 |OD,*/.TI|_GETABLE|
|00000d10| 2c 09 09 09 2f 2a 53 5f | 48 45 41 4c 54 48 2c 2a |,.../*S_|HEALTH,*|
|00000d20| 2f 0d 54 49 5f 47 45 54 | 41 42 4c 45 2c 09 09 09 |/.TI_GET|ABLE,...|
|00000d30| 2f 2a 53 5f 41 4d 4d 4f | 2c 2a 2f 0d 54 49 5f 47 |/*S_AMMO|,*/.TI_G|
|00000d40| 45 54 41 42 4c 45 2c 09 | 09 09 2f 2a 53 5f 4d 41 |ETABLE,.|../*S_MA|
|00000d50| 43 48 49 4e 45 47 55 4e | 2c 2a 2f 0d 0d 54 49 5f |CHINEGUN|,*/..TI_|
|00000d60| 47 45 54 41 42 4c 45 2c | 09 09 09 2f 2a 53 5f 43 |GETABLE,|.../*S_C|
|00000d70| 48 41 49 4e 47 55 4e 2c | 2a 2f 0d 54 49 5f 47 45 |HAINGUN,|*/.TI_GE|
|00000d80| 54 41 42 4c 45 2c 09 09 | 09 2f 2a 53 5f 43 52 4f |TABLE,..|./*S_CRO|
|00000d90| 53 53 2c 2a 2f 0d 54 49 | 5f 47 45 54 41 42 4c 45 |SS,*/.TI|_GETABLE|
|00000da0| 2c 09 09 09 2f 2a 53 5f | 43 48 41 4c 49 43 45 2c |,.../*S_|CHALICE,|
|00000db0| 2a 2f 0d 54 49 5f 47 45 | 54 41 42 4c 45 2c 09 09 |*/.TI_GE|TABLE,..|
|00000dc0| 09 2f 2a 53 5f 43 48 45 | 53 54 2c 2a 2f 0d 54 49 |./*S_CHE|ST,*/.TI|
|00000dd0| 5f 47 45 54 41 42 4c 45 | 2c 09 09 09 2f 2a 53 5f |_GETABLE|,.../*S_|
|00000de0| 43 52 4f 57 4e 2c 2a 2f | 0d 54 49 5f 47 45 54 41 |CROWN,*/|.TI_GETA|
|00000df0| 42 4c 45 2c 09 09 09 2f | 2a 53 5f 4f 4e 45 55 50 |BLE,.../|*S_ONEUP|
|00000e00| 2c 2a 2f 0d 54 49 5f 42 | 4c 4f 43 4b 4d 4f 56 45 |,*/.TI_B|LOCKMOVE|
|00000e10| 2c 09 09 2f 2a 53 5f 57 | 4f 4f 44 5f 42 41 52 52 |,../*S_W|OOD_BARR|
|00000e20| 45 4c 2c 2a 2f 0d 54 49 | 5f 42 4c 4f 43 4b 4d 4f |EL,*/.TI|_BLOCKMO|
|00000e30| 56 45 2c 09 09 2f 2a 53 | 5f 57 41 54 45 52 5f 57 |VE,../*S|_WATER_W|
|00000e40| 45 4c 4c 2c 2a 2f 0d 54 | 49 5f 47 45 54 41 42 4c |ELL,*/.T|I_GETABL|
|00000e50| 45 2c 09 09 09 2f 2a 53 | 5f 46 4c 41 4d 45 54 48 |E,.../*S|_FLAMETH|
|00000e60| 52 4f 57 45 52 20 2a 2f | 0d 54 49 5f 47 45 54 41 |ROWER */|.TI_GETA|
|00000e70| 42 4c 45 2c 09 09 09 2f | 2a 53 5f 47 41 53 43 41 |BLE,.../|*S_GASCA|
|00000e80| 4e 20 2a 2f 0d 54 49 5f | 47 45 54 41 42 4c 45 2c |N */.TI_|GETABLE,|
|00000e90| 09 09 09 2f 2a 53 5f 4c | 41 55 4e 43 48 45 52 20 |.../*S_L|AUNCHER |
|00000ea0| 2a 2f 0d 54 49 5f 47 45 | 54 41 42 4c 45 09 09 09 |*/.TI_GE|TABLE...|
|00000eb0| 2f 2a 53 5f 4d 49 53 53 | 49 4c 45 53 20 2a 2f 0d |/*S_MISS|ILES */.|
|00000ec0| 7d 3b 0d 0d 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |};../***|********|
|00000ed0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ee0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 09 53 70 61 77 6e 20 |*******.|..Spawn |
|00000ef0| 61 20 73 74 61 74 69 63 | 20 6f 62 6a 65 63 74 20 |a static| object |
|00000f00| 61 74 20 78 2c 79 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |at x,y..|********|
|00000f10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 76 6f 69 |********|**/..voi|
|00000f30| 64 20 53 70 61 77 6e 53 | 74 61 74 69 63 28 57 6f |d SpawnS|tatic(Wo|
|00000f40| 72 64 20 78 2c 57 6f 72 | 64 20 79 2c 57 6f 72 64 |rd x,Wor|d y,Word|
|00000f50| 20 73 68 61 70 65 29 0d | 7b 09 0d 09 57 6f 72 64 | shape).|{...Word|
|00000f60| 20 2a 54 69 6c 65 50 74 | 72 3b 0d 09 73 74 61 74 | *TilePt|r;..stat|
|00000f70| 69 63 5f 74 20 2a 53 74 | 61 74 50 74 72 3b 0d 09 |ic_t *St|atPtr;..|
|00000f80| 0d 09 69 66 20 28 6e 75 | 6d 73 74 61 74 69 63 73 |..if (nu|mstatics|
|00000f90| 3e 3d 4d 41 58 53 54 41 | 54 49 43 53 29 20 7b 0d |>=MAXSTA|TICS) {.|
|00000fa0| 09 09 72 65 74 75 72 6e | 3b 09 09 09 09 2f 2a 20 |..return|;..../* |
|00000fb0| 4f 68 20 6f 68 21 21 20 | 2a 2f 0d 09 7d 0d 09 54 |Oh oh!! |*/..}..T|
|00000fc0| 69 6c 65 50 74 72 20 3d | 20 26 74 69 6c 65 6d 61 |ilePtr =| &tilema|
|00000fd0| 70 5b 79 5d 5b 78 5d 3b | 09 09 2f 2a 20 50 72 65 |p[y][x];|../* Pre|
|00000fe0| 63 61 6c 63 20 74 69 6c | 65 20 70 6f 69 6e 74 65 |calc til|e pointe|
|00000ff0| 72 20 2a 2f 0d 09 53 74 | 61 74 50 74 72 20 3d 20 |r */..St|atPtr = |
|00001000| 26 73 74 61 74 69 63 73 | 5b 6e 75 6d 73 74 61 74 |&statics|[numstat|
|00001010| 69 63 73 5d 3b 0d 09 53 | 74 61 74 50 74 72 2d 3e |ics];..S|tatPtr->|
|00001020| 78 20 3d 20 28 78 3c 3c | 46 52 41 43 42 49 54 53 |x = (x<<|FRACBITS|
|00001030| 29 2b 30 78 38 30 3b 09 | 2f 2a 20 53 65 74 20 74 |)+0x80;.|/* Set t|
|00001040| 68 65 20 70 69 78 65 6c | 20 58 20 2a 2f 0d 09 53 |he pixel| X */..S|
|00001050| 74 61 74 50 74 72 2d 3e | 79 20 3d 20 28 79 3c 3c |tatPtr->|y = (y<<|
|00001060| 46 52 41 43 42 49 54 53 | 29 2b 30 78 38 30 3b 09 |FRACBITS|)+0x80;.|
|00001070| 2f 2a 20 53 65 74 20 74 | 68 65 20 70 69 78 65 6c |/* Set t|he pixel|
|00001080| 20 59 20 2a 2f 0d 09 53 | 74 61 74 50 74 72 2d 3e | Y */..S|tatPtr->|
|00001090| 61 72 65 61 6e 75 6d 62 | 65 72 20 3d 20 54 69 6c |areanumb|er = Til|
|000010a0| 65 50 74 72 5b 30 5d 20 | 26 20 54 49 5f 4e 55 4d |ePtr[0] |& TI_NUM|
|000010b0| 4d 41 53 4b 3b 09 2f 2a | 20 4d 61 73 6b 20 6f 66 |MASK;./*| Mask of|
|000010c0| 66 20 74 68 65 20 61 72 | 65 61 20 6e 75 6d 62 65 |f the ar|ea numbe|
|000010d0| 72 20 2a 2f 0d 09 54 69 | 6c 65 50 74 72 5b 30 5d |r */..Ti|lePtr[0]|
|000010e0| 20 7c 3d 20 73 74 61 74 | 69 63 66 6c 61 67 73 5b | |= stat|icflags[|
|000010f0| 73 68 61 70 65 5d 3b 0d | 0d 09 73 68 61 70 65 20 |shape];.|..shape |
|00001100| 2b 3d 20 53 5f 57 41 54 | 45 52 5f 50 55 44 44 4c |+= S_WAT|ER_PUDDL|
|00001110| 45 3b 09 2f 2a 20 49 6e | 69 74 20 74 68 65 20 73 |E;./* In|it the s|
|00001120| 68 61 70 65 20 6e 75 6d | 62 65 72 20 2a 2f 0d 09 |hape num|ber */..|
|00001130| 57 61 6c 6c 48 69 74 73 | 5b 73 68 61 70 65 5d 20 |WallHits|[shape] |
|00001140| 3d 20 31 3b 09 09 2f 2a | 20 4c 6f 61 64 20 69 6e |= 1;../*| Load in|
|00001150| 20 74 68 69 73 20 73 68 | 61 70 65 20 2a 2f 0d 09 | this sh|ape */..|
|00001160| 53 74 61 74 50 74 72 2d | 3e 70 69 63 20 3d 20 73 |StatPtr-|>pic = s|
|00001170| 68 61 70 65 3b 09 09 2f | 2a 20 53 65 74 20 74 68 |hape;../|* Set th|
|00001180| 65 20 6f 62 6a 65 63 74 | 27 73 20 73 68 61 70 65 |e object|'s shape|
|00001190| 20 2a 2f 0d 09 73 77 69 | 74 63 68 20 28 73 68 61 | */..swi|tch (sha|
|000011a0| 70 65 29 20 7b 0d 09 63 | 61 73 65 20 53 5f 43 52 |pe) {..c|ase S_CR|
|000011b0| 4f 53 53 3a 0d 09 63 61 | 73 65 20 53 5f 43 48 41 |OSS:..ca|se S_CHA|
|000011c0| 4c 49 43 45 3a 0d 09 63 | 61 73 65 20 53 5f 43 48 |LICE:..c|ase S_CH|
|000011d0| 45 53 54 3a 0d 09 63 61 | 73 65 20 53 5f 43 52 4f |EST:..ca|se S_CRO|
|000011e0| 57 4e 3a 0d 09 63 61 73 | 65 20 53 5f 4f 4e 45 55 |WN:..cas|e S_ONEU|
|000011f0| 50 3a 0d 09 09 2b 2b 67 | 61 6d 65 73 74 61 74 65 |P:...++g|amestate|
|00001200| 2e 74 72 65 61 73 75 72 | 65 74 6f 74 61 6c 3b 09 |.treasur|etotal;.|
|00001210| 2f 2a 20 4d 61 72 6b 20 | 74 68 69 73 20 61 73 20 |/* Mark |this as |
|00001220| 74 72 65 61 73 75 72 65 | 20 2a 2f 0d 09 7d 0d 09 |treasure| */..}..|
|00001230| 2b 2b 6e 75 6d 73 74 61 | 74 69 63 73 3b 09 09 09 |++numsta|tics;...|
|00001240| 09 2f 2a 20 49 20 68 61 | 76 65 20 6f 6e 65 20 6d |./* I ha|ve one m|
|00001250| 6f 72 65 20 69 74 65 6d | 20 2a 2f 0d 7d 0d 0d 2f |ore item| */.}../|
|00001260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001270| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001280| 2a 2a 0d 0d 09 53 70 61 | 77 6e 20 74 68 65 20 70 |**...Spa|wn the p|
|00001290| 6c 61 79 65 72 20 61 74 | 20 78 2c 79 0d 0d 2a 2a |layer at| x,y..**|
|000012a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012c0| 2f 0d 0d 76 6f 69 64 20 | 53 70 61 77 6e 50 6c 61 |/..void |SpawnPla|
|000012d0| 79 65 72 28 57 6f 72 64 | 20 78 2c 57 6f 72 64 20 |yer(Word| x,Word |
|000012e0| 79 2c 57 6f 72 64 20 64 | 69 72 29 0d 7b 0d 09 67 |y,Word d|ir).{..g|
|000012f0| 61 6d 65 73 74 61 74 65 | 2e 76 69 65 77 61 6e 67 |amestate|.viewang|
|00001300| 6c 65 20 3d 20 28 31 2d | 64 69 72 29 2a 41 4e 47 |le = (1-|dir)*ANG|
|00001310| 4c 45 53 2f 34 3b 09 2f | 2a 20 47 65 74 20 74 68 |LES/4;./|* Get th|
|00001320| 65 20 62 61 73 69 63 20 | 76 69 65 77 69 6e 67 20 |e basic |viewing |
|00001330| 61 6e 67 6c 65 20 2a 2f | 0d 09 61 63 74 6f 72 73 |angle */|..actors|
|00001340| 5b 30 5d 2e 78 20 3d 20 | 28 78 3c 3c 46 52 41 43 |[0].x = |(x<<FRAC|
|00001350| 42 49 54 53 29 2b 30 78 | 38 30 3b 09 2f 2a 20 53 |BITS)+0x|80;./* S|
|00001360| 61 76 65 20 74 68 65 20 | 58 20 63 6f 6f 72 64 20 |ave the |X coord |
|00001370| 2a 2f 0d 09 61 63 74 6f | 72 73 5b 30 5d 2e 79 20 |*/..acto|rs[0].y |
|00001380| 3d 20 28 79 3c 3c 46 52 | 41 43 42 49 54 53 29 2b |= (y<<FR|ACBITS)+|
|00001390| 30 78 38 30 3b 09 2f 2a | 20 53 61 76 65 20 74 68 |0x80;./*| Save th|
|000013a0| 65 20 59 20 63 6f 6f 72 | 64 20 2a 2f 0d 09 61 63 |e Y coor|d */..ac|
|000013b0| 74 6f 72 73 5b 30 5d 2e | 63 6c 61 73 73 20 3d 20 |tors[0].|class = |
|000013c0| 43 4c 5f 50 4c 41 59 45 | 52 3b 09 2f 2a 20 54 68 |CL_PLAYE|R;./* Th|
|000013d0| 69 73 20 69 73 20 74 68 | 65 20 70 6c 61 79 65 72 |is is th|e player|
|000013e0| 20 2a 2f 0d 09 61 63 74 | 6f 72 73 5b 30 5d 2e 61 | */..act|ors[0].a|
|000013f0| 72 65 61 6e 75 6d 62 65 | 72 20 3d 20 74 69 6c 65 |reanumbe|r = tile|
|00001400| 6d 61 70 5b 79 5d 5b 78 | 5d 26 54 49 5f 4e 55 4d |map[y][x|]&TI_NUM|
|00001410| 4d 41 53 4b 3b 09 2f 2a | 20 57 68 69 63 68 20 61 |MASK;./*| Which a|
|00001420| 72 65 61 3f 20 2a 2f 0d | 09 43 6f 6e 6e 65 63 74 |rea? */.|.Connect|
|00001430| 43 6f 75 6e 74 20 3d 20 | 30 3b 09 09 2f 2a 20 5a |Count = |0;../* Z|
|00001440| 61 70 20 74 68 65 20 69 | 6e 74 65 72 63 6f 6e 6e |ap the i|nterconn|
|00001450| 65 63 74 73 20 2a 2f 0d | 09 43 6f 6e 6e 65 63 74 |ects */.|.Connect|
|00001460| 41 72 65 61 73 28 29 3b | 09 09 09 2f 2a 20 49 6e |Areas();|.../* In|
|00001470| 69 74 20 74 68 65 20 61 | 72 65 61 20 74 61 62 6c |it the a|rea tabl|
|00001480| 65 20 2a 2f 0d 7d 0d 0d | 2f 2a 2a 2a 2a 2a 2a 2a |e */.}..|/*******|
|00001490| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 09 53 70 |********|***...Sp|
|000014b0| 61 77 6e 20 61 6e 20 61 | 63 74 6f 72 20 61 74 20 |awn an a|ctor at |
|000014c0| 61 20 73 70 65 63 69 66 | 69 63 20 78 2c 79 0d 0d |a specif|ic x,y..|
|000014d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014f0| 2a 2a 2f 0d 0d 76 6f 69 | 64 20 53 70 61 77 6e 53 |**/..voi|d SpawnS|
|00001500| 74 61 6e 64 28 57 6f 72 | 64 20 78 2c 57 6f 72 64 |tand(Wor|d x,Word|
|00001510| 20 79 2c 63 6c 61 73 73 | 5f 74 20 77 68 69 63 68 | y,class|_t which|
|00001520| 29 0d 7b 0d 09 73 74 61 | 74 65 69 6e 64 65 78 5f |).{..sta|teindex_|
|00001530| 74 20 73 74 61 74 65 3b | 0d 09 63 6c 61 73 73 69 |t state;|..classi|
|00001540| 6e 66 6f 5f 74 09 2a 69 | 6e 66 6f 3b 0d 09 61 63 |nfo_t.*i|nfo;..ac|
|00001550| 74 6f 72 5f 74 20 2a 41 | 63 74 6f 72 50 74 72 3b |tor_t *A|ctorPtr;|
|00001560| 0d 09 57 6f 72 64 20 2a | 54 69 6c 65 50 74 72 3b |..Word *|TilePtr;|
|00001570| 0d 09 57 6f 72 64 20 74 | 69 6c 65 3b 0d 09 0d 09 |..Word t|ile;....|
|00001580| 69 66 20 28 6e 75 6d 61 | 63 74 6f 72 73 3d 3d 4d |if (numa|ctors==M|
|00001590| 41 58 41 43 54 4f 52 53 | 29 20 7b 09 2f 2a 20 54 |AXACTORS|) {./* T|
|000015a0| 6f 6f 20 6d 61 6e 79 20 | 61 63 74 6f 72 73 20 61 |oo many |actors a|
|000015b0| 6c 72 65 61 64 79 3f 20 | 2a 2f 0d 09 09 72 65 74 |lready? |*/...ret|
|000015c0| 75 72 6e 3b 09 09 09 09 | 09 2f 2a 20 45 78 69 74 |urn;....|./* Exit|
|000015d0| 20 2a 2f 0d 09 7d 0d 0d | 09 45 6e 65 6d 79 48 69 | */..}..|.EnemyHi|
|000015e0| 74 73 5b 77 68 69 63 68 | 5d 20 3d 20 31 3b 0d 09 |ts[which|] = 1;..|
|000015f0| 69 6e 66 6f 20 3d 20 26 | 63 6c 61 73 73 69 6e 66 |info = &|classinf|
|00001600| 6f 5b 77 68 69 63 68 5d | 3b 09 2f 2a 20 47 65 74 |o[which]|;./* Get|
|00001610| 20 74 68 65 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | the poi|nter to |
|00001620| 74 68 65 20 62 61 73 69 | 63 20 69 6e 66 6f 20 2a |the basi|c info *|
|00001630| 2f 0d 09 73 74 61 74 65 | 20 3d 20 69 6e 66 6f 2d |/..state| = info-|
|00001640| 3e 73 74 61 6e 64 73 74 | 61 74 65 3b 09 2f 2a 20 |>standst|ate;./* |
|00001650| 47 65 74 20 74 68 65 20 | 73 74 61 74 65 20 6c 6f |Get the |state lo|
|00001660| 67 69 63 20 76 61 6c 75 | 65 20 2a 2f 0d 09 41 63 |gic valu|e */..Ac|
|00001670| 74 6f 72 50 74 72 20 3d | 20 26 61 63 74 6f 72 73 |torPtr =| &actors|
|00001680| 5b 6e 75 6d 61 63 74 6f | 72 73 5d 3b 09 2f 2a 20 |[numacto|rs];./* |
|00001690| 47 65 74 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |Get the |pointer |
|000016a0| 74 6f 20 74 68 65 20 6e | 65 77 20 61 63 74 6f 72 |to the n|ew actor|
|000016b0| 20 65 6e 74 72 79 20 2a | 2f 0d 09 54 69 6c 65 50 | entry *|/..TileP|
|000016c0| 74 72 20 3d 20 26 74 69 | 6c 65 6d 61 70 5b 79 5d |tr = &ti|lemap[y]|
|000016d0| 5b 78 5d 3b 09 2f 2a 20 | 50 6f 69 6e 74 65 72 20 |[x];./* |Pointer |
|000016e0| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 74 |to the c|urrent t|
|000016f0| 69 6c 65 20 2a 2f 0d 09 | 74 69 6c 65 20 3d 20 54 |ile */..|tile = T|
|00001700| 69 6c 65 50 74 72 5b 30 | 5d 3b 09 09 09 2f 2a 20 |ilePtr[0|];.../* |
|00001710| 57 68 61 74 27 73 20 69 | 6e 20 74 68 65 20 74 69 |What's i|n the ti|
|00001720| 6c 65 3f 20 2a 2f 0d 09 | 0d 09 41 63 74 6f 72 50 |le? */..|..ActorP|
|00001730| 74 72 2d 3e 78 20 3d 20 | 28 78 3c 3c 46 52 41 43 |tr->x = |(x<<FRAC|
|00001740| 42 49 54 53 29 2b 30 78 | 38 30 3b 09 2f 2a 20 49 |BITS)+0x|80;./* I|
|00001750| 6e 69 74 20 74 68 65 20 | 78 20 61 6e 64 20 79 20 |nit the |x and y |
|00001760| 2a 2f 0d 09 41 63 74 6f | 72 50 74 72 2d 3e 79 20 |*/..Acto|rPtr->y |
|00001770| 3d 20 28 79 3c 3c 46 52 | 41 43 42 49 54 53 29 2b |= (y<<FR|ACBITS)+|
|00001780| 30 78 38 30 3b 0d 09 41 | 63 74 6f 72 50 74 72 2d |0x80;..A|ctorPtr-|
|00001790| 3e 70 69 63 20 3d 20 73 | 74 61 74 65 73 5b 73 74 |>pic = s|tates[st|
|000017a0| 61 74 65 5d 2e 73 68 61 | 70 65 6e 75 6d 3b 09 2f |ate].sha|penum;./|
|000017b0| 2a 20 57 68 61 74 20 70 | 69 63 74 75 72 65 20 74 |* What p|icture t|
|000017c0| 6f 20 64 69 73 70 6c 61 | 79 3f 20 2a 2f 0d 09 41 |o displa|y? */..A|
|000017d0| 63 74 6f 72 50 74 72 2d | 3e 74 69 63 63 6f 75 6e |ctorPtr-|>ticcoun|
|000017e0| 74 20 3d 20 73 74 61 74 | 65 73 5b 73 74 61 74 65 |t = stat|es[state|
|000017f0| 5d 2e 74 69 63 74 69 6d | 65 3b 09 2f 2a 20 49 6e |].tictim|e;./* In|
|00001800| 69 74 69 61 6c 20 74 69 | 63 6b 20 63 6f 75 6e 74 |itial ti|ck count|
|00001810| 20 2a 2f 0d 09 41 63 74 | 6f 72 50 74 72 2d 3e 73 | */..Act|orPtr->s|
|00001820| 74 61 74 65 20 3d 20 73 | 74 61 74 65 3b 0d 09 41 |tate = s|tate;..A|
|00001830| 63 74 6f 72 50 74 72 2d | 3e 66 6c 61 67 73 20 3d |ctorPtr-|>flags =|
|00001840| 20 46 4c 5f 53 48 4f 4f | 54 41 42 4c 45 20 7c 20 | FL_SHOO|TABLE | |
|00001850| 46 4c 5f 4e 4f 54 4d 4f | 56 49 4e 47 3b 09 2f 2a |FL_NOTMO|VING;./*|
|00001860| 20 59 6f 75 20 63 61 6e | 20 73 68 6f 6f 74 20 69 | You can| shoot i|
|00001870| 74 20 2a 2f 0d 09 41 63 | 74 6f 72 50 74 72 2d 3e |t */..Ac|torPtr->|
|00001880| 64 69 73 74 61 6e 63 65 | 20 3d 20 30 3b 09 09 09 |distance| = 0;...|
|00001890| 2f 2a 20 4e 6f 20 64 69 | 73 74 61 6e 63 65 20 74 |/* No di|stance t|
|000018a0| 6f 20 74 72 61 76 65 6c | 20 2a 2f 0d 09 41 63 74 |o travel| */..Act|
|000018b0| 6f 72 50 74 72 2d 3e 64 | 69 72 20 3d 20 6e 6f 64 |orPtr->d|ir = nod|
|000018c0| 69 72 3b 09 09 09 09 2f | 2a 20 4e 6f 20 64 69 72 |ir;..../|* No dir|
|000018d0| 65 63 74 69 6f 6e 20 6f | 66 20 74 72 61 76 65 6c |ection o|f travel|
|000018e0| 20 2a 2f 0d 09 41 63 74 | 6f 72 50 74 72 2d 3e 61 | */..Act|orPtr->a|
|000018f0| 72 65 61 6e 75 6d 62 65 | 72 20 3d 20 74 69 6c 65 |reanumbe|r = tile|
|00001900| 26 54 49 5f 4e 55 4d 4d | 41 53 4b 3b 09 2f 2a 20 |&TI_NUMM|ASK;./* |
|00001910| 41 72 65 61 20 69 6e 20 | 2a 2f 0d 09 41 63 74 6f |Area in |*/..Acto|
|00001920| 72 50 74 72 2d 3e 72 65 | 61 63 74 74 69 6d 65 20 |rPtr->re|acttime |
|00001930| 3d 20 30 3b 09 2f 2a 20 | 52 65 61 63 74 69 6f 6e |= 0;./* |Reaction|
|00001940| 20 74 69 6d 65 20 2a 2f | 0d 09 54 69 6c 65 50 74 | time */|..TilePt|
|00001950| 72 5b 30 5d 20 3d 20 74 | 69 6c 65 20 7c 20 54 49 |r[0] = t|ile | TI|
|00001960| 5f 41 43 54 4f 52 3b 09 | 2f 2a 20 4d 61 72 6b 20 |_ACTOR;.|/* Mark |
|00001970| 61 73 20 61 20 62 61 64 | 20 67 75 79 20 2a 2f 0d |as a bad| guy */.|
|00001980| 09 4d 61 70 50 74 72 2d | 3e 74 69 6c 65 6d 61 70 |.MapPtr-|>tilemap|
|00001990| 5b 79 5d 5b 78 5d 20 3d | 20 6e 75 6d 61 63 74 6f |[y][x] =| numacto|
|000019a0| 72 73 3b 09 2f 2a 20 53 | 61 76 65 20 74 68 65 20 |rs;./* S|ave the |
|000019b0| 61 63 74 6f 72 20 23 20 | 2a 2f 0d 09 41 63 74 6f |actor # |*/..Acto|
|000019c0| 72 50 74 72 2d 3e 67 6f | 61 6c 78 20 3d 20 78 3b |rPtr->go|alx = x;|
|000019d0| 09 09 2f 2a 20 44 6f 6e | 27 74 20 74 72 61 76 65 |../* Don|'t trave|
|000019e0| 6c 20 61 6e 79 77 68 65 | 72 65 20 2a 2f 0d 09 41 |l anywhe|re */..A|
|000019f0| 63 74 6f 72 50 74 72 2d | 3e 67 6f 61 6c 79 20 3d |ctorPtr-|>goaly =|
|00001a00| 20 79 3b 0d 09 41 63 74 | 6f 72 50 74 72 2d 3e 63 | y;..Act|orPtr->c|
|00001a10| 6c 61 73 73 20 3d 20 77 | 68 69 63 68 3b 09 2f 2a |lass = w|hich;./*|
|00001a20| 20 41 63 74 6f 72 20 74 | 79 70 65 20 2a 2f 0d 09 | Actor t|ype */..|
|00001a30| 41 63 74 6f 72 50 74 72 | 2d 3e 73 70 65 65 64 20 |ActorPtr|->speed |
|00001a40| 3d 20 69 6e 66 6f 2d 3e | 73 70 65 65 64 3b 09 2f |= info->|speed;./|
|00001a50| 2a 20 42 61 73 69 63 20 | 73 70 65 65 64 20 2a 2f |* Basic |speed */|
|00001a60| 0d 09 41 63 74 6f 72 50 | 74 72 2d 3e 68 69 74 70 |..ActorP|tr->hitp|
|00001a70| 6f 69 6e 74 73 20 3d 20 | 69 6e 66 6f 2d 3e 68 69 |oints = |info->hi|
|00001a80| 74 70 6f 69 6e 74 73 3b | 09 2f 2a 20 53 74 61 72 |tpoints;|./* Star|
|00001a90| 74 69 6e 67 20 68 69 74 | 20 70 6f 69 6e 74 73 20 |ting hit| points |
|00001aa0| 2a 2f 0d 09 2b 2b 6e 75 | 6d 61 63 74 6f 72 73 3b |*/..++nu|mactors;|
|00001ab0| 09 2f 2a 20 49 20 6e 6f | 77 20 61 64 64 20 6f 6e |./* I no|w add on|
|00001ac0| 65 20 6d 6f 72 65 20 61 | 63 74 6f 72 20 74 6f 20 |e more a|ctor to |
|00001ad0| 74 68 65 20 6c 69 73 74 | 20 2a 2f 0d 09 2b 2b 67 |the list| */..++g|
|00001ae0| 61 6d 65 73 74 61 74 65 | 2e 6b 69 6c 6c 74 6f 74 |amestate|.killtot|
|00001af0| 61 6c 3b 09 09 2f 2a 20 | 41 6e 6f 74 68 65 72 20 |al;../* |Another |
|00001b00| 63 72 69 74 74 65 72 20 | 6d 75 73 74 20 64 69 65 |critter |must die|
|00001b10| 21 20 2a 2f 0d 7d 0d 0d | 0d 2f 2a 2a 2a 2a 2a 2a |! */.}..|./******|
|00001b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 09 53 |********|****...S|
|00001b40| 70 61 77 6e 20 61 6e 20 | 61 63 74 6f 72 20 61 74 |pawn an |actor at|
|00001b50| 20 61 20 73 70 65 63 69 | 66 69 63 20 78 2c 79 20 | a speci|fic x,y |
|00001b60| 61 6e 64 20 41 4c 53 4f | 20 73 65 74 20 74 68 65 |and ALSO| set the|
|00001b70| 20 61 6d 62 75 73 68 20 | 66 6c 61 67 0d 0d 2a 2a | ambush |flag..**|
|00001b80| 2a 2a 2a 2a 2a 2a 2a 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| 2f 0d 0d 76 6f 69 64 20 | 53 70 61 77 6e 41 6d 62 |/..void |SpawnAmb|
|00001bb0| 75 73 68 28 57 6f 72 64 | 20 78 2c 57 6f 72 64 20 |ush(Word| x,Word |
|00001bc0| 79 2c 63 6c 61 73 73 5f | 74 20 77 68 69 63 68 29 |y,class_|t which)|
|00001bd0| 0d 7b 0d 09 61 63 74 6f | 72 5f 74 20 2a 41 63 74 |.{..acto|r_t *Act|
|00001be0| 6f 72 50 74 72 3b 0d 09 | 0d 09 41 63 74 6f 72 50 |orPtr;..|..ActorP|
|00001bf0| 74 72 20 3d 20 26 61 63 | 74 6f 72 73 5b 6e 75 6d |tr = &ac|tors[num|
|00001c00| 61 63 74 6f 72 73 5d 3b | 09 2f 2a 20 47 65 74 20 |actors];|./* Get |
|00001c10| 74 68 65 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |the poin|ter to t|
|00001c20| 68 65 20 6e 65 77 20 61 | 63 74 6f 72 20 65 6e 74 |he new a|ctor ent|
|00001c30| 72 79 20 2a 2f 0d 09 53 | 70 61 77 6e 53 74 61 6e |ry */..S|pawnStan|
|00001c40| 64 28 78 2c 79 2c 77 68 | 69 63 68 29 3b 09 09 2f |d(x,y,wh|ich);../|
|00001c50| 2a 20 46 69 6c 6c 20 69 | 6e 20 61 6c 6c 20 74 68 |* Fill i|n all th|
|00001c60| 65 20 65 6e 74 72 69 65 | 73 20 2a 2f 0d 09 41 63 |e entrie|s */..Ac|
|00001c70| 74 6f 72 50 74 72 2d 3e | 66 6c 61 67 73 20 7c 3d |torPtr->|flags |=|
|00001c80| 20 46 4c 5f 41 4d 42 55 | 53 48 3b 09 2f 2a 20 53 | FL_AMBU|SH;./* S|
|00001c90| 65 74 20 74 68 65 20 61 | 6d 62 75 73 68 20 66 6c |et the a|mbush fl|
|00001ca0| 61 67 20 2a 2f 0d 7d 0d | 0d 2f 2a 2a 2a 2a 2a 2a |ag */.}.|./******|
|00001cb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 09 53 |********|****...S|
|00001cd0| 70 61 77 6e 20 61 20 64 | 6f 6f 72 20 61 74 20 74 |pawn a d|oor at t|
|00001ce0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 78 2c 79 |he speci|fied x,y|
|00001cf0| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00001d00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001d10| 2a 2a 2a 2a 2f 0d 0d 76 | 6f 69 64 20 53 70 61 77 |****/..v|oid Spaw|
|00001d20| 6e 44 6f 6f 72 28 57 6f | 72 64 20 78 2c 57 6f 72 |nDoor(Wo|rd x,Wor|
|00001d30| 64 20 79 2c 57 6f 72 64 | 20 74 79 70 65 29 0d 7b |d y,Word| type).{|
|00001d40| 0d 09 64 6f 6f 72 5f 74 | 20 2a 64 6f 6f 72 3b 0d |..door_t| *door;.|
|00001d50| 09 57 6f 72 64 20 2a 54 | 69 6c 65 50 74 72 3b 0d |.Word *T|ilePtr;.|
|00001d60| 09 0d 09 69 66 20 28 6e | 75 6d 64 6f 6f 72 73 3d |...if (n|umdoors=|
|00001d70| 3d 4d 41 58 44 4f 4f 52 | 53 29 20 7b 0d 09 09 72 |=MAXDOOR|S) {...r|
|00001d80| 65 74 75 72 6e 3b 0d 09 | 7d 0d 09 0d 09 54 69 6c |eturn;..|}....Til|
|00001d90| 65 50 74 72 20 3d 20 26 | 74 69 6c 65 6d 61 70 5b |ePtr = &|tilemap[|
|00001da0| 79 2d 31 5d 5b 78 5d 3b | 09 2f 2a 20 50 6f 69 6e |y-1][x];|./* Poin|
|00001db0| 74 65 72 20 74 6f 20 74 | 68 65 20 74 69 6c 65 20 |ter to t|he tile |
|00001dc0| 28 2d 31 20 79 29 20 66 | 6f 72 20 64 6f 6f 72 2d |(-1 y) f|or door-|
|00001dd0| 3e 61 72 65 61 20 69 6e | 64 65 78 20 2a 2f 0d 09 |>area in|dex */..|
|00001de0| 64 6f 6f 72 20 3d 20 26 | 64 6f 6f 72 73 5b 6e 75 |door = &|doors[nu|
|00001df0| 6d 64 6f 6f 72 73 5d 3b | 09 2f 2a 20 50 6f 69 6e |mdoors];|./* Poin|
|00001e00| 74 65 72 20 74 6f 20 74 | 68 65 20 64 6f 6f 72 20 |ter to t|he door |
|00001e10| 72 65 63 6f 72 64 20 2a | 2f 0d 09 0d 09 64 6f 6f |record *|/....doo|
|00001e20| 72 2d 3e 70 6f 73 69 74 | 69 6f 6e 20 3d 20 30 3b |r->posit|ion = 0;|
|00001e30| 09 09 2f 2a 20 64 6f 6f | 72 73 20 73 74 61 72 74 |../* doo|rs start|
|00001e40| 20 6f 75 74 20 66 75 6c | 6c 79 20 63 6c 6f 73 65 | out ful|ly close|
|00001e50| 64 2a 2f 0d 09 64 6f 6f | 72 2d 3e 74 69 6c 65 78 |d*/..doo|r->tilex|
|00001e60| 09 3d 20 78 3b 0d 09 64 | 6f 6f 72 2d 3e 74 69 6c |.= x;..d|oor->til|
|00001e70| 65 79 09 3d 20 79 3b 0d | 09 64 6f 6f 72 2d 3e 69 |ey.= y;.|.door->i|
|00001e80| 6e 66 6f 09 3d 20 74 79 | 70 65 2d 39 30 3b 09 2f |nfo.= ty|pe-90;./|
|00001e90| 2a 20 53 65 74 20 74 68 | 65 20 64 6f 6f 72 20 74 |* Set th|e door t|
|00001ea0| 79 70 65 20 2a 2f 0d 09 | 64 6f 6f 72 2d 3e 61 63 |ype */..|door->ac|
|00001eb0| 74 69 6f 6e 20 3d 20 44 | 52 5f 43 4c 4f 53 45 44 |tion = D|R_CLOSED|
|00001ec0| 3b 09 2f 2a 20 4d 61 72 | 6b 20 61 73 20 63 6c 6f |;./* Mar|k as clo|
|00001ed0| 73 65 64 20 2a 2f 0d 09 | 54 69 6c 65 50 74 72 5b |sed */..|TilePtr[|
|00001ee0| 4d 41 50 53 49 5a 45 5d | 20 3d 20 28 54 49 5f 44 |MAPSIZE]| = (TI_D|
|00001ef0| 4f 4f 52 7c 54 49 5f 42 | 4c 4f 43 4b 4d 4f 56 45 |OOR|TI_B|LOCKMOVE|
|00001f00| 7c 54 49 5f 42 4c 4f 43 | 4b 53 49 47 48 54 29 7c ||TI_BLOC|KSIGHT)||
|00001f10| 20 6e 75 6d 64 6f 6f 72 | 73 3b 0d 0d 09 69 66 20 | numdoor|s;...if |
|00001f20| 28 74 79 70 65 20 26 20 | 31 29 20 7b 09 2f 2a 20 |(type & |1) {./* |
|00001f30| 68 6f 72 69 7a 6f 6e 74 | 61 6c 2a 2f 0d 09 09 64 |horizont|al*/...d|
|00001f40| 6f 6f 72 2d 3e 61 72 65 | 61 31 20 3d 20 54 69 6c |oor->are|a1 = Til|
|00001f50| 65 50 74 72 5b 4d 41 50 | 53 49 5a 45 2a 32 5d 20 |ePtr[MAP|SIZE*2] |
|00001f60| 26 20 54 49 5f 4e 55 4d | 4d 41 53 4b 3b 09 2f 2a |& TI_NUM|MASK;./*|
|00001f70| 20 4f 6e 65 20 63 65 6c | 6c 20 62 65 6c 6f 77 20 | One cel|l below |
|00001f80| 2a 2f 0d 09 09 64 6f 6f | 72 2d 3e 61 72 65 61 32 |*/...doo|r->area2|
|00001f90| 20 3d 20 54 69 6c 65 50 | 74 72 5b 30 5d 20 26 20 | = TileP|tr[0] & |
|00001fa0| 54 49 5f 4e 55 4d 4d 41 | 53 4b 3b 09 09 09 2f 2a |TI_NUMMA|SK;.../*|
|00001fb0| 20 4f 6e 65 20 63 65 6c | 6c 20 61 62 6f 76 65 20 | One cel|l above |
|00001fc0| 2a 2f 0d 09 7d 20 65 6c | 73 65 20 7b 0d 09 09 64 |*/..} el|se {...d|
|00001fd0| 6f 6f 72 2d 3e 61 72 65 | 61 31 20 3d 20 54 69 6c |oor->are|a1 = Til|
|00001fe0| 65 50 74 72 5b 4d 41 50 | 53 49 5a 45 2d 31 5d 20 |ePtr[MAP|SIZE-1] |
|00001ff0| 26 20 54 49 5f 4e 55 4d | 4d 41 53 4b 3b 09 2f 2a |& TI_NUM|MASK;./*|
|00002000| 20 4f 6e 65 20 63 65 6c | 6c 20 6c 65 66 74 20 2a | One cel|l left *|
|00002010| 2f 0d 09 09 64 6f 6f 72 | 2d 3e 61 72 65 61 32 20 |/...door|->area2 |
|00002020| 3d 20 54 69 6c 65 50 74 | 72 5b 4d 41 50 53 49 5a |= TilePt|r[MAPSIZ|
|00002030| 45 2b 31 5d 20 26 20 54 | 49 5f 4e 55 4d 4d 41 53 |E+1] & T|I_NUMMAS|
|00002040| 4b 3b 09 2f 2a 20 4f 6e | 65 20 63 65 6c 6c 20 72 |K;./* On|e cell r|
|00002050| 69 67 68 74 20 2a 2f 0d | 09 7d 0d 09 2b 2b 6e 75 |ight */.|.}..++nu|
|00002060| 6d 64 6f 6f 72 73 3b 0d | 7d 0d 0d 2f 2a 2a 2a 2a |mdoors;.|}../****|
|00002070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002080| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 0d |********|******..|
|00002090| 09 53 70 61 77 6e 20 61 | 20 70 75 73 68 77 61 6c |.Spawn a| pushwal|
|000020a0| 6c 20 74 72 61 63 6b 20 | 61 74 20 74 68 65 20 73 |l track |at the s|
|000020b0| 70 65 63 69 66 69 65 64 | 20 78 2c 79 0d 0d 2a 2a |pecified| x,y..**|
|000020c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000020d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000020e0| 2f 0d 0d 76 6f 69 64 20 | 41 64 64 50 57 61 6c 6c |/..void |AddPWall|
|000020f0| 54 72 61 63 6b 28 57 6f | 72 64 20 78 2c 57 6f 72 |Track(Wo|rd x,Wor|
|00002100| 64 20 79 2c 57 6f 72 64 | 20 74 69 6c 65 29 0d 7b |d y,Word| tile).{|
|00002110| 0d 09 42 79 74 65 20 2a | 54 65 78 74 50 74 72 3b |..Byte *|TextPtr;|
|00002120| 0d 09 69 66 20 28 78 3e | 3d 4d 41 50 53 49 5a 45 |..if (x>|=MAPSIZE|
|00002130| 20 7c 7c 20 79 3e 3d 4d | 41 50 53 49 5a 45 29 20 | || y>=M|APSIZE) |
|00002140| 7b 0d 09 09 72 65 74 75 | 72 6e 3b 09 09 2f 2a 20 |{...retu|rn;../* |
|00002150| 70 75 73 68 77 61 6c 6c | 20 69 73 20 6f 66 66 20 |pushwall| is off |
|00002160| 74 68 65 20 65 64 67 65 | 20 6f 66 20 61 20 6d 61 |the edge| of a ma|
|00002170| 70 2a 2f 0d 09 7d 0d 09 | 54 65 78 74 50 74 72 20 |p*/..}..|TextPtr |
|00002180| 3d 20 26 74 65 78 74 75 | 72 65 73 5b 4d 41 50 53 |= &textu|res[MAPS|
|00002190| 49 5a 45 2b 78 5d 5b 79 | 5d 3b 0d 09 69 66 20 28 |IZE+x][y|];..if (|
|000021a0| 54 65 78 74 50 74 72 5b | 30 5d 20 21 3d 20 30 78 |TextPtr[|0] != 0x|
|000021b0| 66 66 29 20 7b 09 2f 2a | 20 41 6c 72 65 61 64 79 |ff) {./*| Already|
|000021c0| 20 6d 61 72 6b 65 64 3f | 20 2a 2f 0d 09 09 72 65 | marked?| */...re|
|000021d0| 74 75 72 6e 3b 09 09 09 | 09 09 2f 2a 20 73 6f 6c |turn;...|../* sol|
|000021e0| 69 64 20 77 61 6c 6c 2a | 2f 0d 09 7d 0d 09 54 65 |id wall*|/..}..Te|
|000021f0| 78 74 50 74 72 5b 30 5d | 20 3d 20 74 69 6c 65 20 |xtPtr[0]| = tile |
|00002200| 2b 20 31 3b 09 09 2f 2a | 20 53 61 76 65 20 74 68 |+ 1;../*| Save th|
|00002210| 65 20 74 69 6c 65 20 23 | 20 2a 2f 0d 09 74 65 78 |e tile #| */..tex|
|00002220| 74 75 72 65 73 5b 79 5d | 5b 78 5d 20 3d 20 74 69 |tures[y]|[x] = ti|
|00002230| 6c 65 3b 09 09 2f 2a 20 | 4d 61 72 6b 20 74 68 65 |le;../* |Mark the|
|00002240| 20 74 65 78 74 75 72 65 | 20 69 6e 64 65 78 20 2a | texture| index *|
|00002250| 2f 0d 7d 0d 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/.}../**|********|
|00002260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002270| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 53 70 61 77 6e |********|...Spawn|
|00002280| 20 61 20 70 75 73 68 77 | 61 6c 6c 20 61 74 20 74 | a pushw|all at t|
|00002290| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 78 2c 79 |he speci|fied x,y|
|000022a0| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|000022b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000022c0| 2a 2a 2a 2a 2f 0d 0d 76 | 6f 69 64 20 53 70 61 77 |****/..v|oid Spaw|
|000022d0| 6e 50 75 73 68 77 61 6c | 6c 28 57 6f 72 64 20 78 |nPushwal|l(Word x|
|000022e0| 2c 57 6f 72 64 20 79 2c | 57 6f 72 64 20 74 69 6c |,Word y,|Word til|
|000022f0| 65 29 0d 7b 0d 09 2b 2b | 67 61 6d 65 73 74 61 74 |e).{..++|gamestat|
|00002300| 65 2e 73 65 63 72 65 74 | 74 6f 74 61 6c 3b 09 09 |e.secret|total;..|
|00002310| 2f 2a 20 53 65 63 72 65 | 74 20 61 72 65 61 21 20 |/* Secre|t area! |
|00002320| 2a 2f 0d 09 74 69 6c 65 | 6d 61 70 5b 79 5d 5b 78 |*/..tile|map[y][x|
|00002330| 5d 20 7c 3d 20 28 54 49 | 5f 42 4c 4f 43 4b 4d 4f |] |= (TI|_BLOCKMO|
|00002340| 56 45 20 7c 20 54 49 5f | 42 4c 4f 43 4b 53 49 47 |VE | TI_|BLOCKSIG|
|00002350| 48 54 20 7c 20 54 49 5f | 50 55 53 48 57 41 4c 4c |HT | TI_|PUSHWALL|
|00002360| 29 3b 0d 2f 2a 20 64 69 | 72 65 63 74 6c 79 20 73 |);./* di|rectly s|
|00002370| 65 74 20 74 65 78 74 75 | 72 65 20 76 61 6c 75 65 |et textu|re value|
|00002380| 73 20 66 6f 72 20 72 65 | 6e 64 65 72 69 6e 67 2a |s for re|ndering*|
|00002390| 2f 0d 09 74 69 6c 65 20 | 3d 20 28 74 69 6c 65 2d |/..tile |= (tile-|
|000023a0| 31 29 3c 3c 31 3b 0d 09 | 41 64 64 50 57 61 6c 6c |1)<<1;..|AddPWall|
|000023b0| 54 72 61 63 6b 28 78 2c | 20 79 2c 20 74 69 6c 65 |Track(x,| y, tile|
|000023c0| 29 3b 0d 09 41 64 64 50 | 57 61 6c 6c 54 72 61 63 |);..AddP|WallTrac|
|000023d0| 6b 28 78 2d 31 2c 20 79 | 2c 20 74 69 6c 65 29 3b |k(x-1, y|, tile);|
|000023e0| 0d 09 41 64 64 50 57 61 | 6c 6c 54 72 61 63 6b 28 |..AddPWa|llTrack(|
|000023f0| 78 2d 32 2c 20 79 2c 20 | 74 69 6c 65 29 3b 0d 09 |x-2, y, |tile);..|
|00002400| 41 64 64 50 57 61 6c 6c | 54 72 61 63 6b 28 78 2b |AddPWall|Track(x+|
|00002410| 31 2c 20 79 2c 20 74 69 | 6c 65 29 3b 0d 09 41 64 |1, y, ti|le);..Ad|
|00002420| 64 50 57 61 6c 6c 54 72 | 61 63 6b 28 78 2b 32 2c |dPWallTr|ack(x+2,|
|00002430| 20 79 2c 20 74 69 6c 65 | 29 3b 0d 09 41 64 64 50 | y, tile|);..AddP|
|00002440| 57 61 6c 6c 54 72 61 63 | 6b 28 78 2c 20 79 2d 31 |WallTrac|k(x, y-1|
|00002450| 2c 20 74 69 6c 65 29 3b | 0d 09 41 64 64 50 57 61 |, tile);|..AddPWa|
|00002460| 6c 6c 54 72 61 63 6b 28 | 78 2c 20 79 2d 32 2c 20 |llTrack(|x, y-2, |
|00002470| 74 69 6c 65 29 3b 0d 09 | 41 64 64 50 57 61 6c 6c |tile);..|AddPWall|
|00002480| 54 72 61 63 6b 28 78 2c | 20 79 2b 31 2c 20 74 69 |Track(x,| y+1, ti|
|00002490| 6c 65 29 3b 0d 09 41 64 | 64 50 57 61 6c 6c 54 72 |le);..Ad|dPWallTr|
|000024a0| 61 63 6b 28 78 2c 20 79 | 2b 32 2c 20 74 69 6c 65 |ack(x, y|+2, tile|
|000024b0| 29 3b 0d 7d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |);.}../*|********|
|000024c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 09 53 70 61 77 |********|*...Spaw|
|000024e0| 6e 20 61 6e 20 65 6c 65 | 76 61 74 6f 72 20 61 74 |n an ele|vator at|
|000024f0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 78 | the spe|cified x|
|00002500| 2c 79 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |,y..****|********|
|00002510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002520| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 76 6f 69 64 20 53 70 |******/.|.void Sp|
|00002530| 61 77 6e 45 6c 65 76 61 | 74 6f 72 28 57 6f 72 64 |awnEleva|tor(Word|
|00002540| 20 78 2c 57 6f 72 64 20 | 79 29 0d 7b 0d 09 65 6c | x,Word |y).{..el|
|00002550| 65 76 61 74 6f 72 78 20 | 3d 20 78 3b 09 2f 2a 20 |evatorx |= x;./* |
|00002560| 66 6f 72 20 65 61 73 79 | 20 6d 6f 64 65 20 63 68 |for easy| mode ch|
|00002570| 65 61 74 69 6e 67 2a 2f | 0d 09 65 6c 65 76 61 74 |eating*/|..elevat|
|00002580| 6f 72 79 20 3d 20 79 3b | 0d 09 74 69 6c 65 6d 61 |ory = y;|..tilema|
|00002590| 70 5b 79 5d 5b 78 5d 20 | 7c 3d 20 54 49 5f 42 4c |p[y][x] ||= TI_BL|
|000025a0| 4f 43 4b 4d 4f 56 45 20 | 7c 20 54 49 5f 53 57 49 |OCKMOVE || TI_SWI|
|000025b0| 54 43 48 3b 0d 7d 0d 0d | 2f 2a 2a 2a 2a 2a 2a 2a |TCH;.}..|/*******|
|000025c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000025d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 09 53 70 |********|***...Sp|
|000025e0| 61 77 6e 20 74 68 65 20 | 6f 75 74 73 69 64 65 20 |awn the |outside |
|000025f0| 61 74 20 74 68 65 20 73 | 70 65 63 69 66 69 65 64 |at the s|pecified|
|00002600| 20 78 2c 79 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | x,y..**|********|
|00002610| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002620| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 0d 76 6f 69 64 20 |********|/..void |
|00002630| 53 70 61 77 6e 4f 75 74 | 28 57 6f 72 64 20 78 2c |SpawnOut|(Word x,|
|00002640| 57 6f 72 64 20 79 29 0d | 7b 0d 09 2f 2a 74 69 6c |Word y).|{../*til|
|00002650| 65 6d 61 70 5b 79 5d 5b | 78 5d 20 7c 3d 20 54 49 |emap[y][|x] |= TI|
|00002660| 5f 42 4c 4f 43 4b 4d 4f | 56 45 20 7c 20 54 49 5f |_BLOCKMO|VE | TI_|
|00002670| 53 57 49 54 43 48 3b 2a | 2f 0d 7d 0d 0d 2f 2a 2a |SWITCH;*|/.}../**|
|00002680| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002690| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000026a0| 0d 0d 09 53 70 61 77 6e | 20 61 20 73 65 63 72 65 |...Spawn| a secre|
|000026b0| 74 20 69 74 65 6d 20 61 | 74 20 74 68 65 20 73 70 |t item a|t the sp|
|000026c0| 65 63 69 66 69 65 64 20 | 78 2c 79 0d 0d 2a 2a 2a |ecified |x,y..***|
|000026d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000026e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|000026f0| 0d 0d 76 6f 69 64 20 53 | 70 61 77 6e 53 65 63 72 |..void S|pawnSecr|
|00002700| 65 74 28 57 6f 72 64 20 | 78 2c 57 6f 72 64 20 79 |et(Word |x,Word y|
|00002710| 29 0d 7b 0d 09 74 69 6c | 65 6d 61 70 5b 79 5d 5b |).{..til|emap[y][|
|00002720| 78 5d 20 7c 3d 20 54 49 | 5f 42 4c 4f 43 4b 4d 4f |x] |= TI|_BLOCKMO|
|00002730| 56 45 20 7c 20 54 49 5f | 53 45 43 52 45 54 3b 0d |VE | TI_|SECRET;.|
|00002740| 7d 0d 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |}../****|********|
|00002750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002760| 2a 2a 2a 2a 2a 2a 0d 0d | 09 53 70 61 77 6e 20 61 |******..|.Spawn a|
|00002770| 6c 6c 20 61 63 74 6f 72 | 73 20 61 6e 64 20 6d 61 |ll actor|s and ma|
|00002780| 72 6b 20 64 6f 77 6e 20 | 73 70 65 63 69 61 6c 20 |rk down |special |
|00002790| 70 6c 61 63 65 73 0d 09 | 41 20 73 70 61 77 6e 20 |places..|A spawn |
|000027a0| 72 65 63 6f 72 64 20 69 | 73 20 28 78 2c 79 2c 74 |record i|s (x,y,t|
|000027b0| 79 70 65 29 0d 09 0d 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ype)...*|********|
|000027c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000027d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2f 0d 0d 76 6f 69 64 |********|*/..void|
|000027e0| 20 53 70 61 77 6e 54 68 | 69 6e 67 73 28 76 6f 69 | SpawnTh|ings(voi|
|000027f0| 64 29 0d 7b 0d 09 57 6f | 72 64 20 78 2c 79 3b 09 |d).{..Wo|rd x,y;.|
|00002800| 09 2f 2a 20 54 65 6d 70 | 20 78 2c 79 20 2a 2f 0d |./* Temp| x,y */.|
|00002810| 09 57 6f 72 64 20 74 79 | 70 65 3b 09 09 2f 2a 20 |.Word ty|pe;../* |
|00002820| 49 74 65 6d 20 74 6f 20 | 73 70 61 77 6e 20 2a 2f |Item to |spawn */|
|00002830| 0d 09 42 79 74 65 20 2a | 73 70 61 77 6e 5f 70 3b |..Byte *|spawn_p;|
|00002840| 0d 09 57 6f 72 64 20 43 | 6f 75 6e 74 3b 09 09 2f |..Word C|ount;../|
|00002850| 2a 20 4e 75 6d 62 65 72 | 20 6f 66 20 69 74 65 6d |* Number| of item|
|00002860| 73 20 74 6f 20 63 72 65 | 61 74 65 20 2a 2f 0d 09 |s to cre|ate */..|
|00002870| 57 6f 72 64 20 2a 45 6e | 65 6d 79 50 74 72 3b 0d |Word *En|emyPtr;.|
|00002880| 09 0d 09 6d 65 6d 73 65 | 74 28 45 6e 65 6d 79 48 |...memse|t(EnemyH|
|00002890| 69 74 73 2c 30 2c 73 69 | 7a 65 6f 66 28 45 6e 65 |its,0,si|zeof(Ene|
|000028a0| 6d 79 48 69 74 73 29 29 | 3b 0d 09 73 70 61 77 6e |myHits))|;..spawn|
|000028b0| 5f 70 20 3d 20 28 42 79 | 74 65 20 2a 29 4d 61 70 |_p = (By|te *)Map|
|000028c0| 50 74 72 2b 4d 61 70 50 | 74 72 2d 3e 73 70 61 77 |Ptr+MapP|tr->spaw|
|000028d0| 6e 6c 69 73 74 6f 66 73 | 3b 09 2f 2a 20 50 6f 69 |nlistofs|;./* Poi|
|000028e0| 6e 74 20 74 6f 20 74 68 | 65 20 73 70 61 77 6e 20 |nt to th|e spawn |
|000028f0| 74 61 62 6c 65 20 2a 2f | 0d 09 43 6f 75 6e 74 20 |table */|..Count |
|00002900| 3d 20 4d 61 70 50 74 72 | 2d 3e 6e 75 6d 73 70 61 |= MapPtr|->numspa|
|00002910| 77 6e 3b 09 09 2f 2a 20 | 48 6f 77 20 6d 61 6e 79 |wn;../* |How many|
|00002920| 20 69 74 65 6d 73 20 74 | 6f 20 73 70 61 77 6e 3f | items t|o spawn?|
|00002930| 20 2a 2f 0d 09 69 66 20 | 28 21 43 6f 75 6e 74 29 | */..if |(!Count)|
|00002940| 20 7b 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 7d 0d | {...ret|urn;..}.|
|00002950| 09 64 6f 20 7b 0d 09 09 | 78 20 3d 20 73 70 61 77 |.do {...|x = spaw|
|00002960| 6e 5f 70 5b 30 5d 3b 09 | 09 2f 2a 20 47 65 74 20 |n_p[0];.|./* Get |
|00002970| 74 68 65 20 58 20 2a 2f | 0d 09 09 79 20 3d 20 73 |the X */|...y = s|
|00002980| 70 61 77 6e 5f 70 5b 31 | 5d 3b 09 09 2f 2a 20 47 |pawn_p[1|];../* G|
|00002990| 65 74 20 74 68 65 20 79 | 20 2a 2f 0d 09 09 74 79 |et the y| */...ty|
|000029a0| 70 65 20 3d 20 73 70 61 | 77 6e 5f 70 5b 32 5d 3b |pe = spa|wn_p[2];|
|000029b0| 09 2f 2a 20 47 65 74 20 | 74 68 65 20 74 79 70 65 |./* Get |the type|
|000029c0| 20 2a 2f 0d 09 09 73 70 | 61 77 6e 5f 70 2b 3d 33 | */...sp|awn_p+=3|
|000029d0| 3b 09 09 09 2f 2a 20 49 | 6e 64 65 78 20 70 61 73 |;.../* I|ndex pas|
|000029e0| 74 20 74 68 65 20 72 65 | 63 6f 72 64 20 2a 2f 0d |t the re|cord */.|
|000029f0| 09 09 69 66 20 28 74 79 | 70 65 3c 31 39 29 20 7b |..if (ty|pe<19) {|
|00002a00| 0d 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0d 09 09 |....cont|inue;...|
|00002a10| 7d 20 65 6c 73 65 20 69 | 66 20 28 74 79 70 65 3c |} else i|f (type<|
|00002a20| 32 33 29 20 7b 09 2f 2a | 20 31 39 2d 32 32 20 2a |23) {./*| 19-22 *|
|00002a30| 2f 0d 09 09 09 53 70 61 | 77 6e 50 6c 61 79 65 72 |/....Spa|wnPlayer|
|00002a40| 28 78 2c 79 2c 74 79 70 | 65 2d 31 39 29 3b 0d 09 |(x,y,typ|e-19);..|
|00002a50| 09 7d 20 65 6c 73 65 20 | 69 66 20 28 74 79 70 65 |.} else |if (type|
|00002a60| 3c 35 39 29 20 7b 09 2f | 2a 20 32 33 2d 35 38 20 |<59) {./|* 23-58 |
|00002a70| 2a 2f 0d 09 09 09 53 70 | 61 77 6e 53 74 61 74 69 |*/....Sp|awnStati|
|00002a80| 63 28 78 2c 79 2c 74 79 | 70 65 2d 32 33 29 3b 0d |c(x,y,ty|pe-23);.|
|00002a90| 09 09 7d 20 65 6c 73 65 | 20 69 66 20 28 74 79 70 |..} else| if (typ|
|00002aa0| 65 3c 39 30 29 20 7b 09 | 2f 2a 20 35 39 2d 38 39 |e<90) {.|/* 59-89|
|00002ab0| 20 2a 2f 0d 09 09 09 63 | 6f 6e 74 69 6e 75 65 3b | */....c|ontinue;|
|00002ac0| 0d 09 09 7d 20 65 6c 73 | 65 20 69 66 20 28 74 79 |...} els|e if (ty|
|00002ad0| 70 65 3c 39 38 29 20 7b | 09 2f 2a 20 39 30 2d 39 |pe<98) {|./* 90-9|
|00002ae0| 37 20 2a 2f 0d 09 09 09 | 53 70 61 77 6e 44 6f 6f |7 */....|SpawnDoo|
|00002af0| 72 28 78 2c 79 2c 74 79 | 70 65 29 3b 0d 09 09 7d |r(x,y,ty|pe);...}|
|00002b00| 20 65 6c 73 65 20 69 66 | 20 28 74 79 70 65 20 3d | else if| (type =|
|00002b10| 3d 20 39 38 29 20 7b 09 | 2f 2a 20 39 38 20 2a 2f |= 98) {.|/* 98 */|
|00002b20| 0d 09 09 09 53 70 61 77 | 6e 50 75 73 68 77 61 6c |....Spaw|nPushwal|
|00002b30| 6c 28 78 2c 79 2c 73 70 | 61 77 6e 5f 70 5b 30 5d |l(x,y,sp|awn_p[0]|
|00002b40| 29 3b 0d 09 09 09 2b 2b | 73 70 61 77 6e 5f 70 3b |);....++|spawn_p;|
|00002b50| 0d 09 09 7d 20 65 6c 73 | 65 20 69 66 20 28 74 79 |...} els|e if (ty|
|00002b60| 70 65 20 3d 3d 20 39 39 | 29 20 7b 09 2f 2a 20 39 |pe == 99|) {./* 9|
|00002b70| 39 20 2a 2f 0d 09 09 09 | 53 70 61 77 6e 4f 75 74 |9 */....|SpawnOut|
|00002b80| 28 78 2c 79 29 3b 0d 09 | 09 7d 20 65 6c 73 65 20 |(x,y);..|.} else |
|00002b90| 69 66 20 28 74 79 70 65 | 20 3d 3d 20 31 30 30 29 |if (type| == 100)|
|00002ba0| 20 7b 09 2f 2a 20 31 30 | 30 20 2a 2f 0d 09 09 09 | {./* 10|0 */....|
|00002bb0| 53 70 61 77 6e 45 6c 65 | 76 61 74 6f 72 28 78 2c |SpawnEle|vator(x,|
|00002bc0| 79 29 3b 0d 09 09 7d 20 | 65 6c 73 65 20 69 66 20 |y);...} |else if |
|00002bd0| 28 74 79 70 65 20 3d 3d | 20 31 30 31 29 20 7b 09 |(type ==| 101) {.|
|00002be0| 2f 2a 20 31 30 31 20 2a | 2f 0d 09 09 09 53 70 61 |/* 101 *|/....Spa|
|00002bf0| 77 6e 53 65 63 72 65 74 | 28 78 2c 79 29 3b 0d 09 |wnSecret|(x,y);..|
|00002c00| 09 7d 20 65 6c 73 65 20 | 69 66 20 28 74 79 70 65 |.} else |if (type|
|00002c10| 3c 31 30 38 29 20 7b 09 | 09 2f 2a 20 31 30 32 2d |<108) {.|./* 102-|
|00002c20| 31 30 37 20 2a 2f 0d 09 | 09 09 63 6f 6e 74 69 6e |107 */..|..contin|
|00002c30| 75 65 3b 0d 09 09 7d 20 | 65 6c 73 65 20 69 66 20 |ue;...} |else if |
|00002c40| 28 74 79 70 65 3c 31 32 | 33 29 20 7b 09 09 2f 2a |(type<12|3) {../*|
|00002c50| 20 31 30 38 2d 31 32 32 | 20 2a 2f 0d 09 09 09 53 | 108-122| */....S|
|00002c60| 70 61 77 6e 53 74 61 6e | 64 28 78 2c 79 2c 28 63 |pawnStan|d(x,y,(c|
|00002c70| 6c 61 73 73 5f 74 29 20 | 28 74 79 70 65 2d 31 30 |lass_t) |(type-10|
|00002c80| 38 29 29 3b 0d 09 09 7d | 20 65 6c 73 65 20 69 66 |8));...}| else if|
|00002c90| 20 28 74 79 70 65 3c 31 | 32 36 29 20 7b 09 09 2f | (type<1|26) {../|
|00002ca0| 2a 20 31 32 33 2d 31 32 | 35 20 2a 2f 0d 09 09 09 |* 123-12|5 */....|
|00002cb0| 63 6f 6e 74 69 6e 75 65 | 3b 0d 09 09 7d 20 65 6c |continue|;...} el|
|00002cc0| 73 65 20 69 66 20 28 74 | 79 70 65 3c 31 34 30 29 |se if (t|ype<140)|
|00002cd0| 20 7b 09 09 2f 2a 20 31 | 32 36 2d 31 33 39 20 2a | {../* 1|26-139 *|
|00002ce0| 2f 0d 09 09 09 53 70 61 | 77 6e 41 6d 62 75 73 68 |/....Spa|wnAmbush|
|00002cf0| 28 78 2c 79 2c 28 63 6c | 61 73 73 5f 74 29 20 28 |(x,y,(cl|ass_t) (|
|00002d00| 74 79 70 65 2d 31 32 36 | 29 29 3b 09 0d 09 09 7d |type-126|));....}|
|00002d10| 0d 09 7d 20 77 68 69 6c | 65 20 28 2d 2d 43 6f 75 |..} whil|e (--Cou|
|00002d20| 6e 74 29 3b 0d 09 43 6f | 75 6e 74 20 3d 20 30 3b |nt);..Co|unt = 0;|
|00002d30| 0d 09 64 6f 20 7b 0d 09 | 09 69 66 20 28 45 6e 65 |..do {..|.if (Ene|
|00002d40| 6d 79 48 69 74 73 5b 43 | 6f 75 6e 74 5d 29 20 7b |myHits[C|ount]) {|
|00002d50| 0d 09 09 09 78 20 3d 20 | 30 3b 0d 09 09 09 45 6e |....x = |0;....En|
|00002d60| 65 6d 79 50 74 72 20 3d | 20 45 6e 65 6d 79 53 70 |emyPtr =| EnemySp|
|00002d70| 72 73 5b 43 6f 75 6e 74 | 5d 3b 0d 09 09 09 64 6f |rs[Count|];....do|
|00002d80| 20 7b 0d 09 09 09 09 57 | 61 6c 6c 48 69 74 73 5b | {.....W|allHits[|
|00002d90| 45 6e 65 6d 79 50 74 72 | 5b 78 5d 5d 20 3d 20 31 |EnemyPtr|[x]] = 1|
|00002da0| 3b 0d 09 09 09 09 2b 2b | 78 3b 0d 09 09 09 7d 20 |;.....++|x;....} |
|00002db0| 77 68 69 6c 65 20 28 45 | 6e 65 6d 79 50 74 72 5b |while (E|nemyPtr[|
|00002dc0| 78 5d 29 3b 0d 09 09 7d | 0d 09 7d 20 77 68 69 6c |x]);...}|..} whil|
|00002dd0| 65 20 28 2b 2b 43 6f 75 | 6e 74 3c 31 36 29 3b 0d |e (++Cou|nt<16);.|
|00002de0| 7d 0d 0d 2f 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |}../****|********|
|00002df0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e00| 2a 2a 2a 2a 2a 2a 0d 0d | 09 52 65 6c 65 61 73 65 |******..|.Release|
|00002e10| 20 74 68 65 20 6d 61 70 | 20 64 61 74 61 0d 09 09 | the map| data...|
|00002e20| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00002e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e40| 2a 2a 2a 2f 0d 0d 76 6f | 69 64 20 52 65 6c 65 61 |***/..vo|id Relea|
|00002e50| 73 65 4d 61 70 28 76 6f | 69 64 29 0d 7b 0d 09 57 |seMap(vo|id).{..W|
|00002e60| 6f 72 64 20 69 3b 0d 09 | 69 66 20 28 4f 6c 64 4d |ord i;..|if (OldM|
|00002e70| 61 70 4e 75 6d 29 20 7b | 0d 09 09 4b 69 6c 6c 41 |apNum) {|...KillA|
|00002e80| 52 65 73 6f 75 72 63 65 | 28 4f 6c 64 4d 61 70 4e |Resource|(OldMapN|
|00002e90| 75 6d 29 3b 09 2f 2a 20 | 4d 61 6b 65 20 53 55 52 |um);./* |Make SUR|
|00002ea0| 45 20 69 74 27 73 20 70 | 75 72 67 65 64 21 20 2a |E it's p|urged! *|
|00002eb0| 2f 0d 09 09 4f 6c 64 4d | 61 70 4e 75 6d 20 3d 20 |/...OldM|apNum = |
|00002ec0| 30 3b 09 09 09 2f 2a 20 | 4e 6f 74 68 69 6e 67 20 |0;.../* |Nothing |
|00002ed0| 6c 6f 61 64 65 64 20 2a | 2f 0d 09 09 4d 61 70 50 |loaded *|/...MapP|
|00002ee0| 74 72 20 3d 20 30 3b 09 | 09 09 09 2f 2a 20 4e 6f |tr = 0;.|.../* No|
|00002ef0| 20 64 61 74 61 20 61 76 | 61 69 6c 61 62 6c 65 20 | data av|ailable |
|00002f00| 2a 2f 0d 09 7d 0d 09 69 | 20 3d 20 30 3b 0d 09 64 |*/..}..i| = 0;..d|
|00002f10| 6f 20 7b 0d 09 09 69 66 | 20 28 41 72 74 44 61 74 |o {...if| (ArtDat|
|00002f20| 61 5b 69 5d 29 20 7b 0d | 09 09 09 46 72 65 65 53 |a[i]) {.|...FreeS|
|00002f30| 6f 6d 65 4d 65 6d 28 41 | 72 74 44 61 74 61 5b 69 |omeMem(A|rtData[i|
|00002f40| 5d 29 3b 09 2f 2a 20 52 | 65 6c 65 61 73 65 20 74 |]);./* R|elease t|
|00002f50| 68 65 20 77 61 6c 6c 20 | 61 72 74 20 2a 2f 0d 09 |he wall |art */..|
|00002f60| 09 09 41 72 74 44 61 74 | 61 5b 69 5d 20 3d 20 30 |..ArtDat|a[i] = 0|
|00002f70| 3b 0d 09 09 7d 0d 09 7d | 20 77 68 69 6c 65 20 28 |;...}..}| while (|
|00002f80| 2b 2b 69 3c 36 34 29 3b | 09 09 09 09 2f 2a 20 41 |++i<64);|..../* A|
|00002f90| 6c 6c 20 77 61 6c 6c 73 | 20 64 6f 6e 65 3f 20 2a |ll walls| done? *|
|00002fa0| 2f 0d 09 69 20 3d 20 31 | 3b 0d 09 64 6f 20 7b 0d |/..i = 1|;..do {.|
|00002fb0| 09 09 69 66 20 28 53 70 | 72 69 74 65 41 72 72 61 |..if (Sp|riteArra|
|00002fc0| 79 5b 69 5d 29 20 7b 09 | 09 09 2f 2a 20 49 73 20 |y[i]) {.|../* Is |
|00002fd0| 74 68 69 73 20 73 70 72 | 69 74 65 20 6c 6f 61 64 |this spr|ite load|
|00002fe0| 65 64 3f 20 2a 2f 0d 09 | 09 09 46 72 65 65 53 6f |ed? */..|..FreeSo|
|00002ff0| 6d 65 4d 65 6d 28 53 70 | 72 69 74 65 41 72 72 61 |meMem(Sp|riteArra|
|00003000| 79 5b 69 5d 29 3b 09 2f | 2a 20 52 65 6c 65 61 73 |y[i]);./|* Releas|
|00003010| 65 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 2a 2f 0d |e the me|mory */.|
|00003020| 09 09 09 53 70 72 69 74 | 65 41 72 72 61 79 5b 69 |...Sprit|eArray[i|
|00003030| 5d 20 3d 20 30 3b 0d 09 | 09 7d 0d 09 7d 20 77 68 |] = 0;..|.}..} wh|
|00003040| 69 6c 65 20 28 2b 2b 69 | 3c 53 5f 4c 41 53 54 4f |ile (++i|<S_LASTO|
|00003050| 4e 45 29 3b 09 09 09 2f | 2a 20 41 6c 6c 20 64 6f |NE);.../|* All do|
|00003060| 6e 65 3f 20 2a 2f 0d 7d | 0d 0d 2f 2a 2a 2a 2a 2a |ne? */.}|../*****|
|00003070| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003080| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 09 |********|*****...|
|00003090| 4c 6f 61 64 20 61 6e 64 | 20 69 6e 69 74 69 61 6c |Load and| initial|
|000030a0| 69 7a 65 20 65 76 65 72 | 79 74 68 69 6e 67 20 66 |ize ever|ything f|
|000030b0| 6f 72 20 63 75 72 72 65 | 6e 74 20 67 61 6d 65 20 |or curre|nt game |
|000030c0| 6c 65 76 65 6c 0d 09 0d | 09 53 70 61 77 6e 6c 69 |level...|.Spawnli|
|000030d0| 73 74 20 30 2d 28 6e 75 | 6d 75 73 61 62 6c 65 2d |st 0-(nu|musable-|
|000030e0| 31 29 20 61 72 65 20 74 | 68 65 20 75 73 61 62 6c |1) are t|he usabl|
|000030f0| 65 20 28 64 6f 6f 72 2f | 70 75 73 68 77 61 6c 6c |e (door/|pushwall|
|00003100| 29 20 73 70 61 77 6e 20 | 6f 62 6a 65 63 74 73 0d |) spawn |objects.|
|00003110| 09 50 6f 6c 79 73 65 67 | 73 20 30 2d 28 6e 75 6d |.Polyseg|s 0-(num|
|00003120| 70 75 73 68 77 61 6c 6c | 73 2d 31 29 20 61 72 65 |pushwall|s-1) are|
|00003130| 20 66 6f 75 72 20 73 69 | 64 65 64 20 70 75 73 68 | four si|ded push|
|00003140| 77 61 6c 6c 20 73 65 67 | 73 0d 09 0d 2a 2a 2a 2a |wall seg|s...****|
|00003150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003160| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2f 0d |********|******/.|
|00003170| 0d 42 6f 6f 6c 65 61 6e | 20 53 65 74 75 70 47 61 |.Boolean| SetupGa|
|00003180| 6d 65 4c 65 76 65 6c 28 | 76 6f 69 64 29 0d 7b 0d |meLevel(|void).{.|
|00003190| 09 42 79 74 65 20 2a 73 | 72 63 3b 0d 09 57 6f 72 |.Byte *s|rc;..Wor|
|000031a0| 64 20 2a 64 65 73 74 3b | 0d 09 57 6f 72 64 20 74 |d *dest;|..Word t|
|000031b0| 69 6c 65 3b 0d 09 57 6f | 72 64 20 43 6f 75 6e 74 |ile;..Wo|rd Count|
|000031c0| 3b 0d 09 0d 2f 2a 20 63 | 6c 65 61 72 20 63 6f 75 |;.../* c|lear cou|
|000031d0| 6e 74 73 2a 2f 0d 0d 09 | 67 61 6d 65 73 74 61 74 |nts*/...|gamestat|
|000031e0| 65 2e 73 65 63 72 65 74 | 74 6f 74 61 6c 3d 30 3b |e.secret|total=0;|
|000031f0| 09 09 2f 2a 20 4e 6f 20 | 73 65 63 72 65 74 20 69 |../* No |secret i|
|00003200| 74 65 6d 73 20 66 6f 75 | 6e 64 20 2a 2f 0d 09 67 |tems fou|nd */..g|
|00003210| 61 6d 65 73 74 61 74 65 | 2e 6b 69 6c 6c 74 6f 74 |amestate|.killtot|
|00003220| 61 6c 3d 30 3b 09 09 09 | 2f 2a 20 4e 6f 6f 6e 65 |al=0;...|/* Noone|
|00003230| 20 6b 69 6c 6c 65 64 20 | 2a 2f 0d 09 67 61 6d 65 | killed |*/..game|
|00003240| 73 74 61 74 65 2e 74 72 | 65 61 73 75 72 65 74 6f |state.tr|easureto|
|00003250| 74 61 6c 3d 30 3b 09 09 | 2f 2a 20 4e 6f 20 74 72 |tal=0;..|/* No tr|
|00003260| 65 61 73 75 72 65 20 66 | 6f 75 6e 64 20 2a 2f 0d |easure f|ound */.|
|00003270| 09 67 61 6d 65 73 74 61 | 74 65 2e 73 65 63 72 65 |.gamesta|te.secre|
|00003280| 74 63 6f 75 6e 74 3d 30 | 3b 09 09 2f 2a 20 4e 6f |tcount=0|;../* No|
|00003290| 20 73 65 63 72 65 74 20 | 61 72 65 61 73 20 66 6f | secret |areas fo|
|000032a0| 75 6e 64 20 2a 2f 0d 09 | 67 61 6d 65 73 74 61 74 |und */..|gamestat|
|000032b0| 65 2e 6b 69 6c 6c 63 6f | 75 6e 74 3d 30 3b 09 09 |e.killco|unt=0;..|
|000032c0| 09 2f 2a 20 4e 6f 6f 6e | 65 20 74 6f 20 6b 69 6c |./* Noon|e to kil|
|000032d0| 6c 20 6f 6e 20 74 68 69 | 73 20 6c 65 76 65 6c 20 |l on thi|s level |
|000032e0| 2a 2f 0d 09 67 61 6d 65 | 73 74 61 74 65 2e 74 72 |*/..game|state.tr|
|000032f0| 65 61 73 75 72 65 63 6f | 75 6e 74 20 3d 20 30 3b |easureco|unt = 0;|
|00003300| 09 2f 2a 20 4e 6f 20 74 | 72 65 61 73 75 72 65 73 |./* No t|reasures|
|00003310| 20 6c 61 69 64 20 2a 2f | 0d 0d 2f 2a 20 4c 6f 61 | laid */|../* Loa|
|00003320| 64 20 61 20 6c 65 76 65 | 6c 20 2a 2f 0d 0d 09 52 |d a leve|l */...R|
|00003330| 65 6c 65 61 73 65 4d 61 | 70 28 29 3b 09 09 09 09 |eleaseMa|p();....|
|00003340| 2f 2a 20 46 72 65 65 20 | 75 70 20 61 6e 79 20 70 |/* Free |up any p|
|00003350| 72 65 76 69 6f 75 73 20 | 6d 61 70 20 2a 2f 0d 09 |revious |map */..|
|00003360| 4f 6c 64 4d 61 70 4e 75 | 6d 20 3d 20 28 4d 61 70 |OldMapNu|m = (Map|
|00003370| 4c 69 73 74 50 74 72 2d | 3e 4d 61 70 52 65 7a 4e |ListPtr-|>MapRezN|
|00003380| 75 6d 29 2b 67 61 6d 65 | 73 74 61 74 65 2e 6d 61 |um)+game|state.ma|
|00003390| 70 6f 6e 3b 09 2f 2a 20 | 57 68 69 63 68 20 6d 61 |pon;./* |Which ma|
|000033a0| 70 20 74 6f 20 6c 6f 61 | 64 20 2a 2f 0d 09 4d 61 |p to loa|d */..Ma|
|000033b0| 70 50 74 72 20 3d 20 4c | 6f 61 64 41 52 65 73 6f |pPtr = L|oadAReso|
|000033c0| 75 72 63 65 28 4f 6c 64 | 4d 61 70 4e 75 6d 29 3b |urce(Old|MapNum);|
|000033d0| 09 2f 2a 20 4c 6f 61 64 | 20 69 6e 20 74 68 65 20 |./* Load| in the |
|000033e0| 6d 61 70 20 2a 2f 0d 09 | 69 66 20 28 21 4d 61 70 |map */..|if (!Map|
|000033f0| 50 74 72 29 20 7b 0d 09 | 09 72 65 74 75 72 6e 20 |Ptr) {..|.return |
|00003400| 46 41 4c 53 45 3b 09 09 | 2f 2a 20 55 68 2e 2e 20 |FALSE;..|/* Uh.. |
|00003410| 79 65 61 68 2e 2e 2e 20 | 2a 2f 0d 09 7d 0d 09 44 |yeah... |*/..}..D|
|00003420| 72 61 77 50 73 79 63 68 | 65 64 28 31 29 3b 09 09 |rawPsych|ed(1);..|
|00003430| 2f 2a 20 46 69 72 73 74 | 20 73 74 61 67 65 20 64 |/* First| stage d|
|00003440| 6f 6e 65 20 2a 2f 0d 23 | 69 66 64 65 66 20 5f 5f |one */.#|ifdef __|
|00003450| 42 49 47 45 4e 44 49 41 | 4e 5f 5f 0d 09 4d 61 70 |BIGENDIA|N__..Map|
|00003460| 50 74 72 2d 3e 6e 75 6d | 73 70 61 77 6e 20 3d 20 |Ptr->num|spawn = |
|00003470| 53 77 61 70 55 53 68 6f | 72 74 28 4d 61 70 50 74 |SwapUSho|rt(MapPt|
|00003480| 72 2d 3e 6e 75 6d 73 70 | 61 77 6e 29 3b 09 2f 2a |r->numsp|awn);./*|
|00003490| 20 46 69 78 20 66 6f 72 | 20 36 38 30 30 30 20 6d | Fix for| 68000 m|
|000034a0| 61 63 68 69 6e 65 73 20 | 2a 2f 0d 09 4d 61 70 50 |achines |*/..MapP|
|000034b0| 74 72 2d 3e 73 70 61 77 | 6e 6c 69 73 74 6f 66 73 |tr->spaw|nlistofs|
|000034c0| 20 3d 20 53 77 61 70 55 | 53 68 6f 72 74 28 4d 61 | = SwapU|Short(Ma|
|000034d0| 70 50 74 72 2d 3e 73 70 | 61 77 6e 6c 69 73 74 6f |pPtr->sp|awnlisto|
|000034e0| 66 73 29 3b 0d 09 4d 61 | 70 50 74 72 2d 3e 6e 75 |fs);..Ma|pPtr->nu|
|000034f0| 6d 6e 6f 64 65 73 20 3d | 20 53 77 61 70 55 53 68 |mnodes =| SwapUSh|
|00003500| 6f 72 74 28 4d 61 70 50 | 74 72 2d 3e 6e 75 6d 6e |ort(MapP|tr->numn|
|00003510| 6f 64 65 73 29 3b 0d 09 | 4d 61 70 50 74 72 2d 3e |odes);..|MapPtr->|
|00003520| 6e 6f 64 65 6c 69 73 74 | 6f 66 73 20 3d 20 53 77 |nodelist|ofs = Sw|
|00003530| 61 70 55 53 68 6f 72 74 | 28 4d 61 70 50 74 72 2d |apUShort|(MapPtr-|
|00003540| 3e 6e 6f 64 65 6c 69 73 | 74 6f 66 73 29 3b 0d 23 |>nodelis|tofs);.#|
|00003550| 65 6e 64 69 66 0d 09 6e | 75 6d 73 74 61 74 69 63 |endif..n|umstatic|
|00003560| 73 20 3d 20 30 3b 09 09 | 2f 2a 20 43 6c 65 61 72 |s = 0;..|/* Clear|
|00003570| 20 6f 75 74 20 74 68 65 | 20 73 74 61 74 69 63 20 | out the| static |
|00003580| 61 72 72 61 79 20 2a 2f | 0d 09 6e 75 6d 64 6f 6f |array */|..numdoo|
|00003590| 72 73 20 3d 20 30 3b 09 | 09 2f 2a 20 43 6c 65 61 |rs = 0;.|./* Clea|
|000035a0| 72 20 6f 75 74 20 74 68 | 65 20 64 6f 6f 72 20 61 |r out th|e door a|
|000035b0| 72 72 61 79 20 2a 2f 0d | 09 6e 75 6d 61 63 74 6f |rray */.|.numacto|
|000035c0| 72 73 20 3d 20 31 3b 09 | 09 2f 2a 20 70 6c 61 79 |rs = 1;.|./* play|
|000035d0| 65 72 20 68 61 73 20 73 | 70 6f 74 20 30 2a 2f 0d |er has s|pot 0*/.|
|000035e0| 09 6e 75 6d 6d 69 73 73 | 69 6c 65 73 20 3d 20 30 |.nummiss|iles = 0|
|000035f0| 3b 09 2f 2a 20 43 6c 65 | 61 72 20 6f 75 74 20 74 |;./* Cle|ar out t|
|00003600| 68 65 20 6d 69 73 73 69 | 6c 65 20 61 72 72 61 79 |he missi|le array|
|00003610| 20 2a 2f 0d 09 0d 2f 2a | 20 65 78 70 61 6e 64 20 | */.../*| expand |
|00003620| 74 68 65 20 62 79 74 65 | 20 77 69 64 74 68 20 6d |the byte| width m|
|00003630| 61 70 20 74 6f 20 77 6f | 72 64 20 77 69 64 74 68 |ap to wo|rd width|
|00003640| 2a 2f 0d 0d 09 6d 65 6d | 73 65 74 28 57 61 6c 6c |*/...mem|set(Wall|
|00003650| 48 69 74 73 2c 30 2c 73 | 69 7a 65 6f 66 28 57 61 |Hits,0,s|izeof(Wa|
|00003660| 6c 6c 48 69 74 73 29 29 | 3b 0d 09 73 72 63 20 3d |llHits))|;..src =|
|00003670| 20 26 4d 61 70 50 74 72 | 2d 3e 74 69 6c 65 6d 61 | &MapPtr|->tilema|
|00003680| 70 5b 30 5d 5b 30 5d 3b | 0d 09 64 65 73 74 20 3d |p[0][0];|..dest =|
|00003690| 20 26 74 69 6c 65 6d 61 | 70 5b 30 5d 5b 30 5d 3b | &tilema|p[0][0];|
|000036a0| 0d 09 43 6f 75 6e 74 20 | 3d 20 30 3b 0d 09 64 6f |..Count |= 0;..do|
|000036b0| 20 7b 09 0d 09 09 74 69 | 6c 65 20 3d 20 73 72 63 | {....ti|le = src|
|000036c0| 5b 43 6f 75 6e 74 5d 3b | 09 09 2f 2a 20 47 65 74 |[Count];|../* Get|
|000036d0| 20 74 68 65 20 62 79 74 | 65 20 74 69 6c 65 20 2a | the byt|e tile *|
|000036e0| 2f 0d 09 09 69 66 20 28 | 74 69 6c 65 20 26 20 54 |/...if (|tile & T|
|000036f0| 49 5f 42 4c 4f 43 4b 4d | 4f 56 45 29 20 7b 0d 09 |I_BLOCKM|OVE) {..|
|00003700| 09 09 74 69 6c 65 20 7c | 3d 20 54 49 5f 42 4c 4f |..tile ||= TI_BLO|
|00003710| 43 4b 53 49 47 48 54 3b | 09 2f 2a 20 4d 61 72 6b |CKSIGHT;|./* Mark|
|00003720| 20 61 73 20 62 6c 6f 63 | 6b 69 6e 67 20 6d 79 20 | as bloc|king my |
|00003730| 73 69 67 68 74 20 2a 2f | 0d 09 09 09 57 61 6c 6c |sight */|....Wall|
|00003740| 48 69 74 73 5b 28 74 69 | 6c 65 2d 31 29 26 30 78 |Hits[(ti|le-1)&0x|
|00003750| 31 46 5d 3d 31 3b 0d 09 | 09 7d 0d 09 09 64 65 73 |1F]=1;..|.}...des|
|00003760| 74 5b 43 6f 75 6e 74 5d | 20 3d 20 74 69 6c 65 3b |t[Count]| = tile;|
|00003770| 09 09 2f 2a 20 53 61 76 | 65 20 74 68 65 20 6e 65 |../* Sav|e the ne|
|00003780| 77 20 74 69 6c 65 20 2a | 2f 0d 09 7d 20 77 68 69 |w tile *|/..} whi|
|00003790| 6c 65 20 28 2b 2b 43 6f | 75 6e 74 3c 4d 41 50 53 |le (++Co|unt<MAPS|
|000037a0| 49 5a 45 2a 4d 41 50 53 | 49 5a 45 29 3b 0d 0d 09 |IZE*MAPS|IZE);...|
|000037b0| 0d 2f 2a 20 6c 65 74 20 | 74 68 65 20 72 65 6e 64 |./* let |the rend|
|000037c0| 65 72 69 6e 67 20 65 6e | 67 69 6e 65 20 6b 6e 6f |ering en|gine kno|
|000037d0| 77 20 61 62 6f 75 74 20 | 74 68 65 20 6e 65 77 20 |w about |the new |
|000037e0| 6d 61 70 2a 2f 0d 0d 09 | 4e 65 77 4d 61 70 28 29 |map*/...|NewMap()|
|000037f0| 3b 09 09 2f 2a 20 53 65 | 74 20 74 68 65 20 76 61 |;../* Se|t the va|
|00003800| 72 69 61 62 6c 65 73 20 | 2a 2f 0d 09 44 72 61 77 |riables |*/..Draw|
|00003810| 50 73 79 63 68 65 64 28 | 32 29 3b 09 2f 2a 20 53 |Psyched(|2);./* S|
|00003820| 65 63 6f 6e 64 20 73 74 | 61 67 65 20 2a 2f 0d 09 |econd st|age */..|
|00003830| 69 66 20 28 21 4c 6f 61 | 64 57 61 6c 6c 41 72 74 |if (!Loa|dWallArt|
|00003840| 28 29 29 20 7b 09 2f 2a | 20 47 65 74 20 74 68 65 |()) {./*| Get the|
|00003850| 20 77 61 6c 6c 20 73 68 | 61 70 65 73 20 2a 2f 0d | wall sh|apes */.|
|00003860| 09 09 72 65 74 75 72 6e | 20 46 41 4c 53 45 3b 0d |..return| FALSE;.|
|00003870| 09 7d 0d 2f 2a 20 6d 61 | 70 2e 74 69 6c 65 6d 61 |.}./* ma|p.tilema|
|00003880| 70 20 69 73 20 6e 6f 77 | 20 75 73 65 64 20 74 6f |p is now| used to|
|00003890| 20 68 6f 6c 64 20 61 63 | 74 6f 72 20 6e 75 6d 62 | hold ac|tor numb|
|000038a0| 65 72 73 20 69 66 20 74 | 68 65 20 54 49 5f 41 43 |ers if t|he TI_AC|
|000038b0| 54 4f 52 20 62 69 74 20 | 69 73 20 73 65 74 20 69 |TOR bit |is set i|
|000038c0| 6e 20 0d 09 74 68 65 20 | 77 6f 72 64 20 74 69 6c |n ..the |word til|
|000038d0| 65 6d 61 70 2a 2f 0d 09 | 0d 09 6d 65 6d 73 65 74 |emap*/..|..memset|
|000038e0| 28 57 61 6c 6c 48 69 74 | 73 2c 30 2c 73 69 7a 65 |(WallHit|s,0,size|
|000038f0| 6f 66 28 57 61 6c 6c 48 | 69 74 73 29 29 3b 09 2f |of(WallH|its));./|
|00003900| 2a 20 49 6e 69 74 20 74 | 68 65 20 77 61 6c 6c 20 |* Init t|he wall |
|00003910| 74 61 62 6c 65 20 2a 2f | 0d 09 43 6f 75 6e 74 20 |table */|..Count |
|00003920| 3d 20 31 3b 0d 09 64 6f | 20 7b 0d 09 09 57 61 6c |= 1;..do| {...Wal|
|00003930| 6c 48 69 74 73 5b 43 6f | 75 6e 74 5d 20 3d 20 31 |lHits[Co|unt] = 1|
|00003940| 3b 09 2f 2a 20 46 6f 72 | 63 65 20 74 68 65 20 70 |;./* For|ce the p|
|00003950| 65 72 6d 61 6e 65 6e 74 | 20 73 70 72 69 74 65 73 |ermanent| sprites|
|00003960| 20 74 6f 20 6c 6f 61 64 | 20 2a 2f 0d 09 7d 20 77 | to load| */..} w|
|00003970| 68 69 6c 65 20 28 2b 2b | 43 6f 75 6e 74 3c 53 5f |hile (++|Count<S_|
|00003980| 56 49 43 54 4f 52 59 2b | 31 29 3b 0d 09 53 70 61 |VICTORY+|1);..Spa|
|00003990| 77 6e 54 68 69 6e 67 73 | 28 29 3b 09 2f 2a 20 43 |wnThings|();./* C|
|000039a0| 72 65 61 74 65 20 61 6c | 6c 20 74 68 65 20 63 68 |reate al|l the ch|
|000039b0| 61 72 61 63 74 65 72 73 | 20 69 6e 20 74 68 65 20 |aracters| in the |
|000039c0| 67 61 6d 65 20 6c 65 76 | 65 6c 20 2a 2f 0d 09 72 |game lev|el */..r|
|000039d0| 65 74 75 72 6e 20 4c 6f | 61 64 53 70 72 69 74 65 |eturn Lo|adSprite|
|000039e0| 41 72 74 28 29 3b 09 2f | 2a 20 4c 6f 61 64 20 69 |Art();./|* Load i|
|000039f0| 6e 20 74 68 65 20 73 70 | 72 69 74 65 20 61 72 74 |n the sp|rite art|
|00003a00| 20 2a 2f 0d 7d 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a | */.}../|********|
|00003a10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003a20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 09 4c |********|****...L|
|00003a30| 6f 61 64 20 69 6e 20 61 | 20 73 69 6e 67 6c 65 20 |oad in a| single |
|00003a40| 77 61 6c 6c 20 73 68 61 | 70 65 0d 0d 2a 2a 2a 2a |wall sha|pe..****|
|00003a50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003a60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003a70| 2f 0d 0d 73 74 61 74 69 | 63 20 42 6f 6f 6c 65 61 |/..stati|c Boolea|
|00003a80| 6e 20 4c 6f 61 64 57 61 | 6c 6c 53 68 61 70 65 28 |n LoadWa|llShape(|
|00003a90| 57 6f 72 64 20 49 6e 64 | 65 78 2c 42 79 74 65 20 |Word Ind|ex,Byte |
|00003aa0| 2a 44 61 72 6b 50 74 72 | 29 0d 7b 0d 09 42 79 74 |*DarkPtr|).{..Byt|
|00003ab0| 65 20 2a 57 61 6c 6c 50 | 74 72 3b 0d 09 42 79 74 |e *WallP|tr;..Byt|
|00003ac0| 65 20 2a 42 75 66 66 65 | 72 3b 0d 09 57 6f 72 64 |e *Buffe|r;..Word|
|00003ad0| 20 57 61 6c 6c 56 61 6c | 3b 0d 09 57 6f 72 64 20 | WallVal|;..Word |
|00003ae0| 6a 3b 0d 09 0d 09 42 75 | 66 66 65 72 20 3d 20 41 |j;....Bu|ffer = A|
|00003af0| 6c 6c 6f 63 53 6f 6d 65 | 4d 65 6d 28 30 78 34 30 |llocSome|Mem(0x40|
|00003b00| 30 30 29 3b 09 09 2f 2a | 20 47 65 74 20 6d 65 6d |00);../*| Get mem|
|00003b10| 6f 72 79 20 66 6f 72 20 | 77 61 6c 6c 20 2a 2f 0d |ory for |wall */.|
|00003b20| 09 69 66 20 28 21 42 75 | 66 66 65 72 29 20 7b 0d |.if (!Bu|ffer) {.|
|00003b30| 09 09 72 65 74 75 72 6e | 20 46 41 4c 53 45 3b 0d |..return| FALSE;.|
|00003b40| 09 7d 0d 09 57 61 6c 6c | 56 61 6c 20 3d 20 57 61 |.}..Wall|Val = Wa|
|00003b50| 6c 6c 4c 69 73 74 50 74 | 72 5b 49 6e 64 65 78 2b |llListPt|r[Index+|
|00003b60| 31 5d 3b 09 09 2f 2a 20 | 57 68 69 63 68 20 72 65 |1];../* |Which re|
|00003b70| 73 6f 75 72 63 65 20 69 | 73 20 69 74 3f 20 2a 2f |source i|s it? */|
|00003b80| 0d 09 57 61 6c 6c 50 74 | 72 20 3d 20 4c 6f 61 64 |..WallPt|r = Load|
|00003b90| 41 52 65 73 6f 75 72 63 | 65 28 57 61 6c 6c 56 61 |AResourc|e(WallVa|
|00003ba0| 6c 26 30 78 33 66 66 66 | 29 3b 09 2f 2a 20 4c 6f |l&0x3fff|);./* Lo|
|00003bb0| 61 64 20 74 68 65 20 73 | 68 61 70 65 20 2a 2f 0d |ad the s|hape */.|
|00003bc0| 09 69 66 20 28 21 57 61 | 6c 6c 50 74 72 29 20 7b |.if (!Wa|llPtr) {|
|00003bd0| 0d 09 09 46 72 65 65 53 | 6f 6d 65 4d 65 6d 28 42 |...FreeS|omeMem(B|
|00003be0| 75 66 66 65 72 29 3b 0d | 09 09 72 65 74 75 72 6e |uffer);.|..return|
|00003bf0| 20 46 41 4c 53 45 3b 0d | 09 7d 0d 09 44 4c 5a 53 | FALSE;.|.}..DLZS|
|00003c00| 53 28 42 75 66 66 65 72 | 2c 57 61 6c 6c 50 74 72 |S(Buffer|,WallPtr|
|00003c10| 2c 30 78 34 30 30 30 29 | 3b 09 2f 2a 20 44 65 63 |,0x4000)|;./* Dec|
|00003c20| 6f 6d 70 72 65 73 73 20 | 69 74 20 2a 2f 0d 09 69 |ompress |it */..i|
|00003c30| 66 20 28 57 61 6c 6c 56 | 61 6c 20 26 20 30 78 38 |f (WallV|al & 0x8|
|00003c40| 30 30 30 29 20 7b 09 09 | 2f 2a 20 44 6f 20 49 20 |000) {..|/* Do I |
|00003c50| 6e 65 65 64 20 74 6f 20 | 64 61 72 6b 65 6e 20 69 |need to |darken i|
|00003c60| 74 3f 20 2a 2f 0d 09 09 | 6a 20 3d 20 30 3b 0d 09 |t? */...|j = 0;..|
|00003c70| 09 64 6f 20 7b 0d 09 09 | 09 42 75 66 66 65 72 5b |.do {...|.Buffer[|
|00003c80| 6a 5d 20 3d 20 44 61 72 | 6b 50 74 72 5b 42 75 66 |j] = Dar|kPtr[Buf|
|00003c90| 66 65 72 5b 6a 5d 5d 3b | 09 2f 2a 20 55 73 65 20 |fer[j]];|./* Use |
|00003ca0| 61 20 6c 6f 6f 6b 75 70 | 20 74 61 62 6c 65 20 74 |a lookup| table t|
|00003cb0| 6f 20 64 61 72 6b 65 6e | 20 69 74 20 2a 2f 0d 09 |o darken| it */..|
|00003cc0| 09 7d 20 77 68 69 6c 65 | 20 28 2b 2b 6a 3c 30 78 |.} while| (++j<0x|
|00003cd0| 34 30 30 30 29 3b 0d 09 | 7d 0d 09 41 72 74 44 61 |4000);..|}..ArtDa|
|00003ce0| 74 61 5b 49 6e 64 65 78 | 5d 20 3d 20 42 75 66 66 |ta[Index|] = Buff|
|00003cf0| 65 72 3b 09 09 09 2f 2a | 20 53 61 76 65 20 74 68 |er;.../*| Save th|
|00003d00| 65 20 70 6f 69 6e 74 65 | 72 20 2a 2f 0d 09 52 65 |e pointe|r */..Re|
|00003d10| 6c 65 61 73 65 41 52 65 | 73 6f 75 72 63 65 28 57 |leaseARe|source(W|
|00003d20| 61 6c 6c 56 61 6c 26 30 | 78 33 66 66 66 29 3b 09 |allVal&0|x3fff);.|
|00003d30| 2f 2a 20 50 75 72 67 65 | 20 74 68 65 20 64 61 74 |/* Purge| the dat|
|00003d40| 61 20 2a 2f 0d 09 72 65 | 74 75 72 6e 20 54 52 55 |a */..re|turn TRU|
|00003d50| 45 3b 0d 7d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |E;.}../*|********|
|00003d60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003d70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 09 4c 6f |********|***...Lo|
|00003d80| 61 64 20 69 6e 20 61 6c | 6c 20 74 68 65 20 77 61 |ad in al|l the wa|
|00003d90| 6c 6c 20 61 72 74 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |ll art..|********|
|00003da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 57 |********|****/..W|
|00003dc0| 6f 72 64 20 4c 6f 61 64 | 57 61 6c 6c 41 72 74 28 |ord Load|WallArt(|
|00003dd0| 76 6f 69 64 29 0d 7b 0d | 09 57 6f 72 64 20 69 3b |void).{.|.Word i;|
|00003de0| 0d 09 57 6f 72 64 20 6a | 3b 0d 09 57 6f 72 64 20 |..Word j|;..Word |
|00003df0| 52 65 74 56 61 6c 3b 0d | 09 42 79 74 65 20 2a 44 |RetVal;.|.Byte *D|
|00003e00| 61 72 6b 50 74 72 3b 0d | 09 0d 09 52 65 74 56 61 |arkPtr;.|...RetVa|
|00003e10| 6c 20 3d 20 46 41 4c 53 | 45 3b 0d 09 44 61 72 6b |l = FALS|E;..Dark|
|00003e20| 50 74 72 20 3d 20 4c 6f | 61 64 41 52 65 73 6f 75 |Ptr = Lo|adAResou|
|00003e30| 72 63 65 28 4d 79 44 61 | 72 6b 44 61 74 61 29 3b |rce(MyDa|rkData);|
|00003e40| 09 09 2f 2a 20 47 65 74 | 20 6d 79 20 64 61 72 6b |../* Get| my dark|
|00003e50| 65 6e 20 74 61 62 6c 65 | 20 2a 2f 0d 09 69 20 3d |en table| */..i =|
|00003e60| 20 30 3b 0d 09 64 6f 20 | 7b 0d 09 09 69 66 20 28 | 0;..do |{...if (|
|00003e70| 57 61 6c 6c 48 69 74 73 | 5b 69 5d 29 20 7b 0d 09 |WallHits|[i]) {..|
|00003e80| 09 09 6a 20 3d 20 69 2a | 32 3b 0d 09 09 09 69 66 |..j = i*|2;....if|
|00003e90| 20 28 21 4c 6f 61 64 57 | 61 6c 6c 53 68 61 70 65 | (!LoadW|allShape|
|00003ea0| 28 6a 2c 44 61 72 6b 50 | 74 72 29 20 7c 7c 0d 09 |(j,DarkP|tr) ||..|
|00003eb0| 09 09 09 21 4c 6f 61 64 | 57 61 6c 6c 53 68 61 70 |...!Load|WallShap|
|00003ec0| 65 28 6a 2b 31 2c 44 61 | 72 6b 50 74 72 29 20 29 |e(j+1,Da|rkPtr) )|
|00003ed0| 20 7b 0d 09 09 09 09 67 | 6f 74 6f 20 41 62 6f 72 | {.....g|oto Abor|
|00003ee0| 74 3b 0d 09 09 09 7d 0d | 09 09 09 44 72 61 77 50 |t;....}.|...DrawP|
|00003ef0| 73 79 63 68 65 64 28 6a | 2b 32 29 3b 0d 09 09 7d |syched(j|+2);...}|
|00003f00| 20 0d 09 7d 20 77 68 69 | 6c 65 20 28 2b 2b 69 3c | ..} whi|le (++i<|
|00003f10| 32 39 29 3b 0d 09 69 20 | 3d 20 35 39 3b 0d 09 64 |29);..i |= 59;..d|
|00003f20| 6f 20 7b 0d 09 09 69 66 | 20 28 21 4c 6f 61 64 57 |o {...if| (!LoadW|
|00003f30| 61 6c 6c 53 68 61 70 65 | 28 69 2c 44 61 72 6b 50 |allShape|(i,DarkP|
|00003f40| 74 72 29 29 20 7b 0d 09 | 09 09 67 6f 74 6f 20 41 |tr)) {..|..goto A|
|00003f50| 62 6f 72 74 3b 0d 09 09 | 7d 0d 09 09 44 72 61 77 |bort;...|}...Draw|
|00003f60| 50 73 79 63 68 65 64 28 | 69 2b 32 29 3b 0d 09 7d |Psyched(|i+2);..}|
|00003f70| 20 77 68 69 6c 65 20 28 | 2b 2b 69 3c 36 34 29 3b | while (|++i<64);|
|00003f80| 0d 09 52 65 74 56 61 6c | 20 3d 20 54 52 55 45 3b |..RetVal| = TRUE;|
|00003f90| 0d 41 62 6f 72 74 3a 0d | 09 52 65 6c 65 61 73 65 |.Abort:.|.Release|
|00003fa0| 41 52 65 73 6f 75 72 63 | 65 28 4d 79 44 61 72 6b |AResourc|e(MyDark|
|00003fb0| 44 61 74 61 29 3b 0d 09 | 72 65 74 75 72 6e 20 52 |Data);..|return R|
|00003fc0| 65 74 56 61 6c 3b 09 09 | 09 2f 2a 20 4e 6f 20 65 |etVal;..|./* No e|
|00003fd0| 72 72 6f 72 73 20 2a 2f | 0d 7d 0d 0d 2f 2a 2a 2a |rrors */|.}../***|
|00003fe0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 4c 6f 61 64 20 |********|...Load |
|00004000| 69 6e 20 61 6c 6c 20 74 | 68 65 20 73 70 72 69 74 |in all t|he sprit|
|00004010| 65 73 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |es..****|********|
|00004020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2f |********|*******/|
|00004030| 0d 0d 57 6f 72 64 20 4c | 6f 61 64 53 70 72 69 74 |..Word L|oadSprit|
|00004040| 65 41 72 74 28 76 6f 69 | 64 29 0d 7b 0d 09 57 6f |eArt(voi|d).{..Wo|
|00004050| 72 64 20 69 3b 0d 09 57 | 6f 72 64 20 4c 65 6e 67 |rd i;..W|ord Leng|
|00004060| 74 68 3b 0d 09 42 79 74 | 65 20 2a 4d 79 50 74 72 |th;..Byt|e *MyPtr|
|00004070| 3b 0d 09 42 79 74 65 20 | 2a 4d 79 4e 65 77 50 74 |;..Byte |*MyNewPt|
|00004080| 72 3b 0d 09 0d 09 69 3d | 31 3b 0d 09 64 6f 20 7b |r;....i=|1;..do {|
|00004090| 0d 09 09 69 66 20 28 57 | 61 6c 6c 48 69 74 73 5b |...if (W|allHits[|
|000040a0| 69 5d 29 20 7b 0d 09 09 | 09 4d 79 50 74 72 20 3d |i]) {...|.MyPtr =|
|000040b0| 20 4c 6f 61 64 41 52 65 | 73 6f 75 72 63 65 28 69 | LoadARe|source(i|
|000040c0| 2b 28 34 32 38 2d 31 29 | 29 3b 09 2f 2a 20 47 65 |+(428-1)|);./* Ge|
|000040d0| 74 20 74 68 65 20 70 61 | 63 6b 65 64 20 66 69 6c |t the pa|cked fil|
|000040e0| 65 20 2a 2f 0d 09 09 09 | 69 66 20 28 21 4d 79 50 |e */....|if (!MyP|
|000040f0| 74 72 29 20 7b 0d 09 09 | 09 09 72 65 74 75 72 6e |tr) {...|..return|
|00004100| 20 46 41 4c 53 45 3b 0d | 09 09 09 7d 0d 09 09 09 | FALSE;.|...}....|
|00004110| 4c 65 6e 67 74 68 20 3d | 20 4d 79 50 74 72 5b 30 |Length =| MyPtr[0|
|00004120| 5d 3b 09 09 09 09 2f 2a | 20 47 65 74 20 74 68 65 |];..../*| Get the|
|00004130| 20 6c 65 6e 67 74 68 20 | 75 6e 70 61 63 6b 65 64 | length |unpacked|
|00004140| 20 2a 2f 0d 09 09 09 4c | 65 6e 67 74 68 20 7c 3d | */....L|ength |=|
|00004150| 20 4d 79 50 74 72 5b 31 | 5d 3c 3c 38 3b 0d 09 09 | MyPtr[1|]<<8;...|
|00004160| 09 4d 79 4e 65 77 50 74 | 72 20 3d 20 28 42 79 74 |.MyNewPt|r = (Byt|
|00004170| 65 20 2a 29 41 6c 6c 6f | 63 53 6f 6d 65 4d 65 6d |e *)Allo|cSomeMem|
|00004180| 28 4c 65 6e 67 74 68 29 | 3b 09 09 2f 2a 20 47 65 |(Length)|;../* Ge|
|00004190| 74 20 6d 65 6d 6f 72 79 | 20 66 6f 72 20 74 68 65 |t memory| for the|
|000041a0| 20 73 70 72 69 74 65 20 | 2a 2f 0d 09 09 09 69 66 | sprite |*/....if|
|000041b0| 20 28 21 4d 79 4e 65 77 | 50 74 72 29 20 7b 0d 09 | (!MyNew|Ptr) {..|
|000041c0| 09 09 09 52 65 6c 65 61 | 73 65 41 52 65 73 6f 75 |...Relea|seAResou|
|000041d0| 72 63 65 28 69 2b 28 34 | 32 38 2d 31 29 29 3b 09 |rce(i+(4|28-1));.|
|000041e0| 0d 09 09 09 09 72 65 74 | 75 72 6e 20 46 41 4c 53 |.....ret|urn FALS|
|000041f0| 45 3b 0d 09 09 09 7d 0d | 09 09 09 44 4c 5a 53 53 |E;....}.|...DLZSS|
|00004200| 28 4d 79 4e 65 77 50 74 | 72 2c 26 4d 79 50 74 72 |(MyNewPt|r,&MyPtr|
|00004210| 5b 32 5d 2c 4c 65 6e 67 | 74 68 29 3b 09 2f 2a 20 |[2],Leng|th);./* |
|00004220| 55 6e 70 61 63 6b 20 69 | 74 20 2a 2f 0d 09 09 09 |Unpack i|t */....|
|00004230| 53 70 72 69 74 65 41 72 | 72 61 79 5b 69 5d 20 3d |SpriteAr|ray[i] =|
|00004240| 20 4d 79 4e 65 77 50 74 | 72 3b 09 09 2f 2a 20 53 | MyNewPt|r;../* S|
|00004250| 61 76 65 20 74 68 65 20 | 70 6f 69 6e 74 65 72 20 |ave the |pointer |
|00004260| 2a 2f 0d 09 09 09 52 65 | 6c 65 61 73 65 41 52 65 |*/....Re|leaseARe|
|00004270| 73 6f 75 72 63 65 28 69 | 2b 28 34 32 38 2d 31 29 |source(i|+(428-1)|
|00004280| 29 3b 09 09 2f 2a 20 52 | 65 6c 65 61 73 65 20 74 |);../* R|elease t|
|00004290| 68 65 20 72 65 73 6f 75 | 72 63 65 20 2a 2f 0d 09 |he resou|rce */..|
|000042a0| 09 09 44 72 61 77 50 73 | 79 63 68 65 64 28 69 2b |..DrawPs|yched(i+|
|000042b0| 36 36 29 3b 0d 09 09 7d | 0d 09 7d 20 77 68 69 6c |66);...}|..} whil|
|000042c0| 65 20 28 2b 2b 69 3c 53 | 5f 4c 41 53 54 4f 4e 45 |e (++i<S|_LASTONE|
|000042d0| 29 3b 0d 09 44 72 61 77 | 50 73 79 63 68 65 64 28 |);..Draw|Psyched(|
|000042e0| 36 36 2b 53 5f 4c 41 53 | 54 4f 4e 45 29 3b 0d 09 |66+S_LAS|TONE);..|
|000042f0| 72 65 74 75 72 6e 20 54 | 52 55 45 3b 0d 7d 0d 00 |return T|RUE;.}..|
|00004300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00004310| 36 2b 38 3b 0d 0d 09 66 | 6f 72 20 28 73 79 3d 30 |6+8;...f|or (sy=0|
|00004320| 3b 73 79 3c 53 43 52 52 | 41 44 49 55 53 3b 73 79 |;sy<SCRR|ADIUS;sy|
|00004330| 07 4c 65 76 65 6c 2e 63 | 02 00 00 00 54 45 58 54 |.Level.c|....TEXT|
|00004340| 70 64 6f 73 01 00 00 68 | 00 40 00 00 00 00 0b c8 |pdos...h|.@......|
|00004350| 00 00 54 45 58 54 70 64 | 6f 73 01 00 00 68 00 40 |..TEXTpd|os...h.@|
|00004360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004370| 00 00 a9 61 c9 bc 00 00 | 42 7f 00 00 01 7e 0d 09 |...a....|B....~..|
|00004380| 09 09 09 62 72 65 61 6b | 3b 09 09 2f 2a 20 65 6e |...break|;../* en|
|00004390| 64 20 6f 66 20 72 6f 77 | 2a 2f 0d 09 09 09 6d 79 |d of row|*/....my|
|000043a0| 20 3d 20 2a 6d 61 70 2b | 2b 3b 0d 09 09 09 0d 2f | = *map+|+;...../|
|000043b0| 2a 20 71 75 61 64 20 30 | 2a 2f 0d 09 09 09 69 78 |* quad 0|*/....ix|
|000043c0| 20 3d 20 28 28 78 2b 6d | 78 29 3e 3e 33 29 26 36 | = ((x+m|x)>>3)&6|
|000043d0| 33 3b 0d 09 09 09 69 79 | 20 3d 20 28 28 79 2d 6d |3;....iy| = ((y-m|
|000043e0| 79 29 3e 3e 33 29 26 36 | 33 3b 0d 09 09 09 6f 66 |y)>>3)&6|3;....of|
|000043f0| 73 20 3d 20 28 53 43 52 | 52 41 44 49 55 53 2d 31 |s = (SCR|RADIUS-1|
|00004400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00004410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004420| 00 00 00 00 00 00 00 02 | 00 04 00 56 00 04 02 05 |........|...V....|
|00004430| 02 7c 00 56 00 04 02 05 | 02 7c b4 ad c8 ee 00 00 |.|.V....|.|......|
|00004440| 3d ea 00 00 3d ea 00 00 | 02 79 01 00 00 00 01 00 |=...=...|.y......|
|00004450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 17 0a a1 98 |...L...L|...2....|
|00004460| 03 0a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00004470| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+