Inform 7 Snippets  

Light

< Back Home

 
  • (See also 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.
  • 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.
  • Temporary Portable Light
    This is an example of one way to create a portable light source (flashlight device) that will provide light for a limited amount of time based on the number of turns.
  • 10 Minutes of Light
    This is an example of one way to create a light source that will provide light for a limited amount of time based on the time of day. This also demonstrates how to change the status bar display. Please note this game is unwinnable.
     
   

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.