Five Rooms
You'll build your first parser game in Inform: five connected rooms, an object you can carry, and a locked door with the key on the wrong side of it.
About
A choice story never has to understand the player, because the links are the whole vocabulary. A parser game has to cope with whatever gets typed, and that means a world model: rooms with exits, objects with places, and rules about what can happen to what. Inform 7 is free and reads almost like English, so a line like 'The brass key is in the cellar' is real code. Inform 6, TADS, Dialog and Adventuron all work too. Five rooms is enough to learn the shape of the thing, and the locked door is the oldest puzzle there is for a reason: it teaches you the engine before it teaches the player anything.
At a glance
- Per requirement
- 25 XP
- Completion bonus
- 150 XP
- Requirements
- 6
- Takes
- One weekend
- Skill level
- Beginner (done it a few times)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- With other people
Requirements
-
1
Draw five rooms and their exits on paper, with a one-line description each. Put a loop in the map so two routes reach the same room, because a line of five rooms is a corridor and a loop is a place. Mark where the key is and where the locked door is, and make sure they're not next to each other. Take a photo of the map. Photo
-
2
Build the rooms in your system and walk the whole map with GO and LOOK. In Inform 7 a room is one sentence: 'The Kitchen is a room. The Pantry is east of the Kitchen.' Write a description for each room that mentions at least two things the player can look at. Film yourself walking the full loop and reading each room. Video
-
3
Make every noun in a room description examinable. If the description mentions a window and EXAMINE WINDOW says you can't see any such thing, the player stops trusting you. Add each one as scenery with its own description. Film yourself examining three pieces of scenery in one room. Video
-
4
Add one object the player can pick up, carry to another room and drop. Give it a description with a bit of character in it. Check that INVENTORY lists it, and that TAKE, DROP and GET all work on it. Film the object going from one room to another in a single session. Video
-
5
Put in a locked door that opens with a key found somewhere else. Inform has doors and keys built in, so you declare the door as a locked door and name the key that opens it, and the manual's chapter on doors shows the two lines. Make the door describe itself as locked when the player tries it without the key. Film the failed try, the key being found, and the door opening. Video
-
6
Release it to a web page and have one person play it without you in the room. Add the line 'Release along with an interpreter' to your source, and Inform's Release button makes a folder that plays in a browser, which itch.io hosts for free. Send the link to one person and ask them to tell you the first command the game didn't understand. Take a screenshot of the public page and put their answer in your write-up. Photo