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.
  • Rooms Within Rooms
    This is a simple example of how one might create an enterable container to serve as a tent that the player can enter and exit plus few other container 'tricks'.
  • 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.
  • A Lighter in the Dark
    This is a brief example of starting a game in a dark room and the player must use a lighter before they are allowed to leave. It also creates a lighter that will only work for a brief period of time (two turns) and works as a 'pseudo-device' instead of a device. This was an idea given to me by two of my students in the Fall 2009 New Media Perspectives class.
  • 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.