home *** CD-ROM | disk | FTP | other *** search
Unknown | 1995-10-19 | 1.4 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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 00 3b 41 20 6c 69 74 | 74 6c 65 20 64 65 6d 6f |;.;A lit|tle demo|
|00000010| 20 6f 66 20 6d 6f 76 69 | 6e 67 20 74 68 69 6e 67 | of movi|ng thing|
|00000020| 73 20 75 73 69 6e 67 20 | 74 68 65 20 51 42 6c 69 |s using |the QBli|
|00000030| 74 20 63 6f 6d 6d 61 6e | 64 2e 2e 2e 00 00 3b 63 |t comman|d.....;c|
|00000040| 72 65 61 74 65 20 61 20 | 27 62 61 6c 6c 27 20 74 |reate a |'ball' t|
|00000050| 79 70 65 20 76 61 72 69 | 61 62 6c 65 00 3b 00 80 |ype vari|able.;..|
|00000060| 01 2e 62 61 6c 6c 00 78 | 2e 71 00 79 00 78 73 00 |..ball.x|.q.y.xs.|
|00000070| 79 73 00 80 02 20 80 01 | 00 00 3b 64 69 6d 65 6e |ys... ..|..;dimen|
|00000080| 73 69 6f 6e 20 61 20 27 | 6c 69 73 74 27 20 6f 66 |sion a '|list' of|
|00000090| 20 27 62 61 6c 6c 73 27 | 00 3b 00 3b 74 72 79 20 | 'balls'|.;.;try |
|000000a0| 69 6e 63 72 65 61 73 69 | 6e 67 20 74 68 65 20 27 |increasi|ng the '|
|000000b0| 32 27 20 68 65 72 65 20 | 74 6f 20 27 31 30 27 2e |2' here |to '10'.|
|000000c0| 20 4e 6f 74 69 63 65 20 | 68 6f 77 20 74 68 69 6e | Notice |how thin|
|000000d0| 67 73 00 3b 73 74 61 72 | 74 20 74 6f 20 66 6c 69 |gs.;star|t to fli|
|000000e0| 63 6b 65 72 3f 20 54 6f | 20 6f 76 65 72 63 6f 6d |cker? To| overcom|
|000000f0| 65 20 74 68 69 73 2c 20 | 79 6f 75 27 6c 6c 20 6e |e this, |you'll n|
|00000100| 65 65 64 20 74 6f 20 75 | 73 65 00 3b 64 6f 75 62 |eed to u|se.;doub|
|00000110| 6c 65 20 62 75 66 66 65 | 72 69 6e 67 21 20 53 65 |le buffe|ring! Se|
|00000120| 65 20 74 68 65 20 27 64 | 6f 75 62 6c 65 62 75 66 |e the 'd|oublebuf|
|00000130| 66 65 72 27 20 64 65 6d | 6f 21 00 3b 00 80 04 20 |fer' dem|o!.;... |
|00000140| 80 b3 20 62 61 6c 6c 73 | 2e 62 61 6c 6c 28 31 30 |.. balls|.ball(10|
|00000150| 29 00 00 3b 6c 6f 61 64 | 20 69 6e 20 61 20 73 68 |)..;load| in a sh|
|00000160| 61 70 65 20 61 6e 64 20 | 69 74 27 73 20 70 61 6c |ape and |it's pal|
|00000170| 65 74 74 65 00 3b 00 cd | 01 20 30 2c 22 64 61 74 |ette.;..|. 0,"dat|
|00000180| 61 2f 62 61 6c 6c 22 2c | 30 00 00 3b 6b 65 65 70 |a/ball",|0..;keep|
|00000190| 20 61 64 64 69 6e 67 20 | 69 74 65 6d 73 20 74 6f | adding |items to|
|000001a0| 20 6c 69 73 74 20 75 6e | 74 69 6c 20 6c 69 73 74 | list un|til list|
|000001b0| 20 66 75 6c 6c 00 3b 00 | 80 0c 20 c0 08 28 62 61 | full.;.|.. ..(ba|
|000001c0| 6c 6c 73 28 29 29 00 20 | 20 62 61 6c 6c 73 28 29 |lls()). | balls()|
|000001d0| 5c 78 3d bc 07 28 32 38 | 30 29 2b 31 30 2c bc 07 |\x=..(28|0)+10,..|
|000001e0| 28 31 36 30 29 2b 31 30 | 2c 28 bc 07 2d 2e 35 29 |(160)+10|,(..-.5)|
|000001f0| 2a 38 2c 28 bc 07 2d 2e | 35 29 2a 38 00 80 c1 00 |*8,(..-.|5)*8....|
|00000200| 00 3b 6e 6f 77 2c 20 77 | 65 20 67 6f 20 69 6e 74 |.;now, w|e go int|
|00000210| 6f 20 62 6c 69 74 7a 20 | 6d 6f 64 65 00 3b 00 80 |o blitz |mode.;..|
|00000220| 34 00 00 3b 69 6e 69 74 | 69 61 6c 69 7a 65 20 61 |4..;init|ialize a|
|00000230| 20 27 71 75 65 75 65 27 | 20 66 6f 72 20 74 68 65 | 'queue'| for the|
|00000240| 20 71 62 6c 69 74 20 63 | 6f 6d 6d 61 6e 64 20 74 | qblit c|ommand t|
|00000250| 6f 20 6d 61 6b 65 20 75 | 73 65 20 6f 66 3a 00 3b |o make u|se of:.;|
|00000260| 00 3b 74 68 65 20 27 35 | 30 27 20 68 65 72 65 20 |.;the '5|0' here |
|00000270| 6d 65 61 6e 73 20 74 68 | 65 20 71 75 65 75 65 20 |means th|e queue |
|00000280| 63 61 6e 20 68 61 6e 64 | 6c 65 20 75 70 20 74 6f |can hand|le up to|
|00000290| 20 35 30 20 27 51 42 6c | 69 74 73 27 00 3b 62 65 | 50 'QBl|its'.;be|
|000002a0| 66 6f 72 65 20 61 6e 20 | 27 55 6e 51 75 65 75 65 |fore an |'UnQueue|
|000002b0| 27 20 69 73 20 6e 65 63 | 65 73 73 61 72 79 2e 00 |' is nec|essary..|
|000002c0| 3b 00 ca 01 20 30 2c 35 | 30 00 00 3b 69 6e 69 74 |;... 0,5|0..;init|
|000002d0| 69 61 6c 69 7a 65 20 61 | 20 6c 6f 72 2d 72 65 73 |ialize a| lor-res|
|000002e0| 2c 20 38 20 63 6f 6c 6f | 75 72 20 62 69 74 6d 61 |, 8 colo|ur bitma|
|000002f0| 70 2e 2e 2e 00 3b 00 d0 | 01 20 30 2c 33 32 30 2c |p....;..|. 0,320,|
|00000300| 32 30 30 2c 33 00 00 3b | 69 6e 69 74 69 61 6c 69 |200,3..;|initiali|
|00000310| 7a 65 20 61 20 73 6c 69 | 63 65 2c 20 61 6e 64 20 |ze a sli|ce, and |
|00000320| 73 65 74 20 69 74 27 73 | 20 63 6f 6c 6f 75 72 20 |set it's| colour |
|00000330| 70 61 6c 65 74 74 65 00 | 3b 00 c7 82 20 30 2c 34 |palette.|;... 0,4|
|00000340| 34 2c 32 30 30 2c 33 2c | 38 2c 38 2c 30 00 c7 86 |4,200,3,|8,8,0...|
|00000350| 20 30 2c 30 00 c7 84 20 | 30 2c 30 00 c7 83 20 30 | 0,0... |0,0... 0|
|00000360| 00 00 3b 6e 6f 77 2c 20 | 70 72 6f 63 65 73 73 20 |..;now, |process |
|00000370| 61 6c 6c 20 62 61 6c 6c | 73 73 2e 2e 2e 00 3b 00 |all ball|ss....;.|
|00000380| 3b 77 68 69 6c 65 20 6d | 6f 75 73 65 20 62 75 74 |;while m|ouse but|
|00000390| 74 6f 6e 20 6e 6f 74 20 | 68 69 74 2e 2e 00 3b 00 |ton not |hit...;.|
|000003a0| 80 0c 20 df 04 28 30 29 | 3d 30 00 00 20 20 3b 73 |.. ..(0)|=0.. ;s|
|000003b0| 74 61 72 74 20 61 74 20 | 66 69 72 73 74 20 69 74 |tart at |first it|
|000003c0| 65 6d 20 69 6e 20 6c 69 | 73 74 00 20 20 3b 00 20 |em in li|st. ;. |
|000003d0| 20 c0 04 20 62 61 6c 6c | 73 28 29 00 00 20 20 3b | .. ball|s().. ;|
|000003e0| 77 61 69 74 20 66 6f 72 | 20 76 65 72 74 69 63 61 |wait for| vertica|
|000003f0| 6c 20 62 6c 61 6e 6b 00 | 20 20 3b 00 20 20 80 37 |l blank.| ;. .7|
|00000400| 00 00 20 20 3b 75 6e 71 | 75 65 75 65 20 61 6c 6c |.. ;unq|ueue all|
|00000410| 20 70 72 65 76 69 6f 75 | 73 6c 79 20 64 72 61 77 | previou|sly draw|
|00000420| 6e 20 73 68 61 70 65 73 | 00 20 20 3b 00 20 20 ca |n shapes|. ;. .|
|00000430| 03 20 30 00 00 20 20 3b | 77 68 69 6c 65 20 6d 6f |. 0.. ;|while mo|
|00000440| 72 65 20 69 74 65 6d 73 | 20 74 6f 20 63 6f 6d 65 |re items| to come|
|00000450| 2e 2e 2e 00 20 20 3b 00 | 20 20 80 0c 20 c0 03 28 |.... ;.| .. ..(|
|00000460| 62 61 6c 6c 73 28 29 29 | 00 00 20 20 20 20 3b 75 |balls())|.. ;u|
|00000470| 70 64 61 74 65 20 62 61 | 6c 6c 73 27 20 70 6f 73 |pdate ba|lls' pos|
|00000480| 69 74 69 6f 6e 00 20 20 | 20 20 3b 00 20 20 20 20 |ition. | ;. |
|00000490| 62 61 6c 6c 73 28 29 5c | 78 2b 62 61 6c 6c 73 28 |balls()\|x+balls(|
|000004a0| 29 5c 78 73 00 20 20 20 | 20 62 61 6c 6c 73 28 29 |)\xs. | balls()|
|000004b0| 5c 79 2b 62 61 6c 6c 73 | 28 29 5c 79 73 00 00 20 |\y+balls|()\ys.. |
|000004c0| 20 20 20 3b 72 65 76 65 | 72 73 65 20 64 69 72 65 | ;reve|rse dire|
|000004d0| 63 74 69 6f 6e 20 69 66 | 20 62 61 6c 6c 20 67 65 |ction if| ball ge|
|000004e0| 74 73 20 74 6f 20 65 64 | 67 65 20 6f 66 20 62 69 |ts to ed|ge of bi|
|000004f0| 74 6d 61 70 00 20 20 20 | 20 3b 00 20 20 20 20 80 |tmap. | ;. .|
|00000500| 0b 20 62 61 6c 6c 73 28 | 29 5c 78 3c 31 30 20 80 |. balls(|)\x<10 .|
|00000510| 8a 20 62 61 6c 6c 73 28 | 29 5c 78 3e 32 39 30 20 |. balls(|)\x>290 |
|00000520| 80 21 20 62 61 6c 6c 73 | 28 29 5c 78 73 3d 2d 62 |.! balls|()\xs=-b|
|00000530| 61 6c 6c 73 28 29 5c 78 | 73 00 20 20 20 20 80 0b |alls()\x|s. ..|
|00000540| 20 62 61 6c 6c 73 28 29 | 5c 79 3c 31 30 20 80 8a | balls()|\y<10 ..|
|00000550| 20 62 61 6c 6c 73 28 29 | 5c 79 3e 31 37 30 20 80 | balls()|\y>170 .|
|00000560| 21 20 62 61 6c 6c 73 28 | 29 5c 79 73 3d 2d 62 61 |! balls(|)\ys=-ba|
|00000570| 6c 6c 73 28 29 5c 79 73 | 00 00 20 20 20 20 3b 64 |lls()\ys|.. ;d|
|00000580| 72 61 77 20 62 61 6c 6c | 73 20 69 6e 20 6e 65 77 |raw ball|s in new|
|00000590| 20 70 6f 73 69 74 69 6f | 6e 00 20 20 20 20 3b 00 | positio|n. ;.|
|000005a0| 20 20 20 20 ca 02 20 30 | 2c 30 2c 62 61 6c 6c 73 | .. 0|,0,balls|
|000005b0| 28 29 5c 78 2c 62 61 6c | 6c 73 28 29 5c 79 00 00 |()\x,bal|ls()\y..|
|000005c0| 20 20 80 c1 00 80 c1 00 | 00 80 02 00 | ......|.... |
+--------+-------------------------+-------------------------+--------+--------+