Home » Archimedes archive » Archimedes World » AW-1991-12.adf » December91 » !AWDec91/Goodies/AdvSystem/!AdvSystem/!RunImage

!AWDec91/Goodies/AdvSystem/!AdvSystem/!RunImage

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1991-12.adf » December91
Filename: !AWDec91/Goodies/AdvSystem/!AdvSystem/!RunImage
Read OK:
File size: 05A1 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM > !RunImage
   20REM Mouse-Driven front-end menu for The Adventure System.
   30REM Displays a list of games. Clicking on the box runs the game.
   40REM Should you wish, it is possible to turn the editor function
   50REM off by setting the variable "editor%" to FALSE on line 100.
   60REM Written 28-08-90 by Graham West
   65REM Copyright Archimedes World 1991
   70:
   80ON ERROR OFF
   90SYS"OS_Byte",220,243,0
  100editor%=TRUE
  110MODE12:OFF
  120COLOUR 6,128,128,128
  130DIM a$(8):X=OPENIN"ADVS":FOR I%=1 TO 8:INPUT#X,a$(I%):NEXT
  140CLOSE#0
  150GCOL 4
  160RECTANGLE FILL 448,896,384,96
  170COLOUR 3:COLOUR 132:PRINTTAB(30,2);"The Adventure System"
  180GCOL 3:RECTANGLE 448,896,384,96
  190COLOUR 5:COLOUR 128:PRINTTAB(24,5);"Written in 1990 by Graham I West"
  200I%=1:WHILE a$(I%)<>""
  210COLOUR 128:COLOUR 2:PRINTTAB(2,5+I%*3);"(";I%;")"
  220GCOL 6:RECTANGLE FILL 128,880-I%*96,864,-64
  230COLOUR 7:COLOUR 134:PRINTTAB(11,5+I%*3);a$(I%)
  240GCOL 6:RECTANGLE FILL 1024,784,160,-64
  250COLOUR 7:COLOUR 134:PRINTTAB(66,8);"Quit"
  260I%+=1:ENDWHILE
  270IF editor% THEN
  280GCOL 6:RECTANGLE FILL 1024,688,160,-64
  290COLOUR 7:COLOUR 134:PRINTTAB(66,11);"Editor"
  300ENDIF
  310MOUSE COLOUR 1,0,0,0
  320MOUSE COLOUR 2,0,255,255
  330MOUSE ON
  340REPEAT
  350A$=INKEY$(0)
  360IF A$<"1" OR A$>"9" OR (A$="E" AND NOT editor%) THEN A$=""
  370MOUSE X%,Y%,Z%
  380IF Z%<>0 THEN
  390Z%=0
  400IF X%>1024 AND X%<1184 AND Y%<784 AND Y%>720 THEN Z%=10
  410IF editor% AND X%>1024 AND X%<1184 AND Y%<692 AND Y%>620 THEN Z%=9
  420IF X%>128 AND X%<992 AND Y%<784 AND Y%>880-I%*96 THEN Z%=(784-Y%)/96+1
  430ENDIF
  440UNTIL A$="Q" OR A$="E" OR (A$>="1" AND VAL(A$)<I%) OR Z%<>0
  450IF A$="E" OR Z%=9 THEN CHAIN"!GameEdit"
  460IF A$="Q" OR Z%=10 THEN PROCquit
  470IF Z%=0 THEN Z%=VAL(A$)
  480CHAIN"!GamePlay"
  490:
  500DEFPROCquit
  510MODE12:OSCLI"FX220,27,0"
  520*DISMOUNT
  530END

