The Candle: a browser ghost story powered by Gemma 4 and an open-weight model
A developer built The Candle, a browser-based haunted-room game entered in DEV's Hacktoberfest Open-Source AI Challenge, themed "Ghost in the Machine." Players blow into a microphone or hover the cursor to extinguish a candle, after which a ghost answers in the dark. Each of five ghosts has its own voice, backstory, and secret, and players unlock the house's story by picking reply options and questioning the right ghosts. Gemma 4, accessed through Backboard and OpenRouter, generates the ghosts' lines and reply choices, while ElevenLabs provides voices with a Piper fallback. The project is open source under the MIT license, with the code and a live demo available.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in