home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / bb_exa.dms / in.adf / simonsdemos / dungeon.bb < prev    next >
Unknown  |  1995-10-19  |  3.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 20 4d 4f 4e 53 | 54 41 27 73 20 49 4e 20 |;.; MONS|TA's IN |
|00000010| 54 48 45 20 44 55 4e 47 | 45 4f 4e 20 62 79 20 53 |THE DUNG|EON by S|
|00000020| 69 6d 6f 6e 20 41 72 6d | 73 74 72 6f 6e 67 00 3b |imon Arm|strong.;|
|00000030| 00 00 80 33 20 2e 77 20 | 20 20 20 20 20 20 20 20 |...3 .w | |
|00000040| 20 20 20 3b 61 6c 6c 20 | 76 61 72 69 61 62 6c 65 | ;all |variable|
|00000050| 73 20 61 72 65 20 69 6e | 74 65 67 65 72 73 00 00 |s are in|tegers..|
|00000060| 63 6f 6e 73 6f 6c 65 3d | bc 0f 20 20 20 20 20 20 |console=|.. |
|00000070| 20 20 20 3b 6d 61 6b 65 | 20 74 72 75 65 20 74 6f | ;make| true to|
|00000080| 20 72 75 6e 20 6f 6e 20 | 73 74 64 20 63 6f 6e 73 | run on |std cons|
|00000090| 6f 6c 65 20 28 63 6c 69 | 29 00 77 69 64 74 68 3d |ole (cli|).width=|
|000000a0| 31 32 38 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |128 | |
|000000b0| 3b 73 74 61 6e 64 61 72 | 64 20 6d 61 70 20 73 69 |;standar|d map si|
|000000c0| 7a 65 20 61 73 20 69 6e | 20 65 64 69 74 6f 72 00 |ze as in| editor.|
|000000d0| 68 65 69 67 68 74 3d 36 | 34 00 73 69 7a 65 3d 77 |height=6|4.size=w|
|000000e0| 69 64 74 68 2a 68 65 69 | 67 68 74 00 64 69 73 70 |idth*hei|ght.disp|
|000000f0| 77 3d 33 32 00 64 69 73 | 70 68 3d 31 36 20 20 20 |w=32.dis|ph=16 |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 3b 64 69 73 70 | | ;disp|
|00000110| 6c 61 79 20 77 69 64 74 | 68 20 61 6e 64 20 68 65 |lay widt|h and he|
|00000120| 69 67 68 74 00 6d 61 70 | 24 3d 22 6d 61 70 31 22 |ight.map|$="map1"|
|00000130| 00 6e 75 6d 6d 6f 6e 73 | 74 65 72 73 3d 32 35 36 |.nummons|ters=256|
|00000140| 20 20 20 20 20 20 20 3b | 6d 61 78 69 6d 75 6d 20 | ;|maximum |
|00000150| 6e 75 6d 62 65 72 20 6f | 66 20 6d 6f 6e 73 74 65 |number o|f monste|
|00000160| 72 73 00 00 80 0b 20 63 | 6f 6e 73 6f 6c 65 00 20 |rs.... c|onsole. |
|00000170| 20 68 6f 6d 65 24 3d dc | 86 28 24 39 62 29 2b 22 | home$=.|.($9b)+"|
|00000180| 48 22 3a 6d 79 63 6c 73 | 24 3d 68 6f 6d 65 24 2b |H":mycls|$=home$+|
|00000190| dc 86 28 24 39 62 29 2b | 22 4a 22 20 3b 73 74 72 |..($9b)+|"J" ;str|
|000001a0| 69 6e 67 73 20 66 6f 72 | 20 63 6f 6e 73 6f 6c 65 |ings for| console|
|000001b0| 73 00 80 22 00 20 20 cf | 04 20 30 00 20 20 c5 01 |s..". .|. 0. ..|
|000001c0| 20 30 2c 32 30 2c 32 30 | 2c 32 37 30 2c 31 37 30 | 0,20,20|,270,170|
|000001d0| 2c 24 31 34 30 30 2c 22 | 4d 4f 4e 53 54 45 52 20 |,$1400,"|MONSTER |
|000001e0| 47 41 4d 45 22 2c 31 2c | 32 00 20 20 c5 11 20 30 |GAME",1,|2. .. 0|
|000001f0| 3a c5 12 20 30 00 80 c0 | 00 00 80 01 20 2e 6d 6f |:.. 0...|.... .mo|
|00000200| 6e 73 74 79 70 65 20 20 | 20 3b 74 68 65 20 6d 6f |nstype | ;the mo|
|00000210| 6e 73 74 65 72 20 6f 62 | 6a 65 63 74 00 20 20 78 |nster ob|ject. x|
|00000220| 2e 77 3a 79 2e 77 00 80 | 02 20 80 01 00 00 80 04 |.w:y.w..|. ......|
|00000230| 20 80 b3 20 6d 6f 6e 73 | 74 65 72 2e 6d 6f 6e 73 | .. mons|ter.mons|
|00000240| 74 79 70 65 28 6e 75 6d | 6d 6f 6e 73 74 65 72 73 |type(num|monsters|
|00000250| 29 20 20 3b 6c 6f 61 64 | 73 20 6f 66 20 6d 6f 6e |) ;load|s of mon|
|00000260| 73 74 65 72 73 21 00 00 | 80 04 20 63 24 28 34 29 |sters!..|.. c$(4)|
|00000270| 3a 63 24 28 30 29 3d dc | 86 28 33 32 29 3a 63 24 |:c$(0)=.|.(32):c$|
|00000280| 28 31 29 3d 22 2a 22 3a | 63 24 28 32 29 3d 22 4f |(1)="*":|c$(2)="O|
|00000290| 22 3a 63 24 28 33 29 3d | 22 4d 22 3a 63 24 28 34 |":c$(3)=|"M":c$(4|
|000002a0| 29 3d 22 42 22 00 00 80 | 04 20 6d 61 70 2e 62 28 |)="B"...|. map.b(|
|000002b0| 77 69 64 74 68 2d 31 2c | 68 65 69 67 68 74 2d 31 |width-1,|height-1|
|000002c0| 29 20 20 20 20 3b 73 74 | 61 6e 64 61 72 64 20 32 |) ;st|andard 2|
|000002d0| 44 20 61 72 72 61 79 20 | 66 6f 72 20 74 68 65 20 |D array |for the |
|000002e0| 6d 61 70 00 00 2e 6d 61 | 69 6e 67 61 6d 65 3a 00 |map...ma|ingame:.|
|000002f0| 20 20 74 75 72 6e 3d 30 | 3a 67 61 6d 65 6f 76 65 | turn=0|:gameove|
|00000300| 72 3d bc 0f 20 20 3b 72 | 65 73 65 74 20 67 61 6d |r=.. ;r|eset gam|
|00000310| 65 20 76 61 72 69 61 62 | 6c 65 73 00 20 20 6d 79 |e variab|les. my|
|00000320| 78 3d 31 30 3a 6d 79 79 | 3d 31 30 20 20 20 20 20 |x=10:myy|=10 |
|00000330| 20 20 20 20 20 3b 69 6e | 20 63 61 73 65 20 6e 6f | ;in| case no|
|00000340| 20 42 20 66 6f 75 6e 64 | 20 6f 6e 20 74 68 65 20 | B found| on the |
|00000350| 6d 61 70 00 20 20 80 06 | 20 72 65 61 64 6d 61 70 |map. ..| readmap|
|00000360| 20 20 20 20 20 20 20 20 | 20 20 3b 72 65 61 64 20 | | ;read |
|00000370| 66 69 6c 65 20 6d 61 70 | 24 20 69 6e 74 6f 20 6d |file map|$ into m|
|00000380| 61 70 20 61 72 72 61 79 | 00 20 20 80 06 20 77 65 |ap array|. .. we|
|00000390| 6c 63 6f 6d 65 20 20 20 | 20 20 20 20 20 20 20 3b |lcome | ;|
|000003a0| 64 6f 20 66 72 6f 6e 74 | 20 65 6e 64 00 20 20 80 |do front| end. .|
|000003b0| bb 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000003c0| 20 20 3b 6d 61 69 6e 20 | 6c 6f 6f 70 00 20 20 20 | ;main |loop. |
|000003d0| 20 80 06 20 64 72 61 77 | 6d 61 70 20 20 20 20 20 | .. draw|map |
|000003e0| 20 20 20 3b 72 65 66 72 | 65 73 68 20 64 69 73 70 | ;refr|esh disp|
|000003f0| 6c 61 79 00 20 20 20 20 | 80 06 20 79 6f 75 72 6d |lay. |.. yourm|
|00000400| 6f 76 65 20 20 20 20 20 | 20 20 3b 67 65 74 20 70 |ove | ;get p|
|00000410| 6c 61 79 65 72 27 73 20 | 6d 6f 76 65 00 20 20 20 |layer's |move. |
|00000420| 20 80 06 20 6d 6f 6e 73 | 74 65 72 6d 6f 76 65 20 | .. mons|termove |
|00000430| 20 20 20 3b 6d 6f 76 65 | 20 74 68 65 20 6d 6f 6e | ;move| the mon|
|00000440| 73 74 65 72 73 00 20 20 | 80 bc 20 67 61 6d 65 6f |sters. |.. gameo|
|00000450| 76 65 72 3d bc 0e 00 20 | 20 dd 81 20 22 50 4c 41 |ver=... | .. "PLA|
|00000460| 59 20 41 47 41 49 4e 3f | 20 28 59 2f 4e 29 22 00 |Y AGAIN?| (Y/N)".|
|00000470| 20 20 80 0b 20 dc 98 28 | dd 01 28 31 29 29 3d 22 | .. ..(|..(1))="|
|00000480| 59 22 20 80 21 20 80 05 | 20 6d 61 69 6e 67 61 6d |Y" .! ..| maingam|
|00000490| 65 00 20 20 80 02 00 00 | 2e 72 65 61 64 6d 61 70 |e. ....|.readmap|
|000004a0| 00 20 20 80 0b 20 be 11 | 28 30 2c 6d 61 70 24 29 |. .. ..|(0,map$)|
|000004b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004c0| 20 20 20 20 20 20 3b 69 | 66 20 66 69 6c 65 20 66 | ;i|f file f|
|000004d0| 6f 75 6e 64 00 20 20 20 | 20 be 14 20 30 2c 26 6d |ound. | .. 0,&m|
|000004e0| 61 70 28 30 2c 30 29 2c | 73 69 7a 65 3a be 02 20 |ap(0,0),|size:.. |
|000004f0| 30 20 20 20 3b 72 61 77 | 20 72 65 61 64 20 69 6e |0 ;raw| read in|
|00000500| 74 6f 20 61 72 72 61 79 | 00 20 20 20 20 c0 07 20 |to array|. .. |
|00000510| 6d 6f 6e 73 74 65 72 28 | 29 20 20 20 20 20 20 20 |monster(|) |
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 66 69 | | ;fi|
|00000530| 6e 64 20 74 68 65 20 6d | 6f 6e 73 74 65 72 73 21 |nd the m|onsters!|
|00000540| 00 20 20 20 20 80 16 20 | 78 3d 30 20 80 18 20 77 |. .. |x=0 .. w|
|00000550| 69 64 74 68 2d 31 3a 80 | 16 20 79 3d 30 20 80 18 |idth-1:.|. y=0 ..|
|00000560| 20 68 65 69 67 68 74 2d | 31 20 3b 61 6e 64 20 72 | height-|1 ;and r|
|00000570| 65 63 6f 72 64 20 61 6c | 6c 20 74 68 65 69 72 00 |ecord al|l their.|
|00000580| 20 20 20 20 20 20 80 0b | 20 6d 61 70 28 78 2c 79 | ..| map(x,y|
|00000590| 29 3d 33 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |)=3 | |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 3b 70 6f 73 69 | | ;posi|
|000005b0| 74 69 6f 6e 73 20 69 6e | 20 6c 69 73 74 00 20 20 |tions in| list. |
|000005c0| 20 20 20 20 20 20 80 0b | 20 c0 02 28 6d 6f 6e 73 | ..| ..(mons|
|000005d0| 74 65 72 28 29 29 20 80 | 21 20 6d 6f 6e 73 74 65 |ter()) .|! monste|
|000005e0| 72 28 29 5c 78 3d 78 2c | 79 00 20 20 20 20 20 20 |r()\x=x,|y. |
|000005f0| 80 c0 00 20 20 20 20 20 | 20 80 0b 20 6d 61 70 28 |... | .. map(|
|00000600| 78 2c 79 29 3d 34 20 80 | 21 20 6d 79 78 3d 78 3a |x,y)=4 .|! myx=x:|
|00000610| 6d 79 79 3d 79 20 3b 66 | 6f 75 6e 64 20 42 4d 61 |myy=y ;f|ound BMa|
|00000620| 6e 27 73 20 73 74 61 72 | 74 20 70 6f 73 69 74 69 |n's star|t positi|
|00000630| 6f 6e 21 00 20 20 20 20 | 80 17 20 79 2c 78 00 20 |on!. |.. y,x. |
|00000640| 20 80 22 00 20 20 20 20 | 80 02 20 20 3b 63 6f 75 | .". |.. ;cou|
|00000650| 6c 64 6e 27 74 20 66 69 | 6e 64 20 66 69 6c 65 20 |ldn't fi|nd file |
|00000660| 28 77 65 27 72 65 20 69 | 6e 20 74 68 65 20 77 72 |(we're i|n the wr|
|00000670| 6f 6e 67 20 64 69 72 65 | 63 74 6f 72 79 3f 29 00 |ong dire|ctory?).|
|00000680| 20 20 80 c0 00 20 20 80 | 07 00 00 2e 77 65 6c 63 | ... .|....welc|
|00000690| 6f 6d 65 3a 00 20 20 dd | 82 20 22 57 45 4c 43 4f |ome:. .|. "WELCO|
|000006a0| 4d 45 20 54 4f 20 54 48 | 45 20 44 55 4e 47 45 4f |ME TO TH|E DUNGEO|
|000006b0| 4e 21 22 00 20 20 dd 82 | 20 22 20 20 20 48 49 54 |N!". ..| " HIT|
|000006c0| 20 52 45 54 55 52 4e 20 | 54 4f 20 50 4c 41 59 20 | RETURN |TO PLAY |
|000006d0| 20 22 00 20 20 61 24 3d | dd 01 28 31 29 3a 80 07 | ". a$=|..(1):..|
|000006e0| 00 00 2e 6d 6f 6e 73 74 | 65 72 6d 6f 76 65 3a 00 |...monst|ermove:.|
|000006f0| 20 20 80 ca 20 6d 6f 6e | 73 74 65 72 28 29 00 20 | .. mon|ster(). |
|00000700| 20 c0 04 20 6d 6f 6e 73 | 74 65 72 28 29 00 20 20 | .. mons|ter(). |
|00000710| 80 0c 20 c0 03 28 6d 6f | 6e 73 74 65 72 28 29 29 |.. ..(mo|nster())|
|00000720| 00 20 20 20 20 6d 61 70 | 28 5c 78 2c 5c 79 29 3d |. map|(\x,\y)=|
|00000730| 30 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0 | |
|00000740| 20 20 20 3b 63 6c 65 61 | 72 20 63 75 72 72 65 6e | ;clea|r curren|
|00000750| 74 20 70 6f 73 20 6f 6e | 20 6d 61 70 00 20 20 20 |t pos on| map. |
|00000760| 20 64 78 3d bc 03 28 6d | 79 78 2d 5c 78 29 3a 64 | dx=..(m|yx-\x):d|
|00000770| 79 3d bc 03 28 6d 79 79 | 2d 5c 79 29 20 3b 63 61 |y=..(myy|-\y) ;ca|
|00000780| 6c 63 20 64 69 72 65 63 | 74 69 6f 6e 20 74 6f 20 |lc direc|tion to |
|00000790| 6d 6f 76 65 20 69 6e 00 | 20 20 20 20 6f 6c 64 78 |move in.| oldx|
|000007a0| 3d 5c 78 3a 6f 6c 64 79 | 3d 5c 79 20 20 20 20 20 |=\x:oldy|=\y |
|000007b0| 20 20 20 20 20 20 20 20 | 20 20 3b 72 65 6d 65 6d | | ;remem|
|000007c0| 62 65 72 20 6f 6c 64 20 | 70 6f 73 00 20 20 20 20 |ber old |pos. |
|000007d0| 80 0b 20 bc 07 28 32 29 | 3c 31 20 20 20 20 20 20 |.. ..(2)|<1 |
|000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 68 6f | | ;ho|
|000007f0| 6d 65 20 69 6e 20 6f 6e | 20 65 69 74 68 65 72 20 |me in on| either |
|00000800| 78 20 6f 72 20 79 20 70 | 72 69 6f 72 69 74 79 00 |x or y p|riority.|
|00000810| 20 20 20 20 20 20 80 0b | 20 64 78 3c 3e 30 20 80 | ..| dx<>0 .|
|00000820| 21 20 5c 78 2b 64 78 20 | 80 22 20 5c 79 2b 64 79 |! \x+dx |." \y+dy|
|00000830| 00 20 20 20 20 80 22 00 | 20 20 20 20 20 20 80 0b |. .".| ..|
|00000840| 20 64 79 3c 3e 30 20 80 | 21 20 5c 79 2b 64 79 20 | dy<>0 .|! \y+dy |
|00000850| 80 22 20 5c 78 2b 64 78 | 00 20 20 20 20 80 c0 00 |." \x+dx|. ...|
|00000860| 20 20 20 20 80 0e 20 6d | 61 70 28 5c 78 2c 5c 79 | .. m|ap(\x,\y|
|00000870| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |) | |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 3b 77 68 61 74 | | ;what|
|00000890| 73 20 69 6e 20 6e 65 77 | 20 70 6f 73 3f 00 20 20 |s in new| pos?. |
|000008a0| 20 20 20 20 80 0f 20 30 | 3a 6d 61 70 28 5c 78 2c | .. 0|:map(\x,|
|000008b0| 5c 79 29 3d 33 20 20 20 | 20 20 20 20 20 20 20 20 |\y)=3 | |
|000008c0| 20 20 20 20 20 20 20 20 | 20 20 20 3b 65 6d 70 74 | | ;empt|
|000008d0| 79 20 73 70 61 63 65 20 | 63 6f 6f 6c 21 00 20 20 |y space |cool!. |
|000008e0| 20 20 20 20 80 0f 20 31 | 3a 5c 78 3d 6f 6c 64 78 | .. 1|:\x=oldx|
|000008f0| 3a 5c 79 3d 6f 6c 64 79 | 3a 6d 61 70 28 5c 78 2c |:\y=oldy|:map(\x,|
|00000900| 5c 79 29 3d 33 20 20 20 | 20 20 20 3b 77 61 6c 6c |\y)=3 | ;wall|
|00000910| 20 62 61 63 6b 20 75 70 | 21 00 20 20 20 20 20 20 | back up|!. |
|00000920| 80 0f 20 32 3a 6d 61 70 | 28 5c 78 2c 5c 79 29 3d |.. 2:map|(\x,\y)=|
|00000930| 31 3a c0 05 20 6d 6f 6e | 73 74 65 72 28 29 20 20 |1:.. mon|ster() |
|00000940| 20 3b 64 6f 77 6e 20 61 | 20 68 6f 6c 65 21 00 20 | ;down a| hole!. |
|00000950| 20 20 20 20 20 80 0f 20 | 33 3a 5c 78 3d 6f 6c 64 | .. |3:\x=old|
|00000960| 78 3a 5c 79 3d 6f 6c 64 | 79 3a 6d 61 70 28 5c 78 |x:\y=old|y:map(\x|
|00000970| 2c 5c 79 29 3d 33 20 20 | 20 20 20 20 3b 61 6e 6f |,\y)=3 | ;ano|
|00000980| 74 68 65 72 20 6d 6f 6e | 73 74 65 72 21 00 20 20 |ther mon|ster!. |
|00000990| 20 20 20 20 80 0f 20 34 | 3a dd 82 20 22 48 41 20 | .. 4|:.. "HA |
|000009a0| 47 4f 54 43 48 41 21 22 | 3a 67 61 6d 65 6f 76 65 |GOTCHA!"|:gameove|
|000009b0| 72 3d bc 0e 20 3b 68 65 | 20 67 6f 74 20 6d 65 21 |r=.. ;he| got me!|
|000009c0| 00 20 20 20 20 80 02 20 | 80 0e 00 20 20 80 c1 00 |. .. |... ...|
|000009d0| 20 20 80 0b 20 80 89 20 | c0 0c 28 6d 6f 6e 73 74 | .. .. |..(monst|
|000009e0| 65 72 28 29 29 20 80 21 | 20 dd 82 20 22 53 55 43 |er()) .!| .. "SUC|
|000009f0| 43 45 53 53 21 22 3a 67 | 61 6d 65 6f 76 65 72 3d |CESS!":g|ameover=|
|00000a00| bc 0e 00 20 20 80 07 00 | 00 2e 79 6f 75 72 6d 6f |... ...|..yourmo|
|00000a10| 76 65 3a 00 20 20 74 75 | 72 6e 2b 31 3a dd 81 20 |ve:. tu|rn+1:.. |
|00000a20| 22 54 75 72 6e 20 23 22 | 2c 74 75 72 6e 2c 22 20 |"Turn #"|,turn," |
|00000a30| 28 55 2c 44 2c 4c 2c 52 | 20 6f 72 20 51 29 20 22 |(U,D,L,R| or Q) "|
|00000a40| 00 20 20 6d 61 70 28 6d | 79 78 2c 6d 79 79 29 3d |. map(m|yx,myy)=|
|00000a50| 30 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0 | |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|00000a70| 72 75 62 20 6f 75 74 20 | 6f 6c 64 20 70 6f 73 69 |rub out |old posi|
|00000a80| 74 69 6f 6e 00 20 20 80 | 0e 20 dc 98 28 dd 01 28 |tion. .|. ..(..(|
|00000a90| 31 29 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1)) | |
|00000aa0| 20 20 20 20 20 20 20 20 | 3b 65 64 69 74 24 3d 69 | |;edit$=i|
|00000ab0| 6e 70 75 74 00 20 20 20 | 20 80 0f 20 22 55 22 3a |nput. | .. "U":|
|00000ac0| 80 0b 20 6d 61 70 28 6d | 79 78 2c 6d 79 79 2d 31 |.. map(m|yx,myy-1|
|00000ad0| 29 3c 3e 31 20 80 21 20 | 6d 79 79 2d 31 20 20 20 |)<>1 .! |myy-1 |
|00000ae0| 3b 75 70 00 20 20 20 20 | 80 0f 20 22 44 22 3a 80 |;up. |.. "D":.|
|00000af0| 0b 20 6d 61 70 28 6d 79 | 78 2c 6d 79 79 2b 31 29 |. map(my|x,myy+1)|
|00000b00| 3c 3e 31 20 80 21 20 6d | 79 79 2b 31 20 20 20 3b |<>1 .! m|yy+1 ;|
|00000b10| 64 6f 77 6e 00 20 20 20 | 20 80 0f 20 22 4c 22 3a |down. | .. "L":|
|00000b20| 80 0b 20 6d 61 70 28 6d | 79 78 2d 31 2c 6d 79 79 |.. map(m|yx-1,myy|
|00000b30| 29 3c 3e 31 20 80 21 20 | 6d 79 78 2d 31 20 20 20 |)<>1 .! |myx-1 |
|00000b40| 3b 6c 65 66 74 00 20 20 | 20 20 80 0f 20 22 52 22 |;left. | .. "R"|
|00000b50| 3a 80 0b 20 6d 61 70 28 | 6d 79 78 2b 31 2c 6d 79 |:.. map(|myx+1,my|
|00000b60| 79 29 3c 3e 31 20 80 21 | 20 6d 79 78 2b 31 20 20 |y)<>1 .!| myx+1 |
|00000b70| 20 3b 72 69 67 68 74 00 | 20 20 20 20 80 0f 20 22 | ;right.| .. "|
|00000b80| 51 22 3a dd 81 20 22 42 | 59 45 20 4e 4f 57 22 3a |Q":.. "B|YE NOW":|
|00000b90| 80 02 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000ba0| 3b 71 75 69 74 00 20 20 | 80 02 20 80 0e 00 20 20 |;quit. |.. ... |
|00000bb0| 80 0b 20 6d 61 70 28 6d | 79 78 2c 6d 79 79 29 3d |.. map(m|yx,myy)=|
|00000bc0| 32 00 20 20 20 20 dd 82 | 20 22 41 52 52 52 52 52 |2. ..| "ARRRRR|
|00000bd0| 20 59 4f 55 20 46 45 4c | 4c 20 44 4f 57 4e 20 41 | YOU FEL|L DOWN A|
|00000be0| 20 48 4f 4c 45 21 22 3a | 67 61 6d 65 6f 76 65 72 | HOLE!":|gameover|
|00000bf0| 3d bc 0e 00 20 20 80 22 | 00 20 20 20 20 6d 61 70 |=... ."|. map|
|00000c00| 28 6d 79 78 2c 6d 79 79 | 29 3d 34 20 20 20 20 20 |(myx,myy|)=4 |
|00000c10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c20| 20 20 20 20 20 20 20 20 | 20 3b 70 6c 61 63 65 20 | | ;place |
|00000c30| 69 6e 20 6e 65 77 20 70 | 6f 73 69 74 69 6f 6e 00 |in new p|osition.|
|00000c40| 20 20 80 c0 00 20 20 80 | 07 00 00 2e 64 72 61 77 | ... .|....draw|
|00000c50| 6d 61 70 3a 00 20 20 80 | 0b 20 63 6f 6e 73 6f 6c |map:. .|. consol|
|00000c60| 65 20 80 21 20 dd 81 20 | 68 6f 6d 65 24 20 80 22 |e .! .. |home$ ."|
|00000c70| 20 c5 10 20 30 2c 30 00 | 20 20 70 6f 73 78 3d bc | .. 0,0.| posx=.|
|00000c80| 0a 28 6d 79 78 2d 64 69 | 73 70 77 2f 32 2c 30 2c |.(myx-di|spw/2,0,|
|00000c90| 77 69 64 74 68 2d 64 69 | 73 70 77 29 00 20 20 70 |width-di|spw). p|
|00000ca0| 6f 73 79 3d bc 0a 28 6d | 79 79 2d 64 69 73 70 68 |osy=..(m|yy-disph|
|00000cb0| 2f 32 2c 30 2c 68 65 69 | 67 68 74 2d 64 69 73 70 |/2,0,hei|ght-disp|
|00000cc0| 68 29 00 20 20 80 16 20 | 79 3d 30 20 80 18 20 64 |h). .. |y=0 .. d|
|00000cd0| 69 73 70 68 2d 31 00 20 | 20 20 20 80 16 20 78 3d |isph-1. | .. x=|
|00000ce0| 30 20 80 18 20 64 69 73 | 70 77 2d 31 3a dd 81 20 |0 .. dis|pw-1:.. |
|00000cf0| 63 24 28 6d 61 70 28 70 | 6f 73 78 2b 78 2c 70 6f |c$(map(p|osx+x,po|
|00000d00| 73 79 2b 79 29 29 3a 80 | 17 3a dd 82 20 22 22 00 |sy+y)):.|.:.. "".|
|00000d10| 20 20 80 17 00 20 20 80 | 07 00 00 | ... .|... |
+--------+-------------------------+-------------------------+--------+--------+