home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / commercial / tcon / Samples / Wander < prev   
Unknown  |  1995-05-17  |  3.1 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



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 64 01 00 00 0b 00 00 00 | 01 00 00 00 ff ff 7f 00 |d.......|........|
|00000010| ff ff 7f 00 ff ff 7f 00 | ff ff 7f 00 ff ff 7f 00 |........|........|
|00000020| ff ff 7f 00 ff ff 7f 00 | ff ff 7f 00 ff ff 7f 00 |........|........|
|00000030| ff ff 7f 00 64 01 00 00 | ff ff 7f 00 ff ff 7f 00 |....d...|........|
|00000040| ff ff 7f 00 64 01 00 00 | ff ff 7f 00 ff ff 7f 00 |....d...|........|
|00000050| ff ff 7f 00 64 01 00 00 | ff ff 7f 00 ff ff 7f 00 |....d...|........|
|00000060| ff ff 7f 00 01 00 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000080| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000090| 00 00 00 00 00 00 00 00 | 02 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 05 00 00 00 28 0b 00 00 | 0a 00 00 00 00 00 00 00 |....(...|........|
|00000170| c7 00 00 00 f0 ff ff ff | 18 00 00 00 bc ff ff ff |........|........|
|00000180| 77 01 00 00 f0 ff ff ff | 18 00 00 00 68 ff ff ff |w.......|....h...|
|00000190| 77 01 00 00 f0 ff ff ff | 68 00 00 00 20 00 00 00 |w.......|h... ...|
|000001a0| 6c ff ff ff 7a 00 00 00 | 28 0b 00 00 ff ff 7f 00 |l...z...|(.......|
|000001b0| ff ff 7f 00 ff ff 7f 00 | 28 0b 00 00 ff ff 7f 00 |........|(.......|
|000001c0| 6c ff ff ff ff ff 7f 00 | 02 00 00 00 1c 08 00 00 |l.......|........|
|000001d0| 01 00 00 00 00 00 00 00 | 20 00 00 00 b8 ff ff ff |........| .......|
|000001e0| 20 00 00 00 96 ff ff ff | 6f 01 00 00 b8 ff ff ff | .......|o.......|
|000001f0| 20 00 00 00 96 ff ff ff | 6f 01 00 00 96 ff ff ff | .......|o.......|
|00000200| 1c 08 00 00 ff ff 7f 00 | ff ff 7f 00 ff ff 7f 00 |........|........|
|00000210| 1c 08 00 00 ff ff 7f 00 | ff ff 7f 00 ff ff 7f 00 |........|........|
|00000220| 1c 08 00 00 ff ff 7f 00 | 92 ff ff ff ff ff 7f 00 |........|........|
|00000230| 03 00 00 00 77 61 6e 64 | 65 72 00 6c 65 61 73 65 |....wand|er.lease|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 db 06 00 00 |........|........|
|00000260| 19 00 00 00 0f 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 3c 4c 69 3e | f8 02 00 40 f8 02 00 00 |....<Li>|...@....|
|000002b0| 01 00 00 00 10 00 00 00 | bc 02 00 00 ac 02 00 00 |........|........|
|000002c0| 61 77 00 00 00 00 00 00 | 00 00 00 00 07 00 00 00 |aw......|........|
|000002d0| 13 00 00 00 00 00 00 00 | 03 00 00 00 2c 00 00 00 |........|....,...|
|000002e0| 2c 00 00 00 0c 00 00 00 | 11 11 11 11 11 11 11 11 |,.......|........|
|000002f0| 11 11 11 11 11 11 11 11 | 11 11 11 11 11 11 11 11 |........|........|
|00000300| 11 11 11 11 01 00 00 00 | 11 11 11 11 2d 2d 20 54 |........|....-- T|
|00000310| 68 69 73 20 69 73 20 61 | 20 73 69 6c 6c 79 20 70 |his is a| silly p|
|00000320| 72 6f 67 72 61 6d 20 74 | 6f 20 6d 6f 76 65 20 74 |rogram t|o move t|
|00000330| 68 65 20 73 74 6f 70 77 | 61 74 63 68 20 61 6e 64 |he stopw|atch and|
|00000340| 20 74 68 65 20 63 6c 6f | 63 6b 20 77 69 6e 64 6f | the clo|ck windo|
|00000350| 77 73 20 61 72 6f 75 6e | 64 20 74 68 65 20 73 63 |ws aroun|d the sc|
|00000360| 72 65 65 6e 2e 20 54 68 | 65 20 74 77 6f 20 77 69 |reen. Th|e two wi|
|00000370| 6e 64 6f 77 73 20 77 69 | 6c 6c 20 74 72 79 20 6e |ndows wi|ll try n|
|00000380| 6f 74 20 74 6f 20 62 75 | 6d 70 20 69 6e 74 6f 20 |ot to bu|mp into |
|00000390| 65 61 63 68 20 6f 74 68 | 65 72 2c 20 61 6e 64 20 |each oth|er, and |
|000003a0| 77 69 6c 6c 20 63 68 61 | 6e 67 65 20 64 69 72 65 |will cha|nge dire|
|000003b0| 63 74 69 6f 6e 20 69 66 | 20 74 68 65 79 20 67 65 |ction if| they ge|
|000003c0| 74 20 6e 65 61 72 20 74 | 68 65 20 65 64 67 65 20 |t near t|he edge |
|000003d0| 6f 66 20 74 68 65 20 62 | 69 74 20 6f 66 20 74 68 |of the b|it of th|
|000003e0| 65 20 73 63 72 65 65 6e | 20 74 68 65 79 27 72 65 |e screen| they're|
|000003f0| 20 61 6c 6c 6f 77 65 64 | 20 74 6f 20 67 6f 20 69 | allowed| to go i|
|00000400| 6e 2e 0a 70 72 6f 63 65 | 64 75 72 65 20 77 61 6e |n..proce|dure wan|
|00000410| 64 65 72 0a 09 6c 6f 63 | 61 6c 20 64 78 28 32 29 |der..loc|al dx(2)|
|00000420| 2c 20 64 79 28 32 29 09 | 09 09 09 09 2d 2d 20 64 |, dy(2).|....-- d|
|00000430| 69 72 65 63 74 69 6f 6e | 20 74 68 65 20 77 69 6e |irection| the win|
|00000440| 64 6f 77 20 69 73 20 6d | 6f 76 69 6e 67 20 69 6e |dow is m|oving in|
|00000450| 0a 09 6c 6f 63 61 6c 20 | 6d 61 78 78 20 3d 20 38 |..local |maxx = 8|
|00000460| 30 30 2c 20 6d 61 78 79 | 20 3d 20 38 30 30 09 2d |00, maxy| = 800.-|
|00000470| 2d 20 73 65 74 73 20 74 | 68 65 20 74 6f 70 20 72 |- sets t|he top r|
|00000480| 69 67 68 74 20 6c 69 6d | 69 74 20 6f 66 20 77 68 |ight lim|it of wh|
|00000490| 65 72 65 20 74 68 65 20 | 77 69 6e 64 6f 77 73 20 |ere the |windows |
|000004a0| 77 69 6c 6c 20 77 61 6e | 64 65 72 20 74 6f 0a 09 |will wan|der to..|
|000004b0| 6c 6f 63 61 6c 20 6d 69 | 6e 78 20 3d 20 31 30 2c |local mi|nx = 10,|
|000004c0| 20 6d 69 6e 79 20 3d 20 | 31 30 09 09 2d 2d 20 73 | miny = |10..-- s|
|000004d0| 65 74 73 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 6c |ets the |bottom l|
|000004e0| 65 66 74 20 6c 69 6d 69 | 74 20 6f 66 20 77 68 65 |eft limi|t of whe|
|000004f0| 72 65 20 74 68 65 20 77 | 69 6e 64 6f 77 73 20 77 |re the w|indows w|
|00000500| 69 6c 6c 20 77 61 6e 64 | 65 72 20 74 6f 0a 09 6c |ill wand|er to..l|
|00000510| 6f 63 61 6c 20 6c 61 73 | 74 74 69 6d 65 28 32 29 |ocal las|ttime(2)|
|00000520| 09 09 09 09 09 2d 2d 20 | 6c 61 73 74 20 74 69 6d |.....-- |last tim|
|00000530| 65 20 74 68 69 73 20 77 | 69 6e 64 6f 77 20 63 68 |e this w|indow ch|
|00000540| 61 6e 67 65 64 20 64 69 | 72 65 63 74 69 6f 6e 0a |anged di|rection.|
|00000550| 09 6c 6f 63 61 6c 20 78 | 28 32 29 2c 20 79 28 32 |.local x|(2), y(2|
|00000560| 29 09 09 09 09 09 2d 2d | 20 63 75 72 72 65 6e 74 |).....--| current|
|00000570| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 65 61 63 | positio|n of eac|
|00000580| 68 20 6f 66 20 74 77 6f | 20 77 69 6e 64 6f 77 73 |h of two| windows|
|00000590| 0a 09 6c 6f 63 61 6c 20 | 6e 65 77 78 2c 20 6e 65 |..local |newx, ne|
|000005a0| 77 79 09 09 09 09 09 2d | 2d 20 6e 65 77 20 70 6f |wy.....-|- new po|
|000005b0| 73 69 74 69 6f 6e 20 6f | 66 20 77 69 6e 64 6f 77 |sition o|f window|
|000005c0| 0a 09 6c 6f 63 61 6c 20 | 6f 74 68 65 72 78 2c 20 |..local |otherx, |
|000005d0| 6f 74 68 65 72 79 09 09 | 09 09 2d 2d 20 70 6f 73 |othery..|..-- pos|
|000005e0| 69 74 69 6f 6e 20 6f 66 | 20 27 6f 74 68 65 72 27 |ition of| 'other'|
|000005f0| 20 77 69 6e 64 6f 77 0a | 0a 09 2d 2d 20 53 65 74 | window.|..-- Set|
|00000600| 20 75 70 20 74 68 65 20 | 77 69 6e 64 6f 77 27 73 | up the |window's|
|00000610| 20 70 6f 73 69 74 69 6f | 6e 20 61 6e 64 20 64 69 | positio|n and di|
|00000620| 72 65 63 74 69 6f 6e 0a | 0a 09 66 6f 72 20 74 20 |rection.|..for t |
|00000630| 3d 20 31 20 74 6f 20 32 | 0a 09 09 78 28 74 29 20 |= 1 to 2|...x(t) |
|00000640| 3d 20 35 30 20 2b 20 35 | 30 30 20 2a 20 28 74 2d |= 50 + 5|00 * (t-|
|00000650| 31 29 0a 09 09 79 28 74 | 29 20 3d 20 35 30 20 2b |1)...y(t|) = 50 +|
|00000660| 20 33 30 30 20 2a 20 28 | 74 2d 31 29 0a 09 09 64 | 300 * (|t-1)...d|
|00000670| 78 28 74 29 20 3d 20 28 | 72 61 6e 64 6f 6d 28 31 |x(t) = (|random(1|
|00000680| 31 29 2d 35 29 20 2a 20 | 38 09 2d 2d 20 72 61 6e |1)-5) * |8.-- ran|
|00000690| 64 6f 6d 20 64 69 72 65 | 63 74 69 6f 6e 0a 09 09 |dom dire|ction...|
|000006a0| 64 79 28 74 29 20 3d 20 | 28 72 61 6e 64 6f 6d 28 |dy(t) = |(random(|
|000006b0| 31 31 29 2d 35 29 20 2a | 20 38 0a 09 09 6c 61 73 |11)-5) *| 8...las|
|000006c0| 74 74 69 6d 65 28 74 29 | 20 3d 20 74 69 6d 65 0a |ttime(t)| = time.|
|000006d0| 09 6e 65 78 74 0a 0a 09 | 72 65 70 65 61 74 20 66 |.next...|repeat f|
|000006e0| 6f 72 65 76 65 72 20 2d | 2d 20 6f 72 20 61 74 20 |orever -|- or at |
|000006f0| 6c 65 61 73 74 20 75 6e | 74 69 6c 20 49 20 67 65 |least un|til I ge|
|00000700| 74 20 73 74 6f 70 70 65 | 64 20 62 79 20 74 68 65 |t stoppe|d by the|
|00000710| 20 75 73 65 72 0a 09 09 | 66 6f 72 20 74 20 3d 20 | user...|for t = |
|00000720| 31 20 74 6f 20 32 0a 09 | 09 09 6f 6b 20 3d 20 66 |1 to 2..|..ok = f|
|00000730| 61 6c 73 65 0a 09 09 09 | 72 65 70 65 61 74 20 75 |alse....|repeat u|
|00000740| 6e 74 69 6c 20 6f 6b 20 | 2d 2d 20 6c 6f 6f 6b 20 |ntil ok |-- look |
|00000750| 66 6f 72 20 61 20 67 6f | 6f 64 20 64 69 72 65 63 |for a go|od direc|
|00000760| 74 69 6f 6e 20 74 6f 20 | 6d 6f 76 65 20 69 6e 0a |tion to |move in.|
|00000770| 09 09 09 09 6e 65 77 78 | 20 3d 20 78 28 74 29 20 |....newx| = x(t) |
|00000780| 2b 20 64 78 28 74 29 0a | 09 09 09 09 6e 65 77 79 |+ dx(t).|....newy|
|00000790| 20 3d 20 79 28 74 29 20 | 2b 20 64 79 28 74 29 0a | = y(t) |+ dy(t).|
|000007a0| 09 09 09 09 6f 74 68 65 | 72 78 20 3d 20 78 28 33 |....othe|rx = x(3|
|000007b0| 2d 74 29 0a 09 09 09 09 | 6f 74 68 65 72 79 20 3d |-t).....|othery =|
|000007c0| 20 79 28 33 2d 74 29 0a | 09 09 09 09 6f 6b 20 3d | y(3-t).|....ok =|
|000007d0| 20 6e 6f 74 20 6f 76 65 | 72 6c 61 70 28 6e 65 77 | not ove|rlap(new|
|000007e0| 78 2c 20 6e 65 77 79 2c | 20 6f 74 68 65 72 78 2c |x, newy,| otherx,|
|000007f0| 20 6f 74 68 65 72 79 29 | 20 61 6e 64 20 6e 65 77 | othery)| and new|
|00000800| 78 20 3e 20 6d 69 6e 78 | 20 61 6e 64 20 6e 65 77 |x > minx| and new|
|00000810| 78 20 3c 20 6d 61 78 78 | 20 61 6e 64 20 6e 65 77 |x < maxx| and new|
|00000820| 79 20 3e 20 6d 69 6e 79 | 20 61 6e 64 20 6e 65 77 |y > miny| and new|
|00000830| 79 20 3c 20 6d 61 78 79 | 20 61 6e 64 20 74 69 6d |y < maxy| and tim|
|00000840| 65 20 3c 20 6c 61 73 74 | 74 69 6d 65 28 74 29 20 |e < last|time(t) |
|00000850| 2b 20 31 35 30 0a 09 09 | 09 09 69 66 20 6e 6f 74 |+ 150...|..if not|
|00000860| 20 6f 6b 20 74 68 65 6e | 0a 09 09 09 09 09 64 78 | ok then|......dx|
|00000870| 28 74 29 20 3d 20 28 72 | 61 6e 64 6f 6d 28 31 31 |(t) = (r|andom(11|
|00000880| 29 2d 35 29 20 2a 20 38 | 0a 09 09 09 09 09 64 79 |)-5) * 8|......dy|
|00000890| 28 74 29 20 3d 20 28 72 | 61 6e 64 6f 6d 28 31 31 |(t) = (r|andom(11|
|000008a0| 29 2d 35 29 20 2a 20 38 | 0a 09 09 09 09 09 6c 61 |)-5) * 8|......la|
|000008b0| 73 74 74 69 6d 65 28 74 | 29 20 3d 20 74 69 6d 65 |sttime(t|) = time|
|000008c0| 0a 09 09 09 09 65 6e 64 | 20 69 66 0a 09 09 09 65 |.....end| if....e|
|000008d0| 6e 64 20 72 65 70 65 61 | 74 0a 09 09 09 2d 2d 20 |nd repea|t....-- |
|000008e0| 6d 61 6b 65 20 74 68 65 | 20 6d 6f 76 65 0a 09 09 |make the| move...|
|000008f0| 09 78 28 74 29 20 3d 20 | 6e 65 77 78 0a 09 09 09 |.x(t) = |newx....|
|00000900| 79 28 74 29 20 3d 20 6e | 65 77 79 0a 09 09 09 2d |y(t) = n|ewy....-|
|00000910| 2d 20 75 70 64 61 74 65 | 20 74 68 65 20 70 6f 73 |- update| the pos|
|00000920| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 77 69 6e |ition of| the win|
|00000930| 64 6f 77 73 0a 09 09 09 | 69 66 20 74 20 3d 20 31 |dows....|if t = 1|
|00000940| 20 74 68 65 6e 0a 09 09 | 09 09 73 68 6f 77 20 73 | then...|..show s|
|00000950| 74 6f 70 77 61 74 63 68 | 20 61 74 20 78 28 74 29 |topwatch| at x(t)|
|00000960| 2c 20 79 28 74 29 0a 09 | 09 09 65 6c 73 65 0a 09 |, y(t)..|..else..|
|00000970| 09 09 09 73 68 6f 77 20 | 63 6c 6f 63 6b 20 61 74 |...show |clock at|
|00000980| 20 78 28 74 29 2c 20 79 | 28 74 29 0a 09 09 09 65 | x(t), y|(t)....e|
|00000990| 6e 64 20 69 66 0a 09 09 | 09 2d 2d 20 61 6e 64 20 |nd if...|.-- and |
|000009a0| 70 61 75 73 65 20 62 72 | 69 65 66 6c 79 0a 09 09 |pause br|iefly...|
|000009b0| 09 77 61 69 74 20 32 20 | 63 65 6e 74 69 73 65 63 |.wait 2 |centisec|
|000009c0| 6f 6e 64 73 0a 09 09 6e | 65 78 74 0a 09 65 6e 64 |onds...n|ext..end|
|000009d0| 20 72 65 70 65 61 74 0a | 0a 65 6e 64 20 70 72 6f | repeat.|.end pro|
|000009e0| 63 65 64 75 72 65 0a 00 | a4 02 00 00 01 00 00 00 |cedure..|........|
|000009f0| 00 00 00 00 20 00 00 00 | 92 ff ff ff 20 00 00 00 |.... ...|.... ...|
|00000a00| 70 ff ff ff 6f 01 00 00 | 92 ff ff ff 20 00 00 00 |p...o...|.... ...|
|00000a10| 70 ff ff ff 6f 01 00 00 | 70 ff ff ff a4 02 00 00 |p...o...|p.......|
|00000a20| ff ff 7f 00 ff ff 7f 00 | ff ff 7f 00 a4 02 00 00 |........|........|
|00000a30| ff ff 7f 00 ff ff 7f 00 | ff ff 7f 00 a4 02 00 00 |........|........|
|00000a40| ff ff 7f 00 6c ff ff ff | ff ff 7f 00 04 00 00 00 |....l...|........|
|00000a50| 6f 76 65 72 6c 61 70 00 | 65 61 73 65 00 00 00 00 |overlap.|ease....|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 63 01 00 00 19 00 00 00 |........|c.......|
|00000a80| 02 00 00 00 78 00 00 00 | c4 ff ff ff b0 00 00 00 |....x...|........|
|00000a90| fc ff ff ff 18 00 00 00 | 01 00 00 00 00 00 00 00 |........|........|
|00000aa0| 00 00 00 00 63 75 74 00 | 74 62 68 35 00 00 00 00 |....cut.|tbh5....|
|00000ab0| 3c 4c 69 3e 60 00 00 10 | c0 1d 08 00 6c d0 06 00 |<Li>`...|....l...|
|00000ac0| 01 00 00 00 00 00 00 00 | 69 58 1c 02 69 58 1c 02 |........|iX..iX..|
|00000ad0| f8 01 00 00 8a 02 00 00 | 06 06 00 00 ae 02 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | c9 59 1c 02 42 00 13 80 |........|.Y..B...|
|00000af0| 02 00 00 00 02 00 00 00 | 02 00 00 00 02 00 00 00 |........|........|
|00000b00| f6 01 00 00 88 02 00 00 | 08 06 00 00 b0 02 00 00 |........|........|
|00000b10| 00 00 00 00 c0 00 00 00 | 3c 4c 69 3e 60 00 00 10 |........|<Li>`...|
|00000b20| 00 00 00 00 6c d0 06 00 | 2d 2d 20 54 68 69 73 20 |....l...|-- This |
|00000b30| 66 75 6e 63 74 69 6f 6e | 20 72 65 74 75 72 6e 73 |function| returns|
|00000b40| 20 54 52 55 45 20 69 66 | 20 74 68 65 20 77 69 6e | TRUE if| the win|
|00000b50| 64 6f 77 20 61 74 20 78 | 31 2c 20 79 31 20 6f 76 |dow at x|1, y1 ov|
|00000b60| 65 72 6c 61 70 73 20 77 | 69 74 68 20 74 68 65 20 |erlaps w|ith the |
|00000b70| 77 69 6e 64 6f 77 20 61 | 74 20 78 32 2c 20 79 32 |window a|t x2, y2|
|00000b80| 2e 20 42 6f 74 68 20 77 | 69 6e 64 6f 77 73 20 61 |. Both w|indows a|
|00000b90| 72 65 20 61 73 73 75 6d | 65 64 20 74 6f 20 62 65 |re assum|ed to be|
|00000ba0| 20 74 68 65 20 73 61 6d | 65 20 73 69 7a 65 3b 20 | the sam|e size; |
|00000bb0| 34 32 36 20 70 69 78 65 | 6c 73 20 62 79 20 32 32 |426 pixe|ls by 22|
|00000bc0| 30 20 70 69 78 65 6c 73 | 2e 0a 66 75 6e 63 74 69 |0 pixels|..functi|
|00000bd0| 6f 6e 20 6f 76 65 72 6c | 61 70 28 78 31 2c 20 79 |on overl|ap(x1, y|
|00000be0| 31 2c 20 78 32 2c 20 79 | 32 29 0a 09 6c 6f 63 61 |1, x2, y|2)..loca|
|00000bf0| 6c 20 77 69 64 74 68 20 | 3d 20 34 32 36 2c 20 68 |l width |= 426, h|
|00000c00| 65 69 67 68 74 20 3d 20 | 32 32 30 2c 20 6c 61 70 |eight = |220, lap|
|00000c10| 70 69 6e 67 0a 09 6c 61 | 70 70 69 6e 67 20 3d 20 |ping..la|pping = |
|00000c20| 78 31 20 3c 20 78 32 20 | 2b 20 77 69 64 74 68 20 |x1 < x2 |+ width |
|00000c30| 61 6e 64 20 78 31 20 2b | 20 77 69 64 74 68 20 3e |and x1 +| width >|
|00000c40| 20 78 32 20 61 6e 64 20 | 79 31 20 3c 20 79 32 20 | x2 and |y1 < y2 |
|00000c50| 2b 20 68 65 69 67 68 74 | 20 61 6e 64 20 79 31 20 |+ height| and y1 |
|00000c60| 2b 20 68 65 69 67 68 74 | 20 3e 20 79 32 0a 09 72 |+ height| > y2..r|
|00000c70| 65 73 75 6c 74 20 6c 61 | 70 70 69 6e 67 0a 65 6e |esult la|pping.en|
|00000c80| 64 20 66 75 6e 63 74 69 | 6f 6e 0a 00 |d functi|on.. |
+--------+-------------------------+-------------------------+--------+--------+