Aiathi
A multiplayer 3D action game with its own in-game rule editor
The problem
Building a game's behaviour usually means writing code, restarting, and testing again. Every change to how a character moves, jumps or reacts takes a full round trip, and only programmers can make it.
Aiathi set out to make an online action game where the rules themselves are editable from inside the running game, so changes can be tried in seconds while other players stay connected.
What I built
- Built its own small engine around an Entity / State / System design, used the same way on the server and in the browser.
- The server runs the game at 30 ticks a second and has the final say on movement; the browser predicts the player's own moves and corrects itself against the server.
- Game behaviour lives in event sheets: rows of WHEN conditions and DO actions picked from a searchable library of input, physics, movement, network and animation blocks.
- Each block shows the JavaScript it generates, and a Script block allows custom code when the library isn't enough.
- The editor sits inside the game behind the ~ key, with a file explorer for sheets, models and animations, a World tab listing live entities, and a timeline sequencer for animation tracks.
- When models or animation files are missing, the game falls back to simple shapes so it keeps running.
What it does
- Third-person movement around an obstacle course, with camera zoom and orbit.
- Open the game editor mid-game with one key; the world keeps running above it.
- Add a rule by picking a condition and an action from categorised menus.
- Change parameters such as the key or jump force and see the generated code update.
- New rules apply right away: in the demo a fresh 'hold J to jump' rule works seconds after it is written.
Built with Node.js, Socket.IO, Three.js, Vanilla JavaScript (ES modules), WebGL, 2026.