Inspiration
I wanted to build a Halloween puzzle around one button: switching a lantern on or off. I started with a simple question: what if turning on the light makes the path easier to see but makes the room more dangerous?
What it does
Lantern Shift is a two-room puzzle game you can play in a desktop browser. In the first room, the lantern reveals a bridge you can't cross in the dark. Once you're across, you have to turn the lantern off to open the exit gate. In the second room, a ghost guards a junction. Turn the light on to lure it away, then turn the light off to freeze it and take the other route.
How I built it
I built the game with TypeScript, Vite, and HTML5 Canvas. I used Kiro IDE to turn the first room's mechanics into explicit requirements and implementation tasks, which are in the repository's .kiro directory. An early version let players finish with the lantern still on. The revised spec gave me three cases to check: staying in the dark blocks the bridge, staying in the light blocks the gate, and switching the lantern off after crossing opens the way out.
Challenges and what I learned
The first challenge was making the walkable tiles easy to read without giving away the hidden bridge. I used brightness and texture rather than outlining the whole route. In Room 2, I tied the amber hint to the ghost's current position: it disappears if the ghost returns to the junction, even if the lantern is still on. Playtesting showed me that a hint about whether a path is safe needs to reflect what's happening now, not what happened a moment ago.
How to play
Use the arrow keys or WASD to move and Space to toggle the lantern. Press any key after clearing Room 1 to enter Room 2, or after being caught to retry. An amber message in Room 2 means the ghost has left the junction. Turn off the lantern to freeze it.
Built With
- canvas
- html5
- kiro
- typescript
- vite