DEADLIGHT — Devpost Submission

Live demo: https://deploy-deadlight.vercel.app Platform: Meta Quest (WebXR, hand-tracking) — also playable in-browser on desktop.


Tagline

Hands-first survival horror lane-defense for seated VR — no install, no controllers, just your hands. Runs in your browser.


Inspiration

Most VR games ask you to stand up and swing your arms. We wanted the opposite: a tense, replayable game you can play seated, in a two-foot space, using only hand pinches — the kind of thing you can pick up for five minutes without clearing your room. A moonlit graveyard overrun by the dead felt like the perfect pressure cooker for a lane-defense built entirely around your hands.

What it does

DEADLIGHT is a hands-first lane-defense set on a graveyard tabletop. Zombies shamble down four lanes toward you; you survive by planting defenders on a 4×5 grid:

  • Lantern — generates essence (your currency) over time.
  • Pelter — fires down its lane.
  • Bramble — a high-HP wall that stalls zombies.
  • Twin Pelter — double shooter.

You start each run by picking your loadout, then pinch-grab a seed token and drop it on a lane to plant it. Essence gates what you can place. Clear a wave to advance a level — each level unlocks a new plant and brings tougher, higher-HP zombie tiers. Lose three lives and they get you. Pause any time to resume, restart, or exit.

Everything is reachable from one seat, and the whole game is driven by hand pinch — no controllers required. (On desktop, a click-to-place control pad makes it fully playable without a headset too.)

How I built it

  • Immersive Web SDK (IWSDK) — Meta's WebXR framework (Vite + Three.js + an entity-component-system) for the XR session, hand input, and grab interactions.
  • One ECS game system drives the whole loop: a state machine (start → play → pause → level-clear → game-over), wave spawning, the essence economy, plant firing, projectiles, zombie movement and plant-chewing, lives, and level progression. Actors are fixed object pools, flipped visible/hidden — no per-frame allocation, to hold VR frame rates.
  • Fully procedural assets, built in code (no downloaded models): the graveyard slab, gravestones, dead trees, picket fences, crosses, the low-poly human zombies with glowing eyes, the plants, and projectiles — all generated from Three.js primitives, so the whole experience downloads tiny.
  • UIKitML for the HUD and the control pad (plant-arm row + tap-grid), which works with both an XR hand-ray/pinch and a desktop mouse.
  • Atmosphere: procedurally synthesized audio (growl, splat, screech, ambient drone), a flickering lantern light, a global eye-glow pulse, and a red damage flash — tuned to be scary without camera shake, to stay VR-comfortable.
  • Deployed as a static WebXR build on Vercel — a single hosted link, no APK needed.

Challenges I ran into

  • Hands-first placement that also works on desktop. Pinch-grab-drop is natural in a headset, but in a flat browser a mouse only interacts with UIKit, not 3D ray-targets. I added a UIKit control pad (arm a plant, tap a cell) so the game is playable both ways from the same build.
  • VR comfort vs. scares. Getting a horror feel without nausea meant leaning on darkness, light flicker, red flashes, and audio instead of any camera motion.
  • Performance with a crowd. Keeping dozens of pooled zombies, projectiles, and plants cheap enough for 72–90 fps meant shared geometry/materials and zero per-frame allocation.

Accomplishments I'm proud of

A complete, replayable game — loadout selection, four plant types, level progression with unlocks and escalating zombie tiers, full pause/restart/exit flow, an economy, and a scary graveyard mood — all hands-first, seated, and running from a single browser link with no downloaded assets.

What I learned

How to structure a full real-time game as one ECS system with pooled actors, how WebXR hand interaction and grab work in IWSDK, and how to build a control scheme that's native in a headset yet still fully playable on a desktop.

What's next

More plant and zombie types, an endless mode, per-lane hazards, a two-handed "big" defender, and a leaderboard.

Built With

Share this project:

Updates

Submission history