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?
Laser Game
by
Alexander Geoffrey Osborn
Played 61 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Laser Game" Include Basic Screen Effects by Emily Short. start is a room. "[if unvisited]Go north to enter the laser field." laser field is a room. laser field is north of start. forwarding is an action out of world. understand "forward" as forwarding. lefting is an action out of world. understand "left" as lefting. righting is an action out of world. understand "right" as righting. move count is a number that varies. move count is 0. After going to laser field: say "You are now in the laser field.[paragraph break]The lasers will become invisible when you start moving.[line break]Memorize the correct pathway to avoid death.[paragraph break]"; say " ❌❌❌⬜❌❌❌❌[line break] ❌❌❌⬜⬜⬜❌❌[line break] ❌❌❌❌❌⬜❌❌[line break] ❌❌❌❌❌⬜❌❌[line break] ❌❌⬜⬜⬜⬜❌❌[line break] ❌❌⬜❌❌❌❌❌[line break] ❌❌⬜⬜⬜❌❌❌[line break] ❌❌❌❌✅❌❌❌[paragraph break]"; say "Press [bold type]any key[roman type] to enter"; wait for any key; clear the screen; say "Move forward, left, or right.[line break]"; now the command prompt is "Move >"; increase move count by 1; After reading a command when the command prompt is "Move >": if player's command matches "forward" or player's command matches "left" or player's command matches "right": if the player's command matches "forward" and move count is 1: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "left" and move count is 2: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "left" and move count is 3: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 4: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 5: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "right" and move count is 6: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "right" and move count is 7: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "right" and move count is 8: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 9: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 10: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 11: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "left" and move count is 12: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "left" and move count is 13: say green letters; say "You move [player's command] safely.[line break]"; increase move count by 1; say black letters; continue the action; if the player's command matches "forward" and move count is 14: say green letters; say "You move [player's command] safely.[line break]"; say "[bold type]You have successfully made it out of the laser field.[roman type][line break]"; increase move count by 1; say black letters; end the game in victory; otherwise: say red letters; say "You ran into the lasers."; say black letters; end the game in death; otherwise: continue the action.