Core gameplay and netcode for a realtime multiplayer raid game on mobile, built in Unity
An MMO-style raid on your phone. Anywhere from 4 to 40 players take on waves of monsters and bosses together, in real time.
01
Prediction and rollback netcode
I architected the game's declarative prediction and rollback netcode. The goal was instant feedback on bad mobile connections without giving up competitive integrity. Gameplay code just tags a property as synchronized. I generate bindings for it, and a post-build step weaves the IL so every read and write of that property goes through them. What happens on each access depends on where and when the code is running, so dirty tracking, server authority, and prediction all come for free, and gameplay code reads like a single-player game. We could connect to our Singapore servers from across the world and play without lag. That's the short version, and it skips RPCs and the tooling around them. Happy to go deeper if you're curious.
02
Core gameplay systems and scripting
I built nearly every moment-to-moment gameplay system, from combat and physics to enemy behavior. Designers drive all of it through visual scripting and get full expression, while everything stays server authoritative and predictable. Thanks to the IL weaving, they can make new game modes, abilities, statuses, behaviors, and level gizmos without ever thinking about whether a script runs on the server or the client.
03
Data-driven content
Every system is driven by data, so new enemies, heroes, and maps can ship or be feature-flagged without a new build.