Les Heures du vent

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

Home page

Contents
Previous
Next

Complete text
Section 3 - Boussole (for Glulx only)

Include Basic Screen Effects by Emily Short. [1]

To turn screen black:
    clear the screen;
    leave space;
    
To turn screen white:
    clear the screen;
    leave space.

To leave space:
    say paragraph break;
    say paragraph break;
    say paragraph break;
    say paragraph break.
    
Table of Fancy Status
left   central   right
""   " Les Heures du Vent "   "[top rose]"
" "   ""   "[middle rose]"
" [if in darkness]Les ténèbres[otherwise][location][end if]"   ""   "[bottom rose]"

Definition: a room is discernible:
    if it is lit, yes;
    if in darkness, no;
    yes.

To say top rose:
    let place be the room up from the location;
    if the place is a discernible room, say "[if the place is unvisited][end if]U "; otherwise say " "; [2]t show at all. Moral: never ever make assumptions about the color scheme used by your audience.]
    let place be the room northwest from the location;
    if place is a discernible room, say "[if the place is unvisited][end if]NW"; otherwise say " ";
    let place be the room north from the location;
    if place is a discernible room, say "[if the place is unvisited][end if] N "; otherwise say " ";
    let place be the room northeast from the location;
    if place is a discernible room, say "[if the place is unvisited][end if]NE"; otherwise say " ".
    
To say middle rose:
    say " ";
    let place be the room west from the location;
    if place is a discernible room, say "[if the place is unvisited][end if]W "; otherwise say " ";
    say " . ";
    let place be the room east from the location;
    if place is a discernible room, say "[if the place is unvisited][end if] E"; otherwise say " ".
    
To say bottom rose:
    let place be the room down from the location;
    if the place is a discernible room, say "[if the place is unvisited][end if]D "; otherwise say " ";
    let place be the room southwest from the location;
    if place is a discernible room, say "[if the place is unvisited][end if]SW"; otherwise say " ";
    let place be the room south from the location;
    if place is a discernible room, say "[if the place is unvisited][end if] S "; otherwise say " ";
    let place be the room southeast from the location;
    if place is a discernible room, say "[if the place is unvisited][end if]SE"; otherwise say " ".
    
Rule for constructing the status line:
    fill status bar with Table of Fancy Status;
    rule succeeds.

Notes

[1]. An extension that provides phrases for changing text colors, modifying the status line more fully, pausing the game, and so on.

[2]. Originally I assumed that everyone would be using a white-letters-on-black status bar, and set the lettering to black and white after printing the first letter. This was a mistake, as many people on Windows Frotz have a default color scheme that makes the status bar blue-on-white -- so of course the white lettering on a white background didn['