Home
Start a new game
Explore games
Help
Log in or sign up
Log in
Username
Password (
Forgot it?
)
×
New to Playfic?
Full Name
Email
Username
Password
Password (confirm)
Are you sure about this?
Arabian Labyrinth
by
Ryan Veeder
Played 25 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Arabian Labyrinth" by Ryan Veeder The story headline is "An example". Desert is a room. "You are hopelessly lost." [In newer versions of Inform 7, "Longitude is initially 0" is enough to indicate to the compiler that Longitude is a number variable. In the version used by Playfic, we must be more explicit:] Longitude is a number that varies. Longitude is 0. Latitude is a number that varies. Longitude is 0. Check going while player is in Desert (this is the desert movement rule): if the noun is a direction listed in the Table of Direction Values: choose row with direction of the noun in Table of Direction Values; now longitude is longitude plus delta-long entry; now latitude is latitude plus delta-lat entry; follow desert scenery rules; say "You trudge toward [the noun].”; try looking instead. Table of Direction Values direction delta-long delta-lat north 0 1 northeast 1 1 east 1 0 southeast 1 -1 south 0 -1 southwest -1 -1 west -1 0 northwest -1 1 Before going while player is in Desert: if (the noun is northwest or the noun is north or the noun is northeast) and latitude is 50: say "The sandstorms become too thick to navigate in that direction." instead. Before going while player is in Desert: if the noun is east and longitude is 50: say "You trudge toward [the noun]."; try looking instead. Before dropping something while player is in Desert: say "Oh, but that would be littering! Which is bad." instead. Desert scenery rules is a rulebook. A desert scenery rule (this is the bleached skull appearance rule): if longitude is 1 and latitude is 1: now the bleached skull is in the location; else: remove the bleached skull from play. The bleached skull is a fixed in place thing. A desert scenery rule (this is the sandstorms appearance rule): if latitude is 50: now the sandstorms are in the location; else: remove the sandstorms from play. Some sandstorms are a fixed in place thing. A desert scenery rule (this is the oasis appearance rule): if latitude is -45 and longitude is 38: now the oasis is in the location; else: remove the oasis from play. The oasis is a fixed in place thing. The player carries the scrap of paper. The description of the scrap of paper is "The numbers (-45,38) are still barely legible." The player carries the GPS. The description of the GPS is "This thing says your current coordinates are ([latitude],[longitude])."