� > !RunImage
;� Mouse-Driven front-end menu for The Adventure System.
B� Displays a list of games. Clicking on the box runs the game.
(A� Should you wish, it is possible to turn the editor function
2A� off by setting the variable "editor%" to FALSE on line 100.
<%� Written 28-08-90 by Graham West
A%� Copyright Archimedes World 1991
F:
P	� � �
Zș"OS_Byte",220,243,0
d
editor%=�
n	�12:�
x� 6,128,128,128
�-� a$(8):X=�"ADVS":� I%=1 � 8:�#X,a$(I%):�
��#0
�� 4
�ȓ Ȑ 448,896,384,96
�,� 3:� 132:�30,2);"The Adventure System"
�� 3:ȓ 448,896,384,96
�8� 5:� 128:�24,5);"Written in 1990 by Graham I West"
�I%=1:ȕ a$(I%)<>""
�$� 128:� 2:�2,5+I%*3);"(";I%;")"
�#� 6:ȓ Ȑ 128,880-I%*96,864,-64
�!� 7:� 134:�11,5+I%*3);a$(I%)
�� 6:ȓ Ȑ 1024,784,160,-64
�� 7:� 134:�66,8);"Quit"
I%+=1:�
� editor% �
� 6:ȓ Ȑ 1024,688,160,-64
"� 7:� 134:�66,11);"Editor"
,�
6ȗ � 1,0,0,0
@ȗ � 2,0,255,255
Jȗ �
T�
^A$=�(0)
h4� A$<"1" � A$>"9" � (A$="E" � � editor%) � A$=""
rȗ X%,Y%,Z%
|
� Z%<>0 �
�Z%=0
�1� X%>1024 � X%<1184 � Y%<784 � Y%>720 � Z%=10
�:� editor% � X%>1024 � X%<1184 � Y%<692 � Y%>620 � Z%=9
�@� X%>128 � X%<992 � Y%<784 � Y%>880-I%*96 � Z%=(784-Y%)/96+1
��
�4� A$="Q" � A$="E" � (A$>="1" � �(A$)<I%) � Z%<>0
�"� A$="E" � Z%=9 � �"!GameEdit"
�� A$="Q" � Z%=10 � �quit
�� Z%=0 � Z%=�(A$)
��"!GamePlay"
�:
�
��quit
��12:�"FX220,27,0"

