A game engine you can hand to an AI agent.
The Resonance Engine is a Rust engine where the whole game (systems, AI, events, menus) is written in NAL, a compact language of our own. We designed NAL to be easy to read. An AI agent can write it, check it, run it and inspect the result through the engine's MCP server, and so can you.
pub state_machine ColonistBrain for [Colonist, Transform3D, Skills, Mood] {
default: Idle;
state Working {
transform {
// Work speed = skill curve × traits × mood × tools
let mult = work_mult(Skills.woodcutting);
if (has_tech("stone_tools")) { mult = mult * 1.1; }
Colonist.work_timer += DeltaTime * mult;
if (Colonist.work_timer >= 1.0) {
Colonist.work_timer = Colonist.work_timer - 1.0;
let amt = World.get_field(Colonist.target_id, "WoodNode", "amount");
World.set_field(Colonist.target_id, "WoodNode", "amount", amt - 1.0);
Colonist.carry = Colonist.carry + 1;
}
}
transition {
if (Colonist.carry >= 5) -> Hauling;
if (Colonist.node_empty == 1) -> Seeking;
}
}
// … 12 more states: Idle, Seeking, Wandering, Moving, Hauling,
// Fetching, Delivering, Constructing, Crafting, Sleeping,
// Eating, Breakdown
}
A colonist chopping wood in Ember Colony, our proof-of-concept demo. We cut it down to just the woodcutting branch, but the rest of the game reads much the same.
What we're building
Ludo Resonance is three things that grew up together. They share a single simulation core, a GameSession. The native player, the editor preview, the MCP server and our test suite all run games through it, so a game can't behave one way in the editor and another way in the build.
Resonance Engine
The Rust runtime. It has Rapier2D physics, a 3D renderer that loads glTF models (with shadows and see-through ghosts), egui for UI, audio, and seeded simulation, so a run can be repeated exactly. It also packages games for macOS, Windows and Linux.
More about the engine →NAL
Short for Native Agent Language. You describe components, systems, state machines, events, functions, arrays, modules and UI. We're strict about one thing: if NAL accepts a line, that line has to do something or fail with an error you can read.
Take the language tour →Tools for agents
An MCP server that lets an AI agent validate, launch, step through, inspect and edit a running game. Around it sit a validator, a language server for your editor, and Rezzy, which plays a game for a while and can ask a local LLM what it thought.
How agents use it →Wyrmworks
Monster hunting, a colony and a factory in one valley. Hunt monsters and break their parts, feed the parts to a factory that makes better gear, and keep your colonists running the works, while the valley's wildlife reacts to every bit of noise you make.
Like everything we build, Wyrmworks is written entirely in NAL. All four seasons of its campaign are playable. Before it, Ember Colony, a smaller colony sim, proved that a whole game could live in NAL, and it stays on as our proof-of-concept demo.
Where things are
Back in May we found our roadmap had been calling things finished that weren't, so we rebuilt it from what actually runs. These lists follow the same rule. For the details, see the full table on the engine page.
- The NAL interpreter, including functions, state machines, events, timers, scenes and arrays
- The native player: 2D, glTF 3D with shadows and animation, egui UI, sound and music
- Saving and loading, and player settings that persist
- Rapier2D physics inside the game loop
- Seeded runs you can replay exactly
- MCP server with 3D screenshots,
nal-validateand a language server - Pathfinding and flow fields for crowds
- A profiler and repeatable gameplay video recording
- Terrain, ground overlays, and item buffers and belts run by the engine
- Signed builds for macOS and Windows, plus Linux
- A bytecode VM, now frozen as a test backend. It matches the interpreter frame for frame, but it was slower on our biggest game.
- The Harmonic IDE's browser preview. It runs the same simulation but can't show glTF models or
uiblocks yet. - Rezzy playtests, currently with a random-input player and an optional LLM review
- Hot reload of
.nalfiles
- 3D physics, and point and spot lights
- An IDE built around chatting with an agent
- Mobile, Steam, web releases
- Releasing the source (the plan is MIT / Apache-2.0)
From the devlog
Longer write-ups about the problems we've run into while building this, and what we did about them.
Wyrmworks, four seasons in
Monster hunting, a colony and a factory in one valley. What our flagship is and what it pushed into the engine.
Why we froze the VM
It was slower than the interpreter on our biggest game. What we measured, and what made the interpreter a third faster instead.
Seven bugs that passed validation
An agent-built game with seven planted bugs, all reported
ok, and what we changed so the validator catches them.
Want to hear when the alpha opens?
The code is private for now while we get the public alpha ready. If you make games, work on agents that play or build them, or are just curious, send us an email. We'll let you know when there's something to try.