Devlog2026-10-19· 3 min read

Apocky's Barony: our game design on a forked dungeon crawler

Barony's engine code is open source. We forked it to build our own game on a working co-op chassis: bigger and denser dungeons, pack AI, crowd combat. Day one, measured.

Barony is a first-person co-op dungeon crawler whose engine code is released under the BSD 2-Clause licence. Its art belongs to its studio and is not part of our work: our build loads it from an installed copy of the game. We forked the code to carry the game design we have been writing for Apockalypsis: much larger and denser floors, creatures that hunt in packs, combat built for crowds instead of duels, gear made of parts, and a director that paces the run.

What exists after the first day, all measured:

  • Our own build. Built from source, it generates exactly the same floors as the shipped game for the same seed, and running it changed none of the installed game’s files.
  • A floor generator. A new C++ library builds floors up to 128 x 128 tiles from a mission graph (keys, locks, secrets, a boss, loops), with rooms written as programs rather than drawn by hand. On 1,000 seeds every floor is connected, every lock comes after its key, digging cannot skip a lock, and every floor holds its five special rooms. A floor takes about 10 ms.
  • Crowds that stay fair. Instead of a cap on how many creatures may attack, creatures are held back by the room around you, the rhythm of their swings and not swinging through each other. In a prototype with 12 skeletons around a player, that cut damage taken by a factor of 1.63, lower in 12 of 12 paired trials, without pushing anyone out of the fight.
  • Faster test starts. A loader fix stopped all 2,411 models being rebuilt whenever a mod is mounted: startup fell from 46-52 seconds to 9-12 seconds.

Ideas you can use on your own fork

  • Prove the fork is faithful before you change anything. Our build had to generate exactly the same floors as the shipped game for the same seed, and leave every installed file untouched (0 of 13,871 changed). We kept that check as a vanilla mode and re-ran it after every merge, so a change that breaks the original game shows up in the merge that caused it.
  • Code and art are licensed separately. Barony’s engine code is BSD 2-Clause; its art is not. Loading the art from the player’s own installed copy keeps the fork shareable.
  • Plan a floor as a mission graph, then lay it out, then test it in bulk. Keys, locks, secrets, loops and the boss are decided as a graph first and turned into rooms second. Checking 1,000 seeds for connectivity, key-before-lock order and “digging cannot skip a lock” takes seconds at about 10 ms a floor, so the generator can be checked on every change.
  • Limit crowds with space and rhythm, not a cap. A hard limit on how many creatures may attack feels arbitrary. Limits that come from the world (the room around you, the rhythm of swings, creatures not swinging through each other) cut damage taken by a factor of 1.63, in 12 of 12 paired trials, while every creature stayed in the fight.
  • Check what your loader rebuilds. Mounting a mod rebuilt all 2,411 models. Fixing that took startup from 46-52 seconds to 9-12, which adds up when you restart the game dozens of times a day to test.

Next: the new floors inside the game, the attack limits built into the creature AI, stamina and blocking, and our own inventory.

Enjoyed this? Apoc runs on one home graphics card and a lot of late nights. If you'd like to help, Ko-fi is the way.
Support on Ko-fi