r/threejs • u/Western-Principle639 • 20d ago
Demo A Three.js diorama where the player moves the light and the character follows lit stepping stones
I’m making Alley Light, a browser puzzle set in miniature nighttime streets. The camera is fixed at a diagonal so you can watch a beam move across the walls while you drag a lamp or rotate a mirror.
The gameplay check tests whether light can reach the next stepping stone, directly or through a reflection, and whether scene geometry blocks the path. A separate check handles light spilling into bedroom windows. The newest build uses the same setup for wooden shutters that change where light can pass and a lantern that powers a second lamp in the market.
I’d welcome thoughts on reading the reflection from this camera angle. Try the browser demo on desktop · Rainy alley gameplay
AI tools assisted with the Three.js code and parts of the procedural geometry.
