Inform 7 Snippets  

Rooms

< Back Home

 
  • Different Kinds of Exits
    A demonstration of how we can manipulate exits to other rooms. Here we create a room with a 'one-way' exit and also a closet that, when you leave the way you came in, you end up somewhere else.
  • I Have the Strength of Ten Men
    This is a simple demonstration of how touching some moss gives the player great strength to remove a table that blocks your path.
  • Secret Room
    This demonstrates how we might create a secret room that is only accessible by a special closet elevator utilizing a device and playing with room mapping. This is based on 'The Unbuttoned Elevator Affair' example in Chapter 3.3 in the Inform documentation.

Dark Rooms

  • (See also Devices)
  • Portable Light (flashlight device)
    This is a very common and simple example of how to create a portable light source that can be carried by the player to provide light in dark rooms.
  • Portable Light (candle)
    This is a very common and simple example of how to create a portable light source that can be carried by the player to provide light in dark rooms.
  • Light Switch
    I very often get requests about how to turn the lights on in a dark room. Since, by default, we cannot see or interact with anything in a dark room, some device must be placed external to the dark room. This example demonstrates one way to turn on the lights in a dark room.
  • The Scope of the Dark Room
    Occasionally I have had requests about how to turn the lights in a room (making it a dark room) but then being able to turn the lights back on.
  • Finding a Light Switch in a Dark Room
    Finding a light switch in a dark room is a request I often hear from students. To accomplish this, we must create the 'illusion' of a dark room by creating a workaround. This example demonstrates one way to do this.
     
   

The examples and snippets were created with Inform 7.

To play the examples available here, you need an interpreter program: many are available, among them Zoom for Mac OS X and for Unix, and Windows Frotz for Windows.