Home » Archimedes archive » Acorn User » AU 1994-10.adf » !Adventure_Adventure » zcode/Shell

zcode/Shell

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 1994-10.adf » !Adventure_Adventure
Filename: zcode/Shell
Read OK:
File size: 0218 bytes
Load address: 0000
Exec address: 0000
File contents
! ----------------------------------------------------------------------------
! Shell of a game
! ----------------------------------------------------------------------------

Constant Story "SHELL";
Constant Headline "^An Interactive Skeleton^\
             Copyright (c) 1994 by (your name here).^";

#include "Parser";
#include "VerbLib";

Object Blank_Room "Blank Room"
  with description "An empty room."
  has  light;

[ Initialise;
  location = Blank_Room;
  print "^^^^^Welcome to the shell...^^";
];

#include "Grammar";
end;
00000000  21 20 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |! --------------|
00000010  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 21  |--------------.!|
00000050  20 53 68 65 6c 6c 20 6f  66 20 61 20 67 61 6d 65  | Shell of a game|
00000060  0a 21 20 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |.! -------------|
00000070  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000000a0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 0a  |---------------.|
000000b0  0a 43 6f 6e 73 74 61 6e  74 20 53 74 6f 72 79 20  |.Constant Story |
000000c0  22 53 48 45 4c 4c 22 3b  0a 43 6f 6e 73 74 61 6e  |"SHELL";.Constan|
000000d0  74 20 48 65 61 64 6c 69  6e 65 20 22 5e 41 6e 20  |t Headline "^An |
000000e0  49 6e 74 65 72 61 63 74  69 76 65 20 53 6b 65 6c  |Interactive Skel|
000000f0  65 74 6f 6e 5e 5c 0a 20  20 20 20 20 20 20 20 20  |eton^\.         |
00000100  20 20 20 20 43 6f 70 79  72 69 67 68 74 20 28 63  |    Copyright (c|
00000110  29 20 31 39 39 34 20 62  79 20 28 79 6f 75 72 20  |) 1994 by (your |
00000120  6e 61 6d 65 20 68 65 72  65 29 2e 5e 22 3b 0a 0a  |name here).^";..|
00000130  23 69 6e 63 6c 75 64 65  20 22 50 61 72 73 65 72  |#include "Parser|
00000140  22 3b 0a 23 69 6e 63 6c  75 64 65 20 22 56 65 72  |";.#include "Ver|
00000150  62 4c 69 62 22 3b 0a 0a  4f 62 6a 65 63 74 20 42  |bLib";..Object B|
00000160  6c 61 6e 6b 5f 52 6f 6f  6d 20 22 42 6c 61 6e 6b  |lank_Room "Blank|
00000170  20 52 6f 6f 6d 22 0a 20  20 77 69 74 68 20 64 65  | Room".  with de|
00000180  73 63 72 69 70 74 69 6f  6e 20 22 41 6e 20 65 6d  |scription "An em|
00000190  70 74 79 20 72 6f 6f 6d  2e 22 0a 20 20 68 61 73  |pty room.".  has|
000001a0  20 20 6c 69 67 68 74 3b  0a 0a 5b 20 49 6e 69 74  |  light;..[ Init|
000001b0  69 61 6c 69 73 65 3b 0a  20 20 6c 6f 63 61 74 69  |ialise;.  locati|
000001c0  6f 6e 20 3d 20 42 6c 61  6e 6b 5f 52 6f 6f 6d 3b  |on = Blank_Room;|
000001d0  0a 20 20 70 72 69 6e 74  20 22 5e 5e 5e 5e 5e 57  |.  print "^^^^^W|
000001e0  65 6c 63 6f 6d 65 20 74  6f 20 74 68 65 20 73 68  |elcome to the sh|
000001f0  65 6c 6c 2e 2e 2e 5e 5e  22 3b 0a 5d 3b 0a 0a 23  |ell...^^";.];..#|
00000200  69 6e 63 6c 75 64 65 20  22 47 72 61 6d 6d 61 72  |include "Grammar|
00000210  22 3b 0a 65 6e 64 3b 0a                           |";.end;.|
00000218