Home » Archimedes archive » Acorn User » AU 1998-08.adf » Freeware » PD/IntFiction/DavidRPG2/!DavidRPG2/Docs/Exercise5
PD/IntFiction/DavidRPG2/!DavidRPG2/Docs/Exercise5
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 » Acorn User » AU 1998-08.adf » Freeware |
Filename: | PD/IntFiction/DavidRPG2/!DavidRPG2/Docs/Exercise5 |
Read OK: | ✔ |
File size: | 0263 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
| Exercise 5 | David Spence 1998 name = Exercise 5 adventure = tutorial file author = David Spence 1998 version = 0 room one start { name: "Test Room 1" text: "Our first room." north: goto(two) objects: bat } room two { name: "Test Room 1" text: "Our second room." "The decription can be on more than" "one line!" south: goto(one) people: man } player { name: "Player" text: "This is where the title screen goes." } object bat { name: "bat" text: "It is a long baseball bat." move: yes } person man { name: "man" text: "A tall man." talk: { "hello": print("The man says: Hello\n") } }
00000000 7c 20 45 78 65 72 63 69 73 65 20 35 0a 7c 20 44 || Exercise 5.| D| 00000010 61 76 69 64 20 53 70 65 6e 63 65 20 31 39 39 38 |avid Spence 1998| 00000020 0a 0a 6e 61 6d 65 20 3d 20 45 78 65 72 63 69 73 |..name = Exercis| 00000030 65 20 35 0a 61 64 76 65 6e 74 75 72 65 20 3d 20 |e 5.adventure = | 00000040 74 75 74 6f 72 69 61 6c 20 66 69 6c 65 0a 61 75 |tutorial file.au| 00000050 74 68 6f 72 20 3d 20 44 61 76 69 64 20 53 70 65 |thor = David Spe| 00000060 6e 63 65 20 31 39 39 38 0a 76 65 72 73 69 6f 6e |nce 1998.version| 00000070 20 3d 20 30 0a 0a 72 6f 6f 6d 20 6f 6e 65 20 73 | = 0..room one s| 00000080 74 61 72 74 20 7b 0a 6e 61 6d 65 3a 20 20 20 20 |tart {.name: | 00000090 22 54 65 73 74 20 52 6f 6f 6d 20 31 22 0a 74 65 |"Test Room 1".te| 000000a0 78 74 3a 20 20 20 20 22 4f 75 72 20 66 69 72 73 |xt: "Our firs| 000000b0 74 20 72 6f 6f 6d 2e 22 0a 6e 6f 72 74 68 3a 20 |t room.".north: | 000000c0 20 20 67 6f 74 6f 28 74 77 6f 29 0a 6f 62 6a 65 | goto(two).obje| 000000d0 63 74 73 3a 20 62 61 74 0a 7d 0a 0a 72 6f 6f 6d |cts: bat.}..room| 000000e0 20 74 77 6f 20 7b 0a 6e 61 6d 65 3a 20 22 54 65 | two {.name: "Te| 000000f0 73 74 20 52 6f 6f 6d 20 31 22 0a 74 65 78 74 3a |st Room 1".text:| 00000100 20 22 4f 75 72 20 73 65 63 6f 6e 64 20 72 6f 6f | "Our second roo| 00000110 6d 2e 22 0a 20 20 20 20 20 20 22 54 68 65 20 64 |m.". "The d| 00000120 65 63 72 69 70 74 69 6f 6e 20 63 61 6e 20 62 65 |ecription can be| 00000130 20 6f 6e 20 6d 6f 72 65 20 74 68 61 6e 22 0a 20 | on more than". | 00000140 20 20 20 20 20 22 6f 6e 65 20 6c 69 6e 65 21 22 | "one line!"| 00000150 0a 73 6f 75 74 68 3a 20 67 6f 74 6f 28 6f 6e 65 |.south: goto(one| 00000160 29 0a 70 65 6f 70 6c 65 3a 20 20 6d 61 6e 0a 7d |).people: man.}| 00000170 0a 0a 70 6c 61 79 65 72 20 7b 0a 6e 61 6d 65 3a |..player {.name:| 00000180 20 22 50 6c 61 79 65 72 22 0a 74 65 78 74 3a 20 | "Player".text: | 00000190 22 54 68 69 73 20 69 73 20 77 68 65 72 65 20 74 |"This is where t| 000001a0 68 65 20 74 69 74 6c 65 20 73 63 72 65 65 6e 20 |he title screen | 000001b0 67 6f 65 73 2e 22 0a 7d 0a 0a 6f 62 6a 65 63 74 |goes.".}..object| 000001c0 20 62 61 74 20 7b 0a 6e 61 6d 65 3a 20 22 62 61 | bat {.name: "ba| 000001d0 74 22 0a 74 65 78 74 3a 20 22 49 74 20 69 73 20 |t".text: "It is | 000001e0 61 20 6c 6f 6e 67 20 62 61 73 65 62 61 6c 6c 20 |a long baseball | 000001f0 62 61 74 2e 22 0a 6d 6f 76 65 3a 20 79 65 73 0a |bat.".move: yes.| 00000200 7d 0a 0a 70 65 72 73 6f 6e 20 6d 61 6e 20 7b 0a |}..person man {.| 00000210 6e 61 6d 65 3a 20 22 6d 61 6e 22 0a 74 65 78 74 |name: "man".text| 00000220 3a 20 22 41 20 74 61 6c 6c 20 6d 61 6e 2e 22 0a |: "A tall man.".| 00000230 74 61 6c 6b 3a 20 7b 0a 22 68 65 6c 6c 6f 22 3a |talk: {."hello":| 00000240 20 70 72 69 6e 74 28 22 54 68 65 20 6d 61 6e 20 | print("The man | 00000250 73 61 79 73 3a 20 48 65 6c 6c 6f 5c 6e 22 29 0a |says: Hello\n").| 00000260 7d 0a 7d |}.}| 00000263