The two lives of Asgard
In 2008 I wanted to take a game from one machine to another. In 2026 I wanted to take a battle with me, down to the orders that led to it. Rampart Zero gave the new engine a reason to exist.
Browse the eight chapters
A game you could carry to another machine
One of the oldest Asgard demonstrations I can trace is from November 2008. It put a first-person camera in a Quake III map and ran through a browser plugin. The plugin mattered because the game was native software and the browser had no straightforward way to run it. The original engine was written in C, growing out of an earlier OpenGL framework. I wanted to bring the same game and assets to different machines without starting again on each one.
There was a much larger plan in 2009. The engine would sit underneath an editor, a way to package a game and a place to distribute it. The browser demo worked. The full commercial platform stayed on paper. Some of the code turned out to be useful in other places, including a combat-log parser and an in-memory search system. Working on Mac and mobile also made it clear how much had to happen between the word “portable” and an actual build.
Troids was the most concrete answer I got. It was a small Asteroids-like game with a ship, a score and a reason to keep playing. At the 2012 GDC demonstration, the reported working targets included Linux, Windows, Firefox and Android. OS X and iOS were still unfinished. The source went into a public archive in 2021. That’s when I put it on GitHub, years after I’d built it.

The game came first this time
Rampart Zero began in a browser under the name Iron Swarm. In January 2026 I had a TypeScript game with a base, moving vehicles and a minimap. By October I had a campaign, an on-device Commander and a reason to care about the details of a battle long after I’d closed the tab. If a damaged tank failed to get home in a late wave, getting back to the problem could take longer than changing the code.
That was the problem I wanted the new Asgard to solve in November. I still cared about portability, but the thing I wanted to carry around was a running world. A recorded order should have the same place in that world whether it came from a player, the Commander or a test. I should be able to save the state, restart from it and find out which tick changed the outcome. The browser could keep drawing the battle while a native test ran the rules by themselves.
The rebuilt engine uses a fixed-tick C runtime, shared between native builds and WebAssembly. A save includes the physics state as well as what you can see on screen. Replay is checked within a given numerical environment. Native and Wasm can run the same game rules, with each tested against its own repeatable results. That distinction lets me make a claim I can actually test.
Find out what the tools buy you
I started with smaller workloads. A strategy scenario exercised commands, movement and replay. An EDEN//ZERO action workload asked the engine to deal with a character, a camera and a fight that plays at a much shorter distance. Both gave me something practical to check before I took on the full Rampart Zero campaign. Work on a public SDK could wait until the engine had games to answer to.
I also wanted to know if the system helped coding agents. In a small comparison, two seeded bugs were tried three ways: in the original TypeScript game, with extra tools on the TypeScript side, and in the Asgard version with its simulation controls. All six trials passed the independent checks. The plain TypeScript setup finished the two localized jobs faster and at lower cost. That was a good result to have on record.
The thing Asgard let an agent do was different. It could put the world into the situation that mattered, run it and compare what happened after the fix. That was a capability I could make use of. The study was too small to tell me what would happen across a whole game, and had only one run per case. I care more about that honest limit than a claim about how fast an agent ought to be.
Move the battle before you move the picture
The complete Rampart Zero port took the rules across in stages. Build a base and make units first. Then bring over research and repairs, advanced ground combat, aircraft, and finally the Titan, endless mode and saves. The browser could keep its familiar controls, audio and Commander while the C simulation took responsibility for the state of the battle. Three.js still drew it at that point.
The original game and its tests were useful precisely where I thought I already knew the answer. The new port could show a Garage with a job in the queue and still give the wrong account of when the job began or who had placed it. The port investigation follows that difference. Getting a test and the browser to ask the same world became part of what it meant to carry the game across.
Measure the cost of coming back to a battle
The full game made it much more expensive to record state. Profiling found that the recorder was walking and encoding data it had already processed. In the development record’s 5,000-tick test on an Apple M5, average recorded-session time dropped from about 1.92 milliseconds per tick to 0.205. The checkpoint comparisons were part of the test. Saving time by dropping part of the battle would have defeated the point.
Independent worlds could also run alongside one another. The useful result there was that all eight final checkpoints matched their sequential runs. That gives me a way to think about testing several defenses through the same wave without asking one browser to draw all of them. The recording note explains what grew expensive when the engine started recording a whole game.
Let the games decide what the engine needs next
On November 22 the new Asgard renderer joined the development build. On November 23 it became the default. Then came the first Asgard trailer, more work on the machines and terrain, and the review pass that caught problems a good-looking capture couldn’t expose. The world underneath the picture and the picture above it had each made the transition on their own terms. The first trailer note follows the moment those changes became visible together.
The first Asgard made it possible to take a small game to several machines. The second gives me another kind of room. I can return to the battle where something went wrong and work on it from the code, a native test or a browser. I use coding agents to make and inspect changes, generative tools to produce assets I can work on in the game, and small local models to interpret what a player says. Those are three jobs, each with its own way of finding out whether it did what I asked. Taking out a round of setup leaves more time for the question Rampart Zero is starting to ask now. When the defense fails, is there enough in the run that you want to try it differently?
Chapters in the development history
- 2008–JANUARY 2026
From a plugin to a browser game
The original Asgard brought native code into a browser. Years later, a playable strategy game showed what I could build with the browser itself.
- MARCH–OCTOBER 2026
Give the model a smaller job
The Commander could move on-device once the game had a clear way to decide what a spoken request was allowed to do.
- MAY–OCTOBER 2026
When a mesh joins the game
The first roster was generated in code. The later asset pipeline had to carry a model from a convincing shape through animation, distance and an actual battle.
- OCTOBER–NOVEMBER 2026
Qualify the worlds you actually need
A strategy scenario and an action scene gave Asgard two different jobs before it had to carry a full game.
- NOVEMBER 15–20
Carry the rules across first
The Asgard port kept the original interface in view while moving authority for a complete campaign into the new simulation.
- NOVEMBER 17–21
Make faster mean the same battle
A blocked path and an expensive recording pass were useful tests because the faster build still had to reach the same state.
- NOVEMBER 22–24
Put a second picture on the same world
Three.js gave Asgard a reference for everything a familiar view had learned to tell the player, from a selection ring to the direction of a shield.
- NOVEMBER 25 AND AFTER
What the engine has to prove next
After the first trailer, the harder test is whether the engine can help me learn from a real player’s battle.
Keep exploring
01The smoke changed when the camera turned
A camera rotation exposed a lighting problem in Asgard. The same playtest sent me back through the frame budget, construction preview and the simulation’s record of paid research.
One budget for the whole game
A phone can draw the battlefield, refresh the HUD and listen for orders. Asking it to do all three at once changed how I think about performance in Asgard.