Facts
Released
2013-06-10 (web)
Genre
Unfolding incremental
Borrows
Interactive fiction
Platforms
web
Developer
doublespeak games
Code
Source release by Michael Townsend (doublespeak games) and A Dark Room contributors
Evidence
Code (2)
Verified (2)
Dev blog (1)
Sources
2
On this page
  1. Building costs
  2. Related
  3. Mechanics
  4. References
  5. Sources

A Dark Room is a browser game by Michael Townsend’s doublespeak games, announced on 10 June 2013 as “a minimalist text adventure”1. Its economy grows around a village, with housing at 4 villagers per hut2, so it’s filed here with incremental games. The source is public under MPL 2.0.

#Building costs

Buildings get more expensive linearly, the contrast case for exponential cost scaling. A hut costs 100+50n wood3 and a trap 10+10n wood4, where n is the number already built. With income that grows with the count owned, the wait for the next building settles to a constant. A hard cap, enforced by the build action, ends each run instead5.

Mechanics

MechanicKindHow
Linear cost scalingCappedhuts 100 + 50n wood (max 20), traps 10 + 10n (max 10)
PrestigeCarry-overthe ending saves part of each store, and the next game hides it in a destroyed village
Exponential cost scalingNonehuts and traps rise by a fixed step of wood, up to a cap
Every claim about this game, by concept (6)

References

  1. ^Dev blogTownsend 2013
    How we know

    doublespeak games announced A Dark Room as “a minimalist text adventure” in a blog post dated 10 June 2013.

    Announcing A Dark Room, a minimalist text adventure by doublespeak games.
    · archived copy ↗

    Claim page

  2. ^Codedoublespeakgames/adarkroomoutside.js 177–179, 11
    How we know

    Each hut adds room for 4 villagers; the maximum population is huts × 4.

    178		return $SM.get('game.buildings["hut"]', true) * Outside._HUT_ROOM;
    
    script/outside.js lines 177–179 at 1fada46 · upstream ↗
    11	_HUT_ROOM: 4,
    
    script/outside.js line 11 at 1fada46 · upstream ↗

    Claim page

  3. ^Verifieddoublespeakgames/adarkroomroom.js 43–58
    How we know

    A hut costs 100+50n wood, with n already built, up to 20 huts (11,500 wood for all 20).

    54					'wood': 100 + (n * 50)
    
    script/room.js lines 43–58 at 1fada46 · upstream ↗

    Measured by a script. It fails if the result disagrees with the claim.

    Claim page

  4. ^Verifieddoublespeakgames/adarkroomroom.js 13–28
    How we know

    A trap costs 10+10n wood, and at most 10 can be built.

    24					'wood': 10 + (n * 10)
    
    script/room.js lines 13–28 at 1fada46 · upstream ↗

    Measured by a script. It fails if the result disagrees with the claim.

    Claim page

  5. ^Codedoublespeakgames/adarkroomroom.js 1025–1027
    How we know

    The build action does nothing at the item's maximum count, so the cap, not the price, ends each building's run.

    1025		if (craftable.maximum <= numThings) {
    
    script/room.js lines 1025–1027 at 1fada46 · upstream ↗

    Claim page

Sources

Code

Primary