12 rooms in 3 books. Every wall, person, lamp and page is JavaScript on a canvas, with no images and no 3D models. Turn the pages, then switch on the night with the moon.
Drag a page to scrub it, or use the arrow keys. The tabs at the top switch books.
Each room pops up when its page opens, and every one has its own night: lamps, lit windows, fireflies or an aurora.
Unzip the code, open Claude Code in the folder, fill in your room and paste this. It adds the room to a book and checks its own screenshots by day and by night.
Five small files and one file per room. Run python3 -m http.server in the folder and open it.
engine.jsThe book: camera, page turns, pop-up timing, ink lines, sticker halos, shadows and the day-to-night blend.
mesh.jsThe 3D builder: boxes, lathes, tubes, leaves, moving parts and night lamps.
figures.jsPeople with a walk cycle, poses, hats and hair, on pacing or loop paths.
rooms/*.jsThe 12 rooms, one file each, built from those parts. Copy one to start your own.