Inspiration
What if a tiny fantasy kingdom, mid-escape, crash-landed on your coffee table? A worried mage, a foolish king and their castle flee through a portal into your room, and the goblins follow. You're the giant they ran to, and your living room is the battlefield.
What it does
Castle Guardian is a mixed reality roguelike tower defense game for Quest. Goblins pour out of portals around your real room, walk across your floor, path around furniture and leap onto your table to reach the castle. You fight back with gesture spells: throw fireballs, point for lightning, breathe frost from your palm, trace walls of fire. Every run has new spells, boons and towers, across three acts and nine bosses.
How we built it
It runs on my own Rust-based engine built on Vulkan and OpenXR. The room comes from live depth meshing, so there's no setup scan, and goblins pathfind over a walkable grid built from your actual furniture. Real objects hide virtual ones, shadows fall on your table, and game rules live in Luau scripts we could reload live in the headset.
Challenges we ran into
Real rooms are noisy and incomplete, so goblins kept getting stuck or clipping through sofas. Getting throws and other spell gestures to feel right from an armchair took many rounds. And fitting dozens of troops, effects, shadows and passthrough into a mobile GPU's frame took a lot of work.
Accomplishments that we're proud of
- A full voiced run from intro to final boss, with goblins that genuinely use your furniture.
- Real-time room meshing: the game adapts to any room as you play, with no setup scan, and reroutes troops when you move things.
- Everything in the game can be dynamically occluded
- Insanely fast startup: about two seconds from tapping the icon to a playable menu.
What we learned
Passthrough shines when the room changes the gameplay rather than just sitting behind it. Hands need generous targets and gentle aim assist. Designing experience to work in variety of rooms and environments can be a real challenge.
What's next for Castle Guardian
New invasions with other enemy types and storylines, colocated multiplayer to defend the castle with a friend in the same room, and more unique spells.




