Haunted House Interactive Fiction Needs a Fixed Map

Haunted house interactive fiction works when the floor plan holds still and the history accrues. What the house has to remember, and how to read it.

By The Fabledrift Team · · 8 min read

Haunted house interactive fiction runs on two pieces of bookkeeping: a floor plan that does not change between visits, and a record of what the house has already done to you. The dread is cumulative rather than sudden. A hallway is only frightening on the third crossing if the first two are still on the books.

A haunted house story is built from repetition: the same rooms, entered again, carrying what happened in them. Parser interactive fiction holds the building as a map of rooms joined at their edges by compass connections, so the geography cannot drift. Classic text adventures marked the house’s reactions with flags that fire once, like the trap door barred behind you in Zork. The ink language tracks visits as integer counts, which is how a pre-written house knows you have been in the attic before. An AI narrator has no map and no flags unless something hands it a record of both on every turn.

What makes haunted house interactive fiction work?

Two constraints, and neither of them is about prose. The building has to be a fixed set of places you can deliberately return to, and it has to keep a history of those returns. Everything the genre is famous for — the cold room, the portrait that is wrong, the sound above you — is a payoff on one of those two ledgers.

This is also where haunted house interactive fiction differs from horror on the page. A novel’s reader cannot choose to go back up the stairs; the author decides. Here you decide, which means the story can hand you a reason not to and then wait. The pressure stops being the thing in the house and becomes your own willingness to look at it again.

The parts the subgenre keeps reusing

  • An arrival with a claim on you. An inheritance, a job, a relative who will not answer the telephone. You are not trespassing, which is why leaving is complicated.
  • A room that is wrong before anything happens. Something measurable: a door that opens the wrong way, a count of windows that does not match from outside.
  • A written record inside the fiction. Diaries, ledgers, labels on jars. The house has already been described by someone who did not survive describing it.
  • An exit that closes quietly. Not a locked gate announced with a flourish. A path you stop being able to use, noticed late.

Why does the floor plan have to hold still?

Because a haunting is an argument made by repetition, and repetition needs a stable address. If the landing is in a different place each time, the house is not malevolent; it is noise. Fixed geography is what lets a reader form an expectation strong enough to be violated on purpose.

Parser interactive fiction solved this by making the map a hard structure. Inform 7, a programming language for writing interactive fiction in natural-language syntax, describes rooms as being “joined together at their edges by ‘map connections’”, and a newly created door as “fixed in place, closed and openable”, optionally lockable with a matching key. None of that is atmosphere. It is a guarantee that the attic stays above the landing.

The locked door matters more than it looks. In a fixed map, a door you cannot open yet is a promise with an address attached: something is behind it, the something will still be there later, and the story has committed to that in a form it cannot forget.

How did classic text adventures make a house remember?

With flags, counters and events that fire once. The house’s memory was written by hand, in the source, as a set of small facts about what had already happened. It worked, and it worked only for the situations the author had thought of in advance.

The clearest example is a trap door. In the original Zork source, the routine that runs when you enter the cellar prints “The trap door crashes shut, and you hear someone barring it.” the first time you come down with the door open, and the door itself reports “The door is locked from above.” if you try it from below. Two strings and a condition, and the house acquires an opinion about you.

Later tools made the counting part of the language. The documentation for ink, inkle’s narrative scripting language, explains that a knot or stitch label used in a test is “actually an integer variable containing the number of times the content at the address has been seen by the player”, so {seen_clue} is true once you have been there and {seen_clue > 3} asks whether you keep coming back. A pre-written house can be made to notice the fourth visit.

