Home » Archimedes archive » Archimedes World » AW-1996-01-Disc2.adf » !Go-GoDemo_Go-GoDemo » !Go-GoDemo/!Run

!Go-GoDemo/!Run

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-1996-01-Disc2.adf » !Go-GoDemo_Go-GoDemo
Filename: !Go-GoDemo/!Run
Read OK:
File size: 068D bytes
Load address: 0000
Exec address: 0000
File contents
| run file for Go-Go!
|

RMEnsure SharedCLibrary 3.50 If "<System$Path>" <> "" then RMLoad System:Modules.Clib
RMEnsure SharedCLibrary 3.50 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure SharedCLibrary 3.50 Error You need Clib 3.50 or later

RMEnsure ColourTrans 0.52 If "<System$Path>" <> "" then RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.52 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure ColourTrans 0.52 Error 0 You need ColourTrans 0.52 or later

RMEnsure FPEmulator 2.70 If "<System$Path>" <> "" then RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.70 If "<System$Path>"  = "" then Error 0 Please open a directory display containing !System
RMEnsure FPEmulator 2.70 Error You need FPEmulator 2.70 or later

RMEnsure GoGoSound 1.00 RMLoad <Obey$Dir>.GoGoSound
RMEnsure GoGoSound 1.00 Error I can't find the sound support module

RMEnsure BorderUtils 0 RMEnsure WindowManager 3.17 RMLoad <Obey$Dir>.BorderUtil

IconSprites <Obey$Dir>.!Sprites       
Set Go-Go$Dir <Obey$Dir>

| **** MAKE SURE THERE ARE NO SPACES AT THE END OF THESE PATHS ****

| location of pointers
Set Go-Go$Pointers <Go-Go$Dir>.^.Pointers

| location of sounds
Set Go-Go$Sounds   <Go-Go$Dir>.^.Sounds

| location of scenes
Set Go-Go$Scenes   <Go-Go$Dir>.^.Scenes

| place to store files saved with just a leafname
Set Go-Go$Files    <Go-Go$Dir>.^.Examples

| location of choices
Set Go-Go$Choices  <Go-Go$Dir>.Choices

