Danger Close
A top-down artillery, drone and trench-warfare strategy game for the browser, playable on phones.
What it is
A real-time strategy game inspired by modern drone-and-artillery warfare. The map is dark until you light it up: drones and marines spot the enemy, artillery strikes what they find, and anything you can see can see you back. You win by advancing one defended position at a time, without losing your guns to counter-battery fire.
How it works
- A deterministic simulation. The game runs at a fixed 60 ticks per second, and all gameplay randomness comes from a seeded generator, so the same seed and the same orders replay the same battle.
- Fog of war and spotting. Vision, hearing and cover decide what each side knows; artillery is only accurate on targets someone can observe.
- Enemy AI. Counter-battery radar, hunting parties, pickets, patrols and reinforcements that keep coming until their depots are destroyed.
- Procedural maps. Farmland, forest and a generated city with streets, alleys and chokepoints.
- Tested. The simulation runs headless in Node with scenario tests for each mechanic, plus a browser smoke test.
What I learned
Write about what you learned building it: designing for playtesting, AI teammates, determinism, or keeping a growing codebase readable.