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.