Inform - Resources - Examples

Back to List

Inventory
Complete

Plain
Coloured
Gaudy

Browsing Alice1.inf

This is the complete source code of the example game Alice1.inf.

01  ! Through the Looking-Glass
02  ! An Inform tutorial by Gareth Rees
03  ! All rights given away
04  ! Version 1
05   
06  Constant Story "THROUGH THE LOOKING GLASS";
07  Constant Headline "^An Interactive Tutorial^by Gareth Rees^";
08  Constant DEBUG;
09   
10  Include "parser";
11  Include "verblib";
12  Include "grammar";
13   
14  Object  Drawing_Room "Drawing room"
15   has    light
16   with   name "snow",
17          description "The gentle sound of snow against the window pane
18              suggests that it's cold outside, and you're glad to be here
19              in the warmth. The drawing-room is reflected in the large
20              looking-glass on the wall above the mantelpiece, and a very
21              comfortable room it is too, with a warm hearth, a soft rug
22              and an arm-chair that you can curl up and sleep in.";
23   
24  [ Initialise;
25      location = Drawing_Room;
26      print "^^^^^It's a cold winter day outside, but in the looking-glass
27          house it's summer. All you need to do is pretend there's a way of
28          getting through into it somehow...^^";
29  ];
30   


Last updated 23 June 2004. This web site has not been fully supported since April 2008. Information may be out of date. This page was originally managed by Graham Nelson (graham@gnelson.demon.co.uk) assisted by C Knight.