I'll build BENEATH — a cinematic puzzle-platformer inspired by INSIDE: a small boy in a red shirt crossing a drowned, watched world. Canvas-rendered with parallax silhouettes, volumetric-style lighting, searchlight drones, crate/lever/pressure-plate puzzles, swimming, and a final chase — wrapped in letterbox, film grain, and a procedural WebAudio score.
Let me start with the HTML shell, global styles, and shared game types:
Shell, styles, and types are in. Now the three chapter definitions and the procedural audio engine:
Now the renderer — prerendered parallax layers, dynamic lighting, procedural character animation, and post-processing (grain, vignette, letterbox):
Quick fix for the unused fields in the renderer:
Renderer fixed. Now the engine — physics, stealth AI, water, grab mechanics, chase, camera, and the game loop:
Removing the unused field:
Engine compiles. Now the React shell — title screen, chapter cards, pause menu, ending — plus the icon package:
Let me fix a typo (stray character in a class) and the React.ReactNode reference, and verify main.tsx:
All files are in place. Let me build:
Build passes. Now I need to fix several gameplay-geometry issues I spotted on review: pool rim walls that would block entry, water-jump heights vs. ledge design, the chase catch logic (make it proximity-based and fair), a foreground parallax gap, and the underwater lever hint:
Now the chaser rewrite — proximity-based catch with the cone visually tracking the player — plus the alarm and mover-carry fixes:
Two more logic fixes: save the next chapter index on transition (so Continue works correctly), and keep lever states through respawns (prevents a softlock behind the Chapter III gate):
Let me re-read the engine's core sections to verify correctness after all edits:
Found a design flaw on review: the Chapter II pool has no crate to climb onto (and the exit ledge needs retuning for the buoyancy math). Fixing:
Rebuilding to verify everything still compiles:
One more physics-critical fix: the Chapter II elevator platform sits 24px above the floor, which would block the player from walking onto it (no auto-step). Making it flush with the floor at rest:
Build is green. BENEATH is complete — a cinematic puzzle-platformer in the spirit of INSIDE, built as a fully playable three-chapter game.
What was built
The game: A boy in a red shirt — the world's only warm color — crosses a drowned, watched dystopia across three chapters:
- Chapter I — The Treeline: rain-soaked forest at night. Teaches movement, jumping, pit deaths, crate-dragging to scale a ledge, and a first taste of water.
- Chapter II — Processing: an industrial facility. Pressure-plate + crate puzzle, a lever-driven elevator, patrolling searchlight drones you evade using pools of darkness, and a flooded chamber where you climb a floating crate to escape.
- Chapter III — The Depths: submerged machinery. Swim between pillars while a drone hunts the surface (diving deep = safety), pull an underwater lever, push a crate off a ledge onto a plate — then a red-lit chase sequence: sprint, vault, and crouch-crawl under pipes while a hunter drone rubber-bands behind you, into a white-light exit and the epilogue.
Systems: coyote-time/buffered jumping, variable jump height, grab-push-pull crates, pressure plates, levers, sinking gates, rideable platforms, buoyancy, swimming, vision-cone stealth with line-of-sight raycasts and shadow-zone hiding, suspicion/alarm AI, proximity chaser, checkpoints, 8 collectible "memory" orbs, deaths/time stats, and localStorage save with Continue.
Cinematic presentation (all canvas, no assets): prerendered parallax silhouette layers (4 depths), a dynamic darkness overlay with cut-out light pools, flickering lamps, volumetric searchlight cones that flush red as you're spotted, animated water with god-rays, rain, dust motes, procedural boy animation (run cycle, jump tuck, swimming, dragging pose), film grain, vignette, animated letterbox, camera lookahead + trauma shake, and chapter title cards.
Procedural WebAudio: per-chapter drones, rain, electrical hum, footsteps, splashes, lever/door rumbles, chimes, a two-tone siren when spotted, and a death boom — all synthesized live, mutable with M.
Controls: A/D move · Space jump/swim · E interact · S crouch · R checkpoint · Esc pause.
Files built: index.html, src/index.css, src/game/types.ts, src/game/levels.ts, src/game/audio.ts, src/game/renderer.ts, src/game/engine.ts, src/App.tsx