By the end of February the engine had a long feature list. There was a physics crate built on Rapier, a 3D renderer with lighting and a depth buffer, a bytecode VM, and hot reload that could snapshot game state. NAL had an event system and state machines. On top of that sat an RL agent framework and an IDE with a visual node editor. Our task tracker had Phase 2 marked as complete.
Then we tried to make a game with it.
The dungeon crawler
In March we started a dungeon crawler, split over several files the way a real project would be. The commit message from that day turned out to sum up the whole problem:
…yet dungeon crawler game is still not playable in preview canvas or in native window
The first bugs were small. The manifest was missing its entry_scene, dead enemies never got cleaned up, and the HUD showed placeholder text. As we kept going, though, we started noticing that features we thought were finished didn't seem to do anything once the game was running.
Writing down what actually ran
In May we went through the engine one system at a time and asked a simple question: when a game runs, does this get used? The answers went into a table at the top of the project's context document.
| System | Status in May | What we found |
|---|---|---|
| Physics (Rapier2D) | Not integrated | The crate worked and passed its own tests. The game loop never called it. |
| 3D renderer | Pipeline only | Lighting, a depth buffer and a shader, but nothing that loaded meshes. Nothing showed up on screen. |
| State machines | Not executed | They parsed. Nothing ran them. |
| Event dispatch | Not implemented | on blocks parsed and were never called. |
| Hot-reload VM | Not integrated | The VM existed, but the game loop didn't use it. |
| NAL interpreter | ~60% | Systems ran. Events, state machines and functions didn't. |
Nobody had been cutting corners. The February event-system task really had added event syntax and parser support, and the physics crate really did simulate rigid bodies. Every task had done what its description asked for. None of the descriptions had asked for the feature to change what happens in a running game.
Starting over from the table
We rewrote the roadmap on 27 May. As the commit puts it, the old plan "overstated completion status. Phase 2 was marked complete but physics, state machines, events, 3D rendering, and hot reload were all disconnected from the game loop."
We archived 170 old task files from three phases. We didn't delete them, because they're still a useful record of what was tried. The status table went to the top of the context document, which everyone (people and agents alike) reads before starting work. It ends with a line we've kept ever since: "If something doesn't work, assume it needs to be built rather than fixed."
The next phase was integration only, with eight tasks and no new features allowed. We also rewrote what "finished" meant for each task. The physics task, for example, wasn't "add physics sync functions" anymore. It read: "simple_platformer.nal player stands on physics-simulated ground, responds to gravity, can jump and land."
June went quickly
All eight integration tasks landed between 19 and 22 June. Most of the hard work had already been done months earlier. What was missing was the connection. Turning on event dispatch took 120 lines, and sending scene changes out through the session took 87. Hooking Rapier into the tick took about 540. State machines were the exception at about 2,500 lines including tests, because they needed a proper runtime that tracks each entity's state.
Packaging, Rezzy's playtest command and a test framework came over the next couple of weeks. Each had a "finished" condition you could check by running a game.
What changed in how we work
The main change is that we now mark a feature finished when a test plays an actual game, often headless through GameSession, and checks that something happened. A colonist went to sleep, a wolf died, the scene changed. A crate's unit tests show that the crate works. They don't show that anything uses it.
We also keep the status table current, and it's allowed to say "not integrated". The table on the engine page is the public version of it.
The last change has to do with AI coding agents, which wrote a lot of this codebase. They're good at finishing exactly the task they're given. Give one "implement the event system" and it can do a complete, tested job without ever touching the game loop. A task like "a ColonistDied event shows a notification on the next frame" can only be finished one way. The May audit was itself done with an agent. Once we were asking the right question, it didn't take long.