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?
Examine the Clock Demo
by
zach whalen
Played 1,630 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"clock" by zw [This is a demonstration of a scenario that came up in class discussion today. There might be better ways to accomplish this.] The bedroom is a room. "You find yourself in a bedroom." The hallway is south of the bedroom. "You have traveled into the hallway, ready to start your day." The clock is in the bedroom. [It's just a thing.] The description of the clock is "It's an old-fashioned numeric clock hanging on the wall above your desk. According to its archaic notion of displaying time with the position of its 'hands,' the current time is 12:46." [This creates a property that can store a numeric value.] The clock has a number called status. The status is 0. [pretty self explanatory ...] After examining the clock: now the status is 1. [This was in here for testing...] [Every turn when the status of the clock is 0: say "It's zero".] Instead of going south when the status of the clock is 0, say "I should check the time first".