Today marks one of the most significant milestones in the development of A Space Story. I have completed a full, ground-up rewrite of the game engine from Odin to Zig, alongside a massive visual asset update that breathes fresh life into the galaxy.

A Shift in Foundation: Why Zig?

While Odin served us incredibly well for the initial release, migrating the engine to Zig has unlocked unparalleled benefits for WebAssembly compilation, memory management, and overall stability. Zig's powerful comptime evaluation allows us to generate highly optimised bindings and structures directly at compile time.

The entire memory allocator pipeline has been redesigned to be explicit and robust, completely eliminating memory leaks during intense skirmishes. The result is a rock-solid, incredibly fast core simulation that compiles into a highly lightweight WebAssembly binary.

Reimagined Game Assets & Zero Flicker

In addition to the engine rewrite, every single space station, fighter, miner, and asteroid sprite has been redesigned. We've introduced custom, high-fidelity pixel art for all factions, enhancing the distinct identities of the Terran Union, the Martaanian Empire, and the Vorrath Swarm.

To support these high-fidelity assets without losing the sharp, crisp aesthetic of retro pixel art, the engine now uses advanced rendering techniques:

Frame-Rate Independence

We've successfully decoupled game physics and visual animations from the display's refresh rate. By fully migrating to delta-time (dt) calculations for all physics, cooldowns, and movement, the game plays identically on a standard 60Hz display as it does on a premium 120Hz or 144Hz screen. Visual oscillations and shader-like effects now leverage accumulated time, keeping the galaxy perfectly fluid and consistent.

This massive technical leap sets the stage for richer scenarios, smarter AI commanders, and much deeper RPG missions in the updates to come.

See you out in the deep void!