Lamplighter: the design

Lamplighter is a platform game in one Tcl script. Night falls on a hill town, and you carry the last flame. Play it on the Toys page.

The widget

Each level is a walk through 2 or 3 streets, and each street is a tab of a ttk::notebook. A tab opens (.nb tab N -state normal) when you walk off the right edge of the street before it. The text of each tab has a dot for each lamp, and a lit lamp fills its dot. A click on a tab that you saw takes you back to the start of that street, through <<NotebookTabChanged>>. A stylesheet gives the notebook the colors of the night.

The goal and the pressure

The levels

The first level teaches by its layout, with no text: a lamp at walking height on flat ground, then a step and a lamp on a roof. Each later level adds one idea:

Level Streets The new idea
Lantern Lane 2 Walk, jump, touch a lamp.
Mill Steps 3 Ledges that you jump up through, and a spring.
The Ford 3 Boats that swing over the water and carry you.
Bell Tower 3 Boards that break 40 frames after you step on them and come back.
Hilltop 3 All of them, and a lamp that you light in the air.

The feel

The art and the sound

The palette has two sets of colors, dusk and night, and the dark of the level mixes them: 20 bands of the sky, two lines of hills, the roofs, and the stars that come out. A lit lamp has six rings of glow, each one a mix of the gold of the lamp into the sky behind it. The sound effects and the music (a slow bell theme in A minor on the title, a walking theme in the level) are made at run time by assets/toysound.js.

The checks