| we do a double WimpSlot because the C libraries claim 64k as soon as we are loaded
WimpSlot -min 352k 
WimpSlot -min 288k -max 288k
Run <Go-Go$Dir>.!RunImage %*0
00000000  7c 20 72 75 6e 20 66 69  6c 65 20 66 6f 72 20 47  || run file for G|
00000010  6f 2d 47 6f 21 0a 7c 0a  0a 52 4d 45 6e 73 75 72  |o-Go!.|..RMEnsur|
00000020  65 20 53 68 61 72 65 64  43 4c 69 62 72 61 72 79  |e SharedCLibrary|
00000030  20 33 2e 35 30 20 49 66  20 22 3c 53 79 73 74 65  | 3.50 If "<Syste|
00000040  6d 24 50 61 74 68 3e 22  20 3c 3e 20 22 22 20 74  |m$Path>" <> "" t|
00000050  68 65 6e 20 52 4d 4c 6f  61 64 20 53 79 73 74 65  |hen RMLoad Syste|
00000060  6d 3a 4d 6f 64 75 6c 65  73 2e 43 6c 69 62 0a 52  |m:Modules.Clib.R|
00000070  4d 45 6e 73 75 72 65 20  53 68 61 72 65 64 43 4c  |MEnsure SharedCL|
00000080  69 62 72 61 72 79 20 33  2e 35 30 20 49 66 20 22  |ibrary 3.50 If "|
00000090  3c 53 79 73 74 65 6d 24  50 61 74 68 3e 22 20 20  |<System$Path>"  |
000000a0  3d 20 22 22 20 74 68 65  6e 20 45 72 72 6f 72 20  |= "" then Error |
000000b0  30 20 50 6c 65 61 73 65  20 6f 70 65 6e 20 61 20  |0 Please open a |
000000c0  64 69 72 65 63 74 6f 72  79 20 64 69 73 70 6c 61  |directory displa|
000000d0  79 20 63 6f 6e 74 61 69  6e 69 6e 67 20 21 53 79  |y containing !Sy|
000000e0  73 74 65 6d 0a 52 4d 45  6e 73 75 72 65 20 53 68  |stem.RMEnsure Sh|
000000f0  61 72 65 64 43 4c 69 62  72 61 72 79 20 33 2e 35  |aredCLibrary 3.5|
00000100  30 20 45 72 72 6f 72 20  59 6f 75 20 6e 65 65 64  |0 Error You need|
00000110  20 43 6c 69 62 20 33 2e  35 30 20 6f 72 20 6c 61  | Clib 3.50 or la|
00000120  74 65 72 0a 0a 52 4d 45  6e 73 75 72 65 20 43 6f  |ter..RMEnsure Co|
00000130  6c 6f 75 72 54 72 61 6e  73 20 30 2e 35 32 20 49  |lourTrans 0.52 I|
00000140  66 20 22 3c 53 79 73 74  65 6d 24 50 61 74 68 3e  |f "<System$Path>|
00000150  22 20 3c 3e 20 22 22 20  74 68 65 6e 20 52 4d 4c  |" <> "" then RML|
00000160  6f 61 64 20 53 79 73 74  65 6d 3a 4d 6f 64 75 6c  |oad System:Modul|
00000170  65 73 2e 43 6f 6c 6f 75  72 73 0a 52 4d 45 6e 73  |es.Colours.RMEns|
00000180  75 72 65 20 43 6f 6c 6f  75 72 54 72 61 6e 73 20  |ure ColourTrans |
00000190  30 2e 35 32 20 49 66 20  22 3c 53 79 73 74 65 6d  |0.52 If "<System|
000001a0  24 50 61 74 68 3e 22 20  20 3d 20 22 22 20 74 68  |$Path>"  = "" th|
000001b0  65 6e 20 45 72 72 6f 72  20 30 20 50 6c 65 61 73  |en Error 0 Pleas|
000001c0  65 20 6f 70 65 6e 20 61  20 64 69 72 65 63 74 6f  |e open a directo|
000001d0  72 79 20 64 69 73 70 6c  61 79 20 63 6f 6e 74 61  |ry display conta|
000001e0  69 6e 69 6e 67 20 21 53  79 73 74 65 6d 0a 52 4d  |ining !System.RM|
000001f0  45 6e 73 75 72 65 20 43  6f 6c 6f 75 72 54 72 61  |Ensure ColourTra|
00000200  6e 73 20 30 2e 35 32 20  45 72 72 6f 72 20 30 20  |ns 0.52 Error 0 |
00000210  59 6f 75 20 6e 65 65 64  20 43 6f 6c 6f 75 72 54  |You need ColourT|
00000220  72 61 6e 73 20 30 2e 35  32 20 6f 72 20 6c 61 74  |rans 0.52 or lat|
00000230  65 72 0a 0a 52 4d 45 6e  73 75 72 65 20 46 50 45  |er..RMEnsure FPE|
00000240  6d 75 6c 61 74 6f 72 20  32 2e 37 30 20 49 66 20  |mulator 2.70 If |
00000250  22 3c 53 79 73 74 65 6d  24 50 61 74 68 3e 22 20  |"<System$Path>" |
00000260  3c 3e 20 22 22 20 74 68  65 6e 20 52 4d 4c 6f 61  |<> "" then RMLoa|
00000270  64 20 53 79 73 74 65 6d  3a 4d 6f 64 75 6c 65 73  |d System:Modules|
00000280  2e 46 50 45 6d 75 6c 61  74 6f 72 0a 52 4d 45 6e  |.FPEmulator.RMEn|
00000290  73 75 72 65 20 46 50 45  6d 75 6c 61 74 6f 72 20  |sure FPEmulator |
000002a0  32 2e 37 30 20 49 66 20  22 3c 53 79 73 74 65 6d  |2.70 If "<System|
000002b0  24 50 61 74 68 3e 22 20  20 3d 20 22 22 20 74 68  |$Path>"  = "" th|
000002c0  65 6e 20 45 72 72 6f 72  20 30 20 50 6c 65 61 73  |en Error 0 Pleas|
000002d0  65 20 6f 70 65 6e 20 61  20 64 69 72 65 63 74 6f  |e open a directo|
000002e0  72 79 20 64 69 73 70 6c  61 79 20 63 6f 6e 74 61  |ry display conta|
000002f0  69 6e 69 6e 67 20 21 53  79 73 74 65 6d 0a 52 4d  |ining !System.RM|
00000300  45 6e 73 75 72 65 20 46  50 45 6d 75 6c 61 74 6f  |Ensure FPEmulato|
00000310  72 20 32 2e 37 30 20 45  72 72 6f 72 20 59 6f 75  |r 2.70 Error You|
00000320  20 6e 65 65 64 20 46 50  45 6d 75 6c 61 74 6f 72  | need FPEmulator|
00000330  20 32 2e 37 30 20 6f 72  20 6c 61 74 65 72 0a 0a  | 2.70 or later..|
00000340  52 4d 45 6e 73 75 72 65  20 47 6f 47 6f 53 6f 75  |RMEnsure GoGoSou|
00000350  6e 64 20 31 2e 30 30 20  52 4d 4c 6f 61 64 20 3c  |nd 1.00 RMLoad <|
00000360  4f 62 65 79 24 44 69 72  3e 2e 47 6f 47 6f 53 6f  |Obey$Dir>.GoGoSo|
00000370  75 6e 64 0a 52 4d 45 6e  73 75 72 65 20 47 6f 47  |und.RMEnsure GoG|
00000380  6f 53 6f 75 6e 64 20 31  2e 30 30 20 45 72 72 6f  |oSound 1.00 Erro|
00000390  72 20 49 20 63 61 6e 27  74 20 66 69 6e 64 20 74  |r I can't find t|
000003a0  68 65 20 73 6f 75 6e 64  20 73 75 70 70 6f 72 74  |he sound support|
000003b0  20 6d 6f 64 75 6c 65 0a  0a 52 4d 45 6e 73 75 72  | module..RMEnsur|
000003c0  65 20 42 6f 72 64 65 72  55 74 69 6c 73 20 30 20  |e BorderUtils 0 |
000003d0  52 4d 45 6e 73 75 72 65  20 57 69 6e 64 6f 77 4d  |RMEnsure WindowM|
000003e0  61 6e 61 67 65 72 20 33  2e 31 37 20 52 4d 4c 6f  |anager 3.17 RMLo|
000003f0  61 64 20 3c 4f 62 65 79  24 44 69 72 3e 2e 42 6f  |ad <Obey$Dir>.Bo|
00000400  72 64 65 72 55 74 69 6c  0a 0a 49 63 6f 6e 53 70  |rderUtil..IconSp|
00000410  72 69 74 65 73 20 3c 4f  62 65 79 24 44 69 72 3e  |rites <Obey$Dir>|
00000420  2e 21 53 70 72 69 74 65  73 20 20 20 20 20 20 20  |.!Sprites       |
00000430  0a 53 65 74 20 47 6f 2d  47 6f 24 44 69 72 20 3c  |.Set Go-Go$Dir <|
00000440  4f 62 65 79 24 44 69 72  3e 0a 0a 7c 20 2a 2a 2a  |Obey$Dir>..| ***|
00000450  2a 20 4d 41 4b 45 20 53  55 52 45 20 54 48 45 52  |* MAKE SURE THER|
00000460  45 20 41 52 45 20 4e 4f  20 53 50 41 43 45 53 20  |E ARE NO SPACES |
00000470  41 54 20 54 48 45 20 45  4e 44 20 4f 46 20 54 48  |AT THE END OF TH|
00000480  45 53 45 20 50 41 54 48  53 20 2a 2a 2a 2a 0a 0a  |ESE PATHS ****..|
00000490  7c 20 6c 6f 63 61 74 69  6f 6e 20 6f 66 20 70 6f  || location of po|
000004a0  69 6e 74 65 72 73 0a 53  65 74 20 47 6f 2d 47 6f  |inters.Set Go-Go|
000004b0  24 50 6f 69 6e 74 65 72  73 20 3c 47 6f 2d 47 6f  |$Pointers <Go-Go|
000004c0  24 44 69 72 3e 2e 5e 2e  50 6f 69 6e 74 65 72 73  |$Dir>.^.Pointers|
000004d0  0a 0a 7c 20 6c 6f 63 61  74 69 6f 6e 20 6f 66 20  |..| location of |
000004e0  73 6f 75 6e 64 73 0a 53  65 74 20 47 6f 2d 47 6f  |sounds.Set Go-Go|
000004f0  24 53 6f 75 6e 64 73 20  20 20 3c 47 6f 2d 47 6f  |$Sounds   <Go-Go|
00000500  24 44 69 72 3e 2e 5e 2e  53 6f 75 6e 64 73 0a 0a  |$Dir>.^.Sounds..|
00000510  7c 20 6c 6f 63 61 74 69  6f 6e 20 6f 66 20 73 63  || location of sc|
00000520  65 6e 65 73 0a 53 65 74  20 47 6f 2d 47 6f 24 53  |enes.Set Go-Go$S|
00000530  63 65 6e 65 73 20 20 20  3c 47 6f 2d 47 6f 24 44  |cenes   <Go-Go$D|
00000540  69 72 3e 2e 5e 2e 53 63  65 6e 65 73 0a 0a 7c 20  |ir>.^.Scenes..| |
00000550  70 6c 61 63 65 20 74 6f  20 73 74 6f 72 65 20 66  |place to store f|
00000560  69 6c 65 73 20 73 61 76  65 64 20 77 69 74 68 20  |iles saved with |
00000570  6a 75 73 74 20 61 20 6c  65 61 66 6e 61 6d 65 0a  |just a leafname.|
00000580  53 65 74 20 47 6f 2d 47  6f 24 46 69 6c 65 73 20  |Set Go-Go$Files |
00000590  20 20 20 3c 47 6f 2d 47  6f 24 44 69 72 3e 2e 5e  |   <Go-Go$Dir>.^|
000005a0  2e 45 78 61 6d 70 6c 65  73 0a 0a 7c 20 6c 6f 63  |.Examples..| loc|
000005b0  61 74 69 6f 6e 20 6f 66  20 63 68 6f 69 63 65 73  |ation of choices|
000005c0  0a 53 65 74 20 47 6f 2d  47 6f 24 43 68 6f 69 63  |.Set Go-Go$Choic|
000005d0  65 73 20 20 3c 47 6f 2d  47 6f 24 44 69 72 3e 2e  |es  <Go-Go$Dir>.|
000005e0  43 68 6f 69 63 65 73 0a  0a 7c 20 77 65 20 64 6f  |Choices..| we do|
000005f0  20 61 20 64 6f 75 62 6c  65 20 57 69 6d 70 53 6c  | a double WimpSl|
00000600  6f 74 20 62 65 63 61 75  73 65 20 74 68 65 20 43  |ot because the C|
00000610  20 6c 69 62 72 61 72 69  65 73 20 63 6c 61 69 6d  | libraries claim|
00000620  20 36 34 6b 20 61 73 20  73 6f 6f 6e 20 61 73 20  | 64k as soon as |
00000630  77 65 20 61 72 65 20 6c  6f 61 64 65 64 0a 57 69  |we are loaded.Wi|
00000640  6d 70 53 6c 6f 74 20 2d  6d 69 6e 20 33 35 32 6b  |mpSlot -min 352k|
00000650  20 0a 57 69 6d 70 53 6c  6f 74 20 2d 6d 69 6e 20  | .WimpSlot -min |
00000660  32 38 38 6b 20 2d 6d 61  78 20 32 38 38 6b 0a 52  |288k -max 288k.R|
00000670  75 6e 20 3c 47 6f 2d 47  6f 24 44 69 72 3e 2e 21  |un <Go-Go$Dir>.!|
00000680  52 75 6e 49 6d 61 67 65  20 25 2a 30 0a           |RunImage %*0.|
0000068d