*DISMOUNT
�
�
00000000  0d 00 0a 11 f4 20 3e 20  21 52 75 6e 49 6d 61 67  |..... > !RunImag|
00000010  65 0d 00 14 3b f4 20 4d  6f 75 73 65 2d 44 72 69  |e...;. Mouse-Dri|
00000020  76 65 6e 20 66 72 6f 6e  74 2d 65 6e 64 20 6d 65  |ven front-end me|
00000030  6e 75 20 66 6f 72 20 54  68 65 20 41 64 76 65 6e  |nu for The Adven|
00000040  74 75 72 65 20 53 79 73  74 65 6d 2e 0d 00 1e 42  |ture System....B|
00000050  f4 20 44 69 73 70 6c 61  79 73 20 61 20 6c 69 73  |. Displays a lis|
00000060  74 20 6f 66 20 67 61 6d  65 73 2e 20 43 6c 69 63  |t of games. Clic|
00000070  6b 69 6e 67 20 6f 6e 20  74 68 65 20 62 6f 78 20  |king on the box |
00000080  72 75 6e 73 20 74 68 65  20 67 61 6d 65 2e 0d 00  |runs the game...|
00000090  28 41 f4 20 53 68 6f 75  6c 64 20 79 6f 75 20 77  |(A. Should you w|
000000a0  69 73 68 2c 20 69 74 20  69 73 20 70 6f 73 73 69  |ish, it is possi|
000000b0  62 6c 65 20 74 6f 20 74  75 72 6e 20 74 68 65 20  |ble to turn the |
000000c0  65 64 69 74 6f 72 20 66  75 6e 63 74 69 6f 6e 0d  |editor function.|
000000d0  00 32 41 f4 20 6f 66 66  20 62 79 20 73 65 74 74  |.2A. off by sett|
000000e0  69 6e 67 20 74 68 65 20  76 61 72 69 61 62 6c 65  |ing the variable|
000000f0  20 22 65 64 69 74 6f 72  25 22 20 74 6f 20 46 41  | "editor%" to FA|
00000100  4c 53 45 20 6f 6e 20 6c  69 6e 65 20 31 30 30 2e  |LSE on line 100.|
00000110  0d 00 3c 25 f4 20 57 72  69 74 74 65 6e 20 32 38  |..<%. Written 28|
00000120  2d 30 38 2d 39 30 20 62  79 20 47 72 61 68 61 6d  |-08-90 by Graham|
00000130  20 57 65 73 74 0d 00 41  25 f4 20 43 6f 70 79 72  | West..A%. Copyr|
00000140  69 67 68 74 20 41 72 63  68 69 6d 65 64 65 73 20  |ight Archimedes |
00000150  57 6f 72 6c 64 20 31 39  39 31 0d 00 46 05 3a 0d  |World 1991..F.:.|
00000160  00 50 09 ee 20 85 20 87  0d 00 5a 19 c8 99 22 4f  |.P.. . ...Z..."O|
00000170  53 5f 42 79 74 65 22 2c  32 32 30 2c 32 34 33 2c  |S_Byte",220,243,|
00000180  30 0d 00 64 0d 65 64 69  74 6f 72 25 3d b9 0d 00  |0..d.editor%=...|
00000190  6e 09 eb 31 32 3a 87 0d  00 78 13 fb 20 36 2c 31  |n..12:...x.. 6,1|
000001a0  32 38 2c 31 32 38 2c 31  32 38 0d 00 82 2d de 20  |28,128,128...-. |
000001b0  61 24 28 38 29 3a 58 3d  8e 22 41 44 56 53 22 3a  |a$(8):X=."ADVS":|
000001c0  e3 20 49 25 3d 31 20 b8  20 38 3a e8 23 58 2c 61  |. I%=1 . 8:.#X,a|
000001d0  24 28 49 25 29 3a ed 0d  00 8c 07 d9 23 30 0d 00  |$(I%):......#0..|
000001e0  96 07 e6 20 34 0d 00 a0  18 c8 93 20 c8 90 20 34  |... 4...... .. 4|
000001f0  34 38 2c 38 39 36 2c 33  38 34 2c 39 36 0d 00 aa  |48,896,384,96...|
00000200  2c fb 20 33 3a fb 20 31  33 32 3a f1 8a 33 30 2c  |,. 3:. 132:..30,|
00000210  32 29 3b 22 54 68 65 20  41 64 76 65 6e 74 75 72  |2);"The Adventur|
00000220  65 20 53 79 73 74 65 6d  22 0d 00 b4 19 e6 20 33  |e System"..... 3|
00000230  3a c8 93 20 34 34 38 2c  38 39 36 2c 33 38 34 2c  |:.. 448,896,384,|
00000240  39 36 0d 00 be 38 fb 20  35 3a fb 20 31 32 38 3a  |96...8. 5:. 128:|
00000250  f1 8a 32 34 2c 35 29 3b  22 57 72 69 74 74 65 6e  |..24,5);"Written|
00000260  20 69 6e 20 31 39 39 30  20 62 79 20 47 72 61 68  | in 1990 by Grah|
00000270  61 6d 20 49 20 57 65 73  74 22 0d 00 c8 16 49 25  |am I West"....I%|
00000280  3d 31 3a c8 95 20 61 24  28 49 25 29 3c 3e 22 22  |=1:.. a$(I%)<>""|
00000290  0d 00 d2 24 fb 20 31 32  38 3a fb 20 32 3a f1 8a  |...$. 128:. 2:..|
000002a0  32 2c 35 2b 49 25 2a 33  29 3b 22 28 22 3b 49 25  |2,5+I%*3);"(";I%|
000002b0  3b 22 29 22 0d 00 dc 23  e6 20 36 3a c8 93 20 c8  |;")"...#. 6:.. .|
000002c0  90 20 31 32 38 2c 38 38  30 2d 49 25 2a 39 36 2c  |. 128,880-I%*96,|
000002d0  38 36 34 2c 2d 36 34 0d  00 e6 21 fb 20 37 3a fb  |864,-64...!. 7:.|
000002e0  20 31 33 34 3a f1 8a 31  31 2c 35 2b 49 25 2a 33  | 134:..11,5+I%*3|
000002f0  29 3b 61 24 28 49 25 29  0d 00 f0 1e e6 20 36 3a  |);a$(I%)..... 6:|
00000300  c8 93 20 c8 90 20 31 30  32 34 2c 37 38 34 2c 31  |.. .. 1024,784,1|
00000310  36 30 2c 2d 36 34 0d 00  fa 1c fb 20 37 3a fb 20  |60,-64..... 7:. |
00000320  31 33 34 3a f1 8a 36 36  2c 38 29 3b 22 51 75 69  |134:..66,8);"Qui|
00000330  74 22 0d 01 04 0b 49 25  2b 3d 31 3a ce 0d 01 0e  |t"....I%+=1:....|
00000340  0f e7 20 65 64 69 74 6f  72 25 20 8c 0d 01 18 1e  |.. editor% .....|
00000350  e6 20 36 3a c8 93 20 c8  90 20 31 30 32 34 2c 36  |. 6:.. .. 1024,6|
00000360  38 38 2c 31 36 30 2c 2d  36 34 0d 01 22 1f fb 20  |88,160,-64..".. |
00000370  37 3a fb 20 31 33 34 3a  f1 8a 36 36 2c 31 31 29  |7:. 134:..66,11)|
00000380  3b 22 45 64 69 74 6f 72  22 0d 01 2c 05 cd 0d 01  |;"Editor"..,....|
00000390  36 10 c8 97 20 fb 20 31  2c 30 2c 30 2c 30 0d 01  |6... . 1,0,0,0..|
000003a0  40 14 c8 97 20 fb 20 32  2c 30 2c 32 35 35 2c 32  |@... . 2,0,255,2|
000003b0  35 35 0d 01 4a 08 c8 97  20 ee 0d 01 54 05 f5 0d  |55..J... ...T...|
000003c0  01 5e 0b 41 24 3d bf 28  30 29 0d 01 68 34 e7 20  |.^.A$=.(0)..h4. |
000003d0  41 24 3c 22 31 22 20 84  20 41 24 3e 22 39 22 20  |A$<"1" . A$>"9" |
000003e0  84 20 28 41 24 3d 22 45  22 20 80 20 ac 20 65 64  |. (A$="E" . . ed|
000003f0  69 74 6f 72 25 29 20 8c  20 41 24 3d 22 22 0d 01  |itor%) . A$=""..|
00000400  72 0f c8 97 20 58 25 2c  59 25 2c 5a 25 0d 01 7c  |r... X%,Y%,Z%..||
00000410  0d e7 20 5a 25 3c 3e 30  20 8c 0d 01 86 08 5a 25  |.. Z%<>0 .....Z%|
00000420  3d 30 0d 01 90 31 e7 20  58 25 3e 31 30 32 34 20  |=0...1. X%>1024 |
00000430  80 20 58 25 3c 31 31 38  34 20 80 20 59 25 3c 37  |. X%<1184 . Y%<7|
00000440  38 34 20 80 20 59 25 3e  37 32 30 20 8c 20 5a 25  |84 . Y%>720 . Z%|
00000450  3d 31 30 0d 01 9a 3a e7  20 65 64 69 74 6f 72 25  |=10...:. editor%|
00000460  20 80 20 58 25 3e 31 30  32 34 20 80 20 58 25 3c  | . X%>1024 . X%<|
00000470  31 31 38 34 20 80 20 59  25 3c 36 39 32 20 80 20  |1184 . Y%<692 . |
00000480  59 25 3e 36 32 30 20 8c  20 5a 25 3d 39 0d 01 a4  |Y%>620 . Z%=9...|
00000490  40 e7 20 58 25 3e 31 32  38 20 80 20 58 25 3c 39  |@. X%>128 . X%<9|
000004a0  39 32 20 80 20 59 25 3c  37 38 34 20 80 20 59 25  |92 . Y%<784 . Y%|
000004b0  3e 38 38 30 2d 49 25 2a  39 36 20 8c 20 5a 25 3d  |>880-I%*96 . Z%=|
000004c0  28 37 38 34 2d 59 25 29  2f 39 36 2b 31 0d 01 ae  |(784-Y%)/96+1...|
000004d0  05 cd 0d 01 b8 34 fd 20  41 24 3d 22 51 22 20 84  |.....4. A$="Q" .|
000004e0  20 41 24 3d 22 45 22 20  84 20 28 41 24 3e 3d 22  | A$="E" . (A$>="|
000004f0  31 22 20 80 20 bb 28 41  24 29 3c 49 25 29 20 84  |1" . .(A$)<I%) .|
00000500  20 5a 25 3c 3e 30 0d 01  c2 22 e7 20 41 24 3d 22  | Z%<>0...". A$="|
00000510  45 22 20 84 20 5a 25 3d  39 20 8c 20 d7 22 21 47  |E" . Z%=9 . ."!G|
00000520  61 6d 65 45 64 69 74 22  0d 01 cc 1c e7 20 41 24  |ameEdit"..... A$|
00000530  3d 22 51 22 20 84 20 5a  25 3d 31 30 20 8c 20 f2  |="Q" . Z%=10 . .|
00000540  71 75 69 74 0d 01 d6 15  e7 20 5a 25 3d 30 20 8c  |quit..... Z%=0 .|
00000550  20 5a 25 3d bb 28 41 24  29 0d 01 e0 10 d7 22 21  | Z%=.(A$)....."!|
00000560  47 61 6d 65 50 6c 61 79  22 0d 01 ea 05 3a 0d 01  |GamePlay"....:..|
00000570  f4 0a dd f2 71 75 69 74  0d 01 fe 15 eb 31 32 3a  |....quit.....12:|
00000580  ff 22 46 58 32 32 30 2c  32 37 2c 30 22 0d 02 08  |."FX220,27,0"...|
00000590  0d 2a 44 49 53 4d 4f 55  4e 54 0d 02 12 05 e0 0d  |.*DISMOUNT......|
000005a0  ff                                                |.|
000005a1