Child's Play

An interactive fiction by Stephen Granade (2007) - the Inform 7 source text

Section 8 - West End of Couch

The West End of Couch is south of the South End of Loveseat and southwest of the Middle of the Living Room. "The couch is very long and this is the west part of it. There is a loveseat to the north and more couch to the east." The printed name is "Couch at the West". The faraway descriptor is "by the west end of the couch".

After deciding the scope of the player when Snacktime is happening and the location is the West End of Couch and the folded paper is not handled: place the folded paper in scope.

A big couch is a kind of furniture. Rule for printing the name of a big couch while constructing the status line: say "couch" instead. Instead of tasting a big couch, say "The rolled edge of the cushions is funny on your tongue." A big couch is not room-mentioning, scenery and suitable for cruising.

The west grey couch is a big couch in the West End of Couch. Understand "gray" or "cushion" or "cushions" as the west grey couch. The description is "Grey and short and it is soft when the mom or the dad put you on it. This part is all to the west and there is more couch to the east[if the footstool is in the West End of Couch] and a tiny piece of it past the footstool to the west[end if]."

Instead of going west in the West End of Couch when the footstool is in the West End of Couch, say "Crawling like you are there is no way you will fit in the narrow gap between the footstool and the couch[if 1 out of 3], it is because you have the shoulders of a very small linebacker[end if]."

[This has to be a before rule, since the before rule that makes you let go when trying to go in a non-cruising direction would override an instead rule.]
Before going west in the West End of Couch when the footstool is in the West End of Couch and the player is pulled up on the footstool or the player is pulled up on the west grey couch:
    if the thing gone with is nothing begin;
        say "There is just enough space for you to slide between the footstool and the couch so you cruise along the couch past the footstool and into the tiny space back there[note squeeze-behind-footstool].";
        if the player is pulled up on the west grey couch, now the player is pulled up on the hidden grey couch;
        change the last location of the player to the location of the player;
        move the footstool to the Secret Space;
        move the player to the Secret Space;
        stop the action;
    end if.

After visiting the West End of Couch when the visitation count of West End of Couch is 1 and Snacktime is happening, say "You can just see some paper beyond the footstool."

The source code to Child's Play is licensed under a Creative Commons NonCommercial Sampling Plus 1.0 License.