Writing / Kalix, part 8 of 8

Getting Duga Ready to Ship

December 1 update. See the full-campaign performance benchmark and what changed.

After a year developing Kalix, I took a break to explore AI and take part in the MegaJam. I’m back to use the engine to ship games. In Shatter Time, I started with a fight I could build and replay. With Duga, I want to get a player from their first chart all the way to the last landfall. Read the Shatter Time update

Duga is a puzzle game played from the helm of a survey ferry. Colored stones sit on a chart on the desk. Choose a color and your territory spreads through the matching stones it can reach. The color sets the ferry’s bearing, and the number of stones you claim determines how far it goes. A move on the desk changes what you see through the windshield.

The opening chart asks you to reach a brass landing ring in three calls. Taking the biggest group first can leave the ring out of reach. The preview shows what each color will claim, so you can see what a move sets up before you spend a call.

View from Duga’s ferry helm. Colored stones and a brass landing ring sit on the chart, with a beacon visible through the windshield across sunlit water.
The Twins Ferry Line, Duga’s opening chart, from the pilot’s seat.

Cutting down Ember Gate

The original Ember Gate had 167 stones and a verified solution that took 41 calls. The new chart has 26 stones and keeps the ram’s horns. You can go around the inside of the curl or take the outside route. The two verified routes reach the brass ring on the far horn in six and seven calls.

Two views from Duga’s ferry cockpit compare the original Ember Gate, a dense field of colored stones, with its compact replacement, where the two curls of the ram’s horns are easy to see.
The original Ember Gate on the left and the compact chart that replaced it on the right.

The solver tells me both routes work. A playtest will tell me whether a new pilot can spot either one from the helm.

What’s already changed in Duga

The shorter rhythm carries past Ember Gate. From Chart 06 through Shadow Harbor, the verified solutions take four to eight calls, and every chart in that stretch allows eight or fewer. Mirror Split gives the first call a different job. It assigns a shared bridge to one twin. One verified route clears the chart in six calls. Another takes seven and scores higher. The campaign tests clear all 61 charts at or under par and run the voyage from the first chart to the final landfall.

Duga caches the color preview until the board state, starting territory or selected color changes. Holding the dial on one color reuses the result. The preview and capture wave share a pool of pigment meshes, and Duga sends their position updates to Kalix in batches. If a large capture fills the pool, the game draws fewer decorative strips while still revealing every claimed stone. The landmarks outside the windshield share a preloaded model file. A new vista can reuse those meshes and move them into place.

What still has to happen before release

Playtest the difficulty. I want to watch new pilots call a color, undo a mistake and find Cast off without coaching. I also want to see whether they notice the color swaps in Night Passage in time to plan their next call. Where players keep restarting, I’ll look at the instructions, the layout and how many calls they have to recover. I’ll rerun the campaign checks after changes to the charts.

Profile the release build. I’ll measure how quickly the preview responds while sweeping the dial, how long the slowest frames take during a large capture and how much time the game spends preparing the next chart during a crossing. I’ll repeat the same moves and crossing after each fix so I can see what improved.

Test the package on a clean machine. The development launcher opens the project from my checkout. I want the build players get to launch on its own, start a fresh voyage and reopen at the booked destination after I quit mid-crossing. The chart I just cleared should still be in the voyage log.

Where Kalix work fits

Kalix draws the cockpit, handles input and loads the assets. Duga decides what a call captures, what counts as a win and where the voyage resumes. If a test shows Duga is doing extra work to update a chart, I’ll fix it in Duga. If a profile shows the frame time going into Kalix’s renderer or asset loader, I’ll fix the specific bottleneck there and measure it again in the packaged game.