At Start Toyshop.inf begins (lines 1-56)
Back to List
Forward
Browsing Toyshop.inf
001 ! ----------------------------------------------------------------------------
002 ! Toyshop 961111 One of the standard Inform 6 example games
003 !
004 ! This is not a real game. The main example game for Inform is "Advent",
005 ! a port of Colossal Cave. Since that's something of an antique, and most
006 ! of the objects in it are rather simple, this is a collection of more
007 ! exotic features and peculiar objects. Note that "Advent" has plenty of
008 ! interesting doors, a good lantern and bottled oil and water, so those
009 ! won't be part of the Toyshop.
010 !
011 ! Needs Inform 6 with library 6/1 or later to compile.
012 !
013 ! To win, simply find 6 interesting things to do and leave by the main exit!
014 !
015 ! Object Is an example of...
016 !
017 ! >SA satchel Container into which the game silently puts things
018 ! >HE helium balloon Something moving under the control of a daemon
019 ! >CA little red car Vehicle, and pushable from place to place
020 ! >PF padded floor Scenery present in several rooms at once
021 ! >GR hand grenade Timed events: a grenade and its pin
022 ! >MA matchbook Simple fire and matches; changing inventory styles
023 ! >WC white candles A stock of objects identical to each other
024 ! >GL white gloves Two independent objects which can behave as a pair
025 ! >CO green cone Easy before and after rules
026 ! >HW high window Starting and stopping daemons
027 ! >BC bolted cupboard A typical locked container (with key)
028 ! >GB glass box Container light can get through
029 ! >SB steel box Container light can't get through
030 ! >BL building blocks A complicated class definition; piles of objects
031 ! >CH Christopher Someone you can talk to, and persuade to do things
032 ! >OF Office Rules about moving in a particular direction
033 ! >TB toothed bag A container with ideas about what it will allow
034 ! >SL spirit level Something to put on top of things
035 ! >BB blackboard A blackboard to write messages on
036 !
037 ! (The code is marked with >SA and so on for easy access with a text editor)
038 ! ----------------------------------------------------------------------------
039 Constant DEBUG;
040 Constant Story "TOYSHOP";
041 Constant Headline "^An Interactive Demonstration^
042 Copyright (c) 1994 by Graham Nelson. All rights given away.^";
043 Release 4;
044 Serial "961111"; ! This sets the serial date to the date of this source
045 ! file, not to the date of compilation.
046
047 ! Now we serve notice to Inform that we do not wish to use the standard
048 ! routine for the Burn action, and will instead be defining our own:
049
050 Replace BurnSub;
051
052 ! Next include the first of the three standard library files:
053
054 Include "Parser";
055
056 ! ----------------------------------------------------------------------------
Last updated 23 June 2004.
This site is no longer supported; information may be out of date.
Maintained as a historical archive by the Interactive Fiction Technology Foundation.
Copyright 1993-2018 IFTF, CC-BY-SA unless otherwise noted.
This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.