A strategy game built on a replayable simulation
Dead Districts is a strategy game I'm building in TypeScript, with its own simulation, rival AI, map generator, and 2D and 3D renderers. It is in development, with no public build yet.
It is inspired by the strategy game Seven Kingdoms. A city died in one night and most of its people rose as the dead. Four rulers hold four walled halls, and the player grows one into a kingdom.

The game
You start with a town hall inside its wall, a few workers and soldiers, a scout, and the King. He is the strongest unit and comes back after he dies. Workers gather, haul, and build, and survivors walk in from the ruins while morale is high and there are free beds.
The map is cut into named districts. You claim them one at a time at a rising price, and the wall is re-laid around what you hold. Winter cuts food and wood, the dead wake to noise, and independent villages can be won over by persuasion or force. Dragons can be fought, or their eggs stolen and hatched.


Where it comes from
The King, the villages, and the diplomacy come from Seven Kingdoms. Claiming territory and getting through winter come from Northgard, and the dead that wake to noise come from They Are Billions. Everything has to work with hordes switched off, which is how I play it.
Engineering notes
Simulation first
The game is a seeded simulation that knows nothing about drawing, so a map can be replayed. The first view was 2D in Phaser, and a newer Three.js view draws the same game in 3D.
Map generation
Maps are cut into named regions with roads, rivers, lakes, and hills. The generator checks that every start has comparable land within reach.
3D renderer
Terrain, water, forests, walls, smoke, and fog of war are drawn with Three.js, with an RTS camera and a preview for placing buildings.
Tests
More than 70 Vitest files cover the economy, fighting, the rival AI, saves, and pacing.