Athena Crisis Just Open-Sourced Its Core Engine for Turn-Based Strategy Games
If you’ve ever wanted to build a turn-based strategy game like Advance Wars or Into the Breach, but dreaded writing all the glue code for tile maps, turn order, and combat logic, here’s something worth your attention.
Athena Crisis – a polished commercial turn-based strategy game – just open-sourced its core engine on GitHub. That means you get a production-tested foundation for building your own TBS games, without needing to start from scratch.
What It Does
The repository at github.com/nkzw-tech/athena-crisis contains the entire core engine used in the game Athena Crisis. It’s a TypeScript-based framework specifically designed for turn-based strategy games. Think hex grids, unit movement, combat resolution, turn management, and AI decision-making – all the hard parts that take months to get right.
The engine is modular and headless, meaning you can use it with any rendering library (the game itself uses React + Canvas, but you can swap that out). It handles game state logic, serialization, and replay systems, so you can focus on the unique parts of your game.
Why It’s Cool
Several things stand out:
Production-proven. This isn’t a toy project – it’s the engine behind a real commercial game that’s been played by thousands of people. The edge cases, performance bottlenecks, and design decisions have been battle-tested.
TypeScript-first. All the logic is typed and documented, which makes it a joy to work with. You get autocomplete, refactoring support, and fewer runtime surprises.
Deterministic replay. The engine is built around a replay-friendly state system. Every action is logged, and the game can be replayed from any point. That’s gold for debugging and for features like undo or AI training.
No vendor lock-in. Because the engine is headless, you can pair it with whatever frontend you like – Canvas, WebGL, even a terminal UI. The game logic doesn’t care how you render it.
Community-friendly license. It’s MIT licensed. You can use it for your own commercial projects without worrying about royalties or attribution requirements.
How to Try It
-
Clone the repo:
git clone https://github.com/nkzw-tech/athena-crisis.git -
Install dependencies:
cd athena-crisis && npm install -
Run the tests to see it in action:
npm test -
Check out the
examples/folder for simple demos of how to create a game, add units, and run turns.
The README includes a quickstart guide that walks you through creating a basic two-player game on a hex grid, complete with movement and combat.
Final Thoughts
This isn’t just another game engine – it’s a focused, practical toolkit for a specific genre. If you’ve been toying with the idea of making a tactical strategy game, this could save you months of boilerplate. The fact that it comes from a real commercial title means the abstraction is right: it’s generic enough to reuse, but opinionated enough to be useful.
I’d recommend starting by reading the test files to understand the API surface. Then try modifying one of the examples to add your own unit types or terrain rules. It clicks fast.
Give it a spin, and let us know what you build.
Found this interesting? Follow @githubprojects for more open-source game dev finds.