Mechanism Where it lives What the house can remember What it cannot do
Hand-written flag In the game’s source code That one event has already fired React to anything the author did not anticipate
Visit counts In the story file How many times you entered a place Tell apart the reasons you entered
Room and door model In the world model Where things are, what is open or locked Describe a room differently because of what you said
Structured story record Outside the model, handed in each turn Facts, people, places and promises, in your own wording Hold anything nobody thought to write down
A floor plan of three rooms drawn twice. On the first pass the hall, the stair and the attic are empty outlines joined by a line, each labelled only with its name. On the second pass the same three rooms are in the same positions, and each carries what the first visit left: the hall holds a door that now opens the wrong way, the stair holds a step that was counted as thirteen, and the attic holds a trunk that was closed and is now open. An arrow from the first plan to the second is labelled: same map, longer record.first visitsecond visithallstairattichallstairatticdoor opensthe wrong wayyou countedthirteen stepstrunk leftopensame map, longer recordThe rooms do not move. What changes is the list of things that have happened in them,which is the only reason the third crossing of the hall reads as a threat rather than as a sentenceabout a hall.

What changes when an AI narrator runs the house?

Two things about haunted house interactive fiction change at once: the prose stops being pre-written, and the bookkeeping stops being free. A language model handed only the last few scenes will move the staircase, give the cellar a second entrance and forget that the trunk was open, because nothing in the text it was given says those things are fixed. The ghost survives that. The architecture does not.

The fix is unglamorous: keep the house outside the model and hand it back every turn. Fabledrift, an interactive fiction app for Android, writes every scene live and gives the narrator the story’s structured memory — facts, characters, places, promises — on each turn, so the landing stays above the hall and the thing you did in the cellar is still a fact. We have written in more detail about what the narrator is given each turn and in what order.

Two of the usual reader frustrations also change shape. Memory is never a paid feature in Fabledrift, so no part of the house’s record is behind a plan, and readers can add notes of their own with “remember this” — when a note contradicts the story record, the note wins. Stepping back to one of your own earlier scenes is free and always available, which in this subgenre means you can re-enter a room on purpose instead of hoping the narrator offers it.

How do you read a haunted house story well?

Deliberately, and with some of your own record-keeping. The genre rewards a reader who treats the building as a place to be surveyed rather than a corridor to be run down, and most of that is done in how you write your move.

  • Name rooms the first time you enter them. “the pantry with the bricked window” gives the story a handle it can use again.
  • Go back on purpose. A return you chose is worth three the story pushed you into.
  • Write one intention per move. Counting the steps is a move. Counting the steps while listening at the door is two, and you will get a worse answer to both.
  • Write down what you noticed but cannot prove. The thirteenth step, the missing window. A note makes it part of the record instead of part of your mood.
  • Ask without advancing. Asking the narrator what your character can see from the landing is not a move, and in a house the difference matters.

Secrets are the other half of the craft, and they work by being kept rather than hidden behind a search command; we have written separately about how secrets are held in interactive fiction. The same logic applies to the broader genre, which we have covered in a piece on how horror interactive fiction withholds.

The second time up the stairs

A haunted house is a small world with a long memory, and that is the whole trick. Get the map to hold still and the history to accumulate, and the thirteenth step does the work by itself the second time you reach it. Get either wrong and you have a building full of adjectives, which can be read once and never re-entered.

Frequently asked questions

What is haunted house interactive fiction?

It is interactive fiction set in a single building that the reader explores and re-enters, where the dread comes from returning to rooms that have already done something. The house is both the setting and the antagonist.

Why does a haunted house story need a fixed map?

Because the fear is made of returns. If the hallway is somewhere else each time you climb the stairs, nothing can accumulate, and the house reads as bad weather rather than as a thing with intentions.

How did old text adventures make a house feel alive?

With flags and counters written into the source. In Zork the cellar routine prints a line about the trap door crashing shut and being barred the first time you descend, and from below the door reports that it is locked from above.

Can an AI narrator run a haunted house without losing the layout?

Only if the layout is stored outside the model and handed back on every turn. A narrator given nothing but the last few scenes will quietly move the staircase.

Is a haunted house story the same as a horror game?

No. Horror games generally threaten you with something that moves; a haunted house story threatens you with a place you keep choosing to walk back into, and most of the pressure is yours.