Home » Archimedes archive » Acorn User » AU 1998-08.adf » Freeware » PD/IntFiction/DavidRPG2/!DavidRPG2/Docs/Exercise3

PD/IntFiction/DavidRPG2/!DavidRPG2/Docs/Exercise3

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/Exercise3
Read OK:
File size: 01F5 bytes
Load address: 0000
Exec address: 0000
File contents
| Exercise 3
| David Spence 1998

name = Exercise 3
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)
}

player {
name: "Player"
text: "This is where the title screen goes."
}

object bat {
name: "bat"
text: "It is a long baseball bat."
move: yes
}
00000000  7c 20 45 78 65 72 63 69  73 65 20 33 0a 7c 20 44  || Exercise 3.| 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 33 0a 61 64 76 65  6e 74 75 72 65 20 3d 20  |e 3.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 7d 0a 0a 70 6c 61  79 65 72 20 7b 0a 6e 61  |).}..player {.na|
00000170  6d 65 3a 20 22 50 6c 61  79 65 72 22 0a 74 65 78  |me: "Player".tex|
00000180  74 3a 20 22 54 68 69 73  20 69 73 20 77 68 65 72  |t: "This is wher|
00000190  65 20 74 68 65 20 74 69  74 6c 65 20 73 63 72 65  |e the title scre|
000001a0  65 6e 20 67 6f 65 73 2e  22 0a 7d 0a 0a 6f 62 6a  |en goes.".}..obj|
000001b0  65 63 74 20 62 61 74 20  7b 0a 6e 61 6d 65 3a 20  |ect bat {.name: |
000001c0  22 62 61 74 22 0a 74 65  78 74 3a 20 22 49 74 20  |"bat".text: "It |
000001d0  69 73 20 61 20 6c 6f 6e  67 20 62 61 73 65 62 61  |is a long baseba|
000001e0  6c 6c 20 62 61 74 2e 22  0a 6d 6f 76 65 3a 20 79  |ll bat.".move: y|
000001f0  65 73 0a 7d 0a                                    |es.}.|
000001f5