• Jump To … +
    00-opening.c.md 01-makefile.mk.md 02-records.c.md 03-game.c.md 04-world.c.md 05-turn.c.md 06-battle.c.md 07-save.c.md
  • §

    Reading Civilization from the inside

    civd reconstructs the DOS version of Sid Meier’s Civilization, released in 1991. Its C and assembly sources build with period Microsoft tools to reproduce the pinned executable. This story reads a selection of those files in full.

    Chapters

    1. MAKEFILE: building the executable
    2. CIV.H: shared game records
    3. GAME.C: the main module
    4. WORLDGEN.C: generating the world
    5. TURN.C: processing a turn
    6. BATTLE.C: resolving combat
    7. SAVE.C: saving and loading state

    Next →