<h1>Photomaze</h1>
<img src="images/full_size_portrait.jpg">
<h2>Starring Charles Sullivan</h2>
[[New Game->Maze 1 Intro]]
(link: "Load Game")[(load-game: "Game File")]
[[Story]]
(link: "Play more games!")[(goto-url: "https://steelfishstudios.com/games")]<h1>Maze 1</h1>
<img src="images/maze_1.png">
It will be a long way out of here...
(link: "Start Maze")[(set: $currentDirection to "up")(go-to: "L1B4")]<h1>
Story
</h1>
Top of the morning to ya! Name's Charles Sullivan!
I'm just your everyday photographer, working for the Irish Star Newspaper... no one special... all I do is just take photos of the many places I visit!
I travel to many places across many distances... even across time and space.
But today... I found a strange place...
I have no clue what's happening here, but I must investigate, for my special report!
</br>
[[Main Menu]](set: $numOfMoves to 0)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/start-room_up.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/start-room_down.png" class="background-image">
</div>
]
<span style="color: green;">You are at the start of the maze.</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L1B3")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/hallway_hori_more-floor_up.png" class="background-image">
</div>
](else-if: $currentDirection is "left")[
<div class="image-container">
<img src="images/hallway_hori_more-floor_left.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/hallway_hori_more-floor_right.png" class="background-image">
</div>
]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L1C3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L1B4")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L1A3")]
(set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "left")[
<div class="image-container">
<img src="images/2way_ur_left.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/2way_ur_down.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L1A2")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L1B3")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/dead-end_sign.png" class="background-image">
</div>
]
<span style="color: red;">DEAD END</span>
You see a sign.
[[Read sign->L1A2 Sign]]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L1A3")]<div class="image-container">
<img src="images/sign.png">
</div>
These signs can give you hints that will help you on your journey out the maze!
Be warned though, reading a sign adds to your Move Count!
[[Finish reading->L1A2]] (set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "down")[
<div class="image-container">
<img src="images/3way_down.png" class="background-image">
</div>
](else-if: $currentDirection is "left")[
<div class="image-container">
<img src="images/3way_left.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/3way_right.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L1C2")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L1D3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L1B3")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "right")[
<div class="image-container">
<img src="images/corner_ne_right.png" class="background-image">
</div>
]
<span style="color: red;">DEAD END</span>
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L1C3")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "down")[
<div class="image-container">
<img src="images/hallway_vert_down.png" class="background-image">
</div>
](else-if: $currentDirection is "up")[
<div class="image-container">
<img src="images/hallway_vert_up.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L1C1")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L1C3")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/corner_nw_up_wall-lamp.png" class="background-image">
</div>
]
There is an Exit Portal to your right.
[[Go right->L1D1]]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L1C2")](set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/victory.gif" class="background-image">
</div>
{
(live: 1s)[
(set: $randomRed to (random: 0, 255))
(set: $randomGreen to (random: 0, 255))
(set: $randomBlue to (random: 0, 255))
(text-colour: (rgb: $randomRed, $randomGreen, $randomBlue))[YOU WIN!!!]
]
}
You took $numOfMoves moves to complete this maze.
(if: $numOfMoves <= $HighScore_1)[
(set: $HighScore_1 to $numOfMoves)
]
[[Maze Select]]{
(set: $health to 100)
(set: $hasKey to false)
(set: $doorUnlocked to false)
(set: $numOfMoves to 0)
(set: $currentDirection to "up")
(set: $HighScore_1 to 999)
(set: $HighScore_2 to 999)
(set: $HighScore_3 to 999)
(set: $HighScore_4 to 999)
(set: $HighScore_5 to 999)
(set: $HighScore_6 to 999)
(set: $hasShovel to false)
(set: $prickyOnShovel to false)
(set: $wildPricky to true)
(set: $prickyAdopted to false)
(set: $petName to "Prickles")
}<h2>Maze Select</h2>
<h3>Misc.</h3>
(link:"Save Game")[(save-game: "Game File")] <!-- Save a game file -->
[[Main Menu]]
(if: $prickyAdopted is true)[(link: "Visit " + $petName)[(go-to: "Pricky Pet")]]
</br>
<h3>Mazes</h3>
[[1: Learn to Maze ->Maze 1 Intro]] - High Score: $HighScore_1
[[2: Second Verse, a lot like the first ->Maze 2 Intro]] - High Score: $HighScore_2
[[3: Prickly Situation->Maze 3 Intro]] - High Score: $HighScore_3
<!-- Mazes 4+ unlock after beating Maze 3 (it sets $HighScore_3 below 999). Put new mazes inside this hook. -->
(if: $HighScore_3 < 999)[(link-goto: "4: Horseshoe-ish", "Maze 4 Intro") - High Score: $HighScore_4
(link-goto: "5: Lock In", "Maze 5 Intro") - High Score: $HighScore_5](else:)[<span style="color: gray;">Beat Maze 3 to unlock more mazes!</span>]{
(if: $currentDirection is "up")[<img src="images/up_full.png">]
(else-if: $currentDirection is "down")[<img src="images/down_full.png">]
(else-if: $currentDirection is "left")[<img src="images/left_full.png">]
(else-if: $currentDirection is "right")[<img src="images/right_full.png">]
}(if: $hasShovel is true)[<h3>Inventory</h3>(if: $prickyOnShovel is true)[Shovel - Pricky](else:)[Shovel]]<h1>Maze 3</h1>
<img src="images/maze_3.png">
Something prickly lurks in this maze... watch your step!
(link: "Start Maze")[(set: $currentDirection to "up")(set: $numOfMoves to 0)(set: $hasShovel to false)(set: $prickyOnShovel to false)(set: $wildPricky to true)(go-to: "L3C4")](set: $numOfMoves to 0)
{<div class="scene">
<img src="images/start-room.png">
(display: "Charles Sprite")
</div>}
<span style="color: green;">You are at the start of the maze.</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L3C3")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
(if: $wildPricky is true)[<img src="images/3way_pricky.png">]
(else:)[<img src="images/3way.png">
(display: "Charles Sprite")]
</div>}
(if: $wildPricky is true)[<span style="color: red;">A Pricky is ahead!</span>
(if: $hasShovel is true)[
(link: "Scoop up the Pricky with the shovel")[(set: $wildPricky to false)(set: $prickyOnShovel to true)(go-to: "L3B3 Scoop")]]
](link: "Go up")[(set: $currentDirection to "up")(if: $wildPricky is true)[(go-to: "L3 Pricky Defeat")](else:)[(go-to: "L3B2")]]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L3C3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L3A3")]
(display: "L3 Inventory")<div class="image-container">
<img src="images/shovel_pricky-down.png">
</div>
Charles carefully scoops the Pricky up with his shovel. It wriggles a bit, but it can't poke him from there!
[[Continue->L3B3]]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/hallway_vert_pricky.png">
</div>
<span style="color: red;">CHARLES WAS DEFEATED!</span>
He walked right into the Pricky and got a face full of spines. Back to the start of the maze you go...
(link: "Return to start")[(set: $currentDirection to "up")(go-to: "L3C4")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_nw.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L3B3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L3A4")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_vert.png">
(display: "Charles Sprite")
</div>}
<span style="color: red;">DEAD END</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L3A3")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ul.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L3D2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L3C3")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ur.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L3D1")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L3E2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L3D3")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
(if: $hasShovel is false)[<img src="images/dead-end_shovel.png">]
(else:)[<img src="images/dead-end.png">
(display: "Charles Sprite")]
</div>}
<span style="color: red;">DEAD END</span>
(if: $hasShovel is false)[There is a shovel stuck in the ground.
(link: "Pick up the shovel")[(set: $hasShovel to true)(go-to: "L3D1 Shovel")]
](link: "Go down")[(set: $currentDirection to "down")(go-to: "L3D2")]
(display: "L3 Inventory")<div class="image-container">
<img src="images/shovel.png">
</div>
You picked up a shovel! Could come in handy in a prickly situation...
[[Continue->L3D1]]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne_sign.png">
</div>}
<span style="color: red;">DEAD END</span>
You see a sign.
[[Read sign->L3E2 Sign]]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L3D2")]
(display: "L3 Inventory")<div class="image-container">
<img src="images/sign.png">
</div>
Beware the Pricky! Touch one and you'll be sent running back to the start.
But keep one at a shovel's length, and it can't hurt you!
[[Finish reading->L3E2]](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_vert.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L3B1")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L3B3")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne.png">
(display: "Charles Sprite")
</div>}
There is an Exit Portal to your left.
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L3B2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L3A1")]
(display: "L3 Inventory")(set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/victory.gif" class="background-image">
</div>
{
(live: 1s)[
(set: $randomRed to (random: 0, 255))
(set: $randomGreen to (random: 0, 255))
(set: $randomBlue to (random: 0, 255))
(text-colour: (rgb: $randomRed, $randomGreen, $randomBlue))[YOU WIN!!!]
]
}
You took $numOfMoves moves to complete this maze.
(if: $numOfMoves <= $HighScore_3)[
(set: $HighScore_3 to $numOfMoves)
]
(set: $hasShovel to false)(set: $prickyOnShovel to false)
(if: $prickyAdopted is true)[Charles gently sets the Pricky down by the portal. It scurries off happily.
[[Maze Select]]
[[Main Menu]]](else:)[The Pricky on Charles' shovel is staring up at him...
[[Continue->L3 Adopt Pricky]]]<div class="image-container">
<img src="images/shovel_pricky-up.png">
</div>
Charles holds up his shovel for a closer look at the Pricky. It looks right back at him.
"Well now... you're not so scary up close, are ya, little fella?"
(link: "Continue")[The Pricky gives a tiny, happy wiggle.
"Can't leave you all alone in a place like this. Right then, you're coming with me! Every photographer needs an assistant."
(link: "Continue")[<span style="color: green;">Charles decided to adopt the Pricky as a pet!</span>
What should Charles name his new pet?
(input-box: bind $petName, "=X=", 1, "Prickles")
(link: "Confirm name")[(set: $petName to (trimmed: $petName))(if: $petName is "")[(set: $petName to "Prickles")](set: $prickyAdopted to true)(go-to: "Maze Select")]]]<h2>$petName</h2>
<div style="text-align: center;">
<img src="images/pricky_crop.png">
</div>
|petText>[$petName is happy to see you!]
(link-repeat: "Pet " + $petName)[(replace: ?petText)[(either: "Charles carefully pets " + $petName + " between the spines. It wiggles happily!", "Ouch! " + $petName + " is a little too prickly to pet today.", $petName + " leans into Charles' hand and purrs... do Prickies purr?")]]
(link-repeat: "Feed " + $petName)[(replace: ?petText)[(either: $petName + " munches on a mushroom. Delicious!", $petName + " gobbles up a beetle in one bite!", $petName + " sniffs the food and turns away. Not hungry, it seems.")]]
(link-repeat: "Take a photo")[(replace: ?petText)[(either: "*CLICK!* What a shot! " + $petName + " would make the front page of the Irish Star!", "*CLICK!* " + $petName + " hopped out of frame at the last second...", "*CLICK!* " + $petName + " strikes a pose. A natural!")]]
[[Rename->Pricky Rename]]
[[Back->Maze Select]]<h2>Rename $petName</h2>
(set: _newName to $petName)
(input-box: bind _newName, "=X=", 1, $petName)
(link: "Confirm name")[(set: _newName to (trimmed: _newName))(if: _newName is not "")[(set: $petName to _newName)](go-to: "Pricky Pet")]
[[Cancel->Pricky Pet]]<h1>Maze 2</h1>
<img src="images/maze_2.png">
That wasn't so bad.
This shouldn't be, either.
(link: "Start Maze")[(set: $currentDirection to "up")(go-to: "L2D4")](set: $numOfMoves to 0)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/start-room_up.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/start-room_down.png" class="background-image">
</div>
]
<span style="color: green;">You are at the start of the maze.</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2C4")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/2way_ul_up.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/2way_ul_right.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/2way_ul_down.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2B4")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L2C3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2D4")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/corner_ne_up.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/corner_ne_right.png" class="background-image">
</div>
]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L2B3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2C4")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "left")[
<div class="image-container">
<img src="images/hallway_hori_more-floor_left.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/hallway_hori_more-floor_right.png" class="background-image">
</div>
]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L2C2")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L2C4")](set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/corner_nw_left.png" class="background-image">
</div>
<span style="color: red;">DEAD END</span>
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L2B4")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/corner_nw_up_wall-lamp.png" class="background-image">
</div>
]
There is an Exit Portal to your right.
[[Go right->L2A2]]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2B1")](set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/victory.gif" class="background-image">
</div>
{
(live: 1s)[
(set: $randomRed to (random: 0, 255))
(set: $randomGreen to (random: 0, 255))
(set: $randomBlue to (random: 0, 255))
(text-colour: (rgb: $randomRed, $randomGreen, $randomBlue))[YOU WIN!!!]
]
}
You took $numOfMoves moves to complete this maze.
(if: $numOfMoves <= $HighScore_2)[
(set: $HighScore_2 to $numOfMoves)
]
[[Maze Select]](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/2way_ur_up.png" class="background-image">
</div>
](else-if: $currentDirection is "left")[
<div class="image-container">
<img src="images/2way_ur_left.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/2way_ur_down.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2A1")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L2B2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2C1")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/corner_ne_up.png" class="background-image">
</div>
](else-if: $currentDirection is "right")[
<div class="image-container">
<img src="images/corner_ne_right.png" class="background-image">
</div>
]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L2B1")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2C2")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "down")[
<div class="image-container">
<img src="images/hallway_vert_up.png" class="background-image">
</div>
]
<span style="color: red;">DEAD END</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2B1")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "up")[
<div class="image-container">
<img src="images/2way_ur_up.png" class="background-image">
</div>
](else-if: $currentDirection is "left")[
<div class="image-container">
<img src="images/2way_ur_left.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/2way_ur_down.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2B2")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L2C3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L2D2")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "right")[
<div class="image-container">
<img src="images/2way_ul_right.png" class="background-image">
</div>
](else-if: $currentDirection is "down")[
<div class="image-container">
<img src="images/2way_ul_down.png" class="background-image">
</div>
]
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L2C2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L2D1")](set: $numOfMoves to $numOfMoves + 1)
(if: $currentDirection is "left")[
<div class="image-container">
<img src="images/corner_nw_sign.png" class="background-image">
</div>
]
<span style="color: red;">DEAD END</span>
You see a sign.
[[Read sign->L2D1 Sign]]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L2D2")]<div class="image-container">
<img src="images/sign.png">
</div>
If you go back to the green spot where you started the maze, your Move Count will reset to 0. Keep this in mind if you're going for a record!
[[Finish reading->L2D1]] (set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_hori_more_floor.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L3D3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L3C4")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L3B3")]
(display: "L3 Inventory")<h1>Maze 4</h1>
<img src="images/maze_4.png">
"Ah, me new little pal, $petName. Y'know, I miss me cat. His name was Crispy, but I had ter leave 'im fer a while on account o' me maze missions. Me, erm... 'contractor,' we'll call 'im... wouldn't lemme bring me cat in 'ere wit' me. Me poor cat. So $petName will have ter do fer the time bein'."
(link: "Start Maze")[(set: $currentDirection to "up")(go-to: "L4C5")](set: $numOfMoves to 0)
{<div class="scene">
<img src="images/start-room.png">
(display: "Charles Sprite")
</div>}
<span style="color: green;">You are at the start of the maze.</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4C4")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_nw.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4D4")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4C5")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ul.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4D3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4C4")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_vert.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4D2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4D4")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne.png">
(display: "Charles Sprite")
</div>}
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4D3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4C2")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/3way.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4C1")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4D2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4B2")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne.png">
(display: "Charles Sprite")
</div>}
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4C2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4B1")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_hori_more_floor.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4C1")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4B2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4A1")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_nw.png">
(display: "Charles Sprite")
</div>}
<span style="color: red;">DEAD END</span>
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4B1")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ur.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4B1")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4C2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4B3")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ul.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4B2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L4A3")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_nw.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L4B3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4A4")](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_vert.png">
(display: "Charles Sprite")
</div>}
There is an Exit Portal below you.
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L4A3")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L4A5")](set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/victory.gif" class="background-image">
</div>
{
(live: 1s)[
(set: $randomRed to (random: 0, 255))
(set: $randomGreen to (random: 0, 255))
(set: $randomBlue to (random: 0, 255))
(text-colour: (rgb: $randomRed, $randomGreen, $randomBlue))[YOU WIN!!!]
]
}
You took $numOfMoves moves to complete this maze.
(if: $numOfMoves <= $HighScore_4)[
(set: $HighScore_4 to $numOfMoves)
]
[[Maze Select]]
[[Main Menu]](if: $hasKey is true)[<h3>Inventory</h3>Key]<h1>Maze 5</h1>
<img src="images/maze_5.png">
"Looks like one o' the paths has a glas on it. An' not the good kind o' ‘glass’ like the one that holds me ale, mind ye... no, I mean a lock."
(link: "Start Maze")[(set: $currentDirection to "up")(set: $numOfMoves to 0)(set: $hasKey to false)(set: $doorUnlocked to false)(go-to: "L5B4")](set: $numOfMoves to 0)
{<div class="scene">
<img src="images/start-room.png">
(display: "Charles Sprite")
</div>}
<span style="color: green;">You are at the start of the maze.</span>
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L5B3")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_vert.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L5B2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L5B4")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/hallway_hori_more_floor.png">
(display: "Charles Sprite")
</div>}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L5C2")]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L5B3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L5A2")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ur.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L5A1")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L5B2")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/dead-end_sign.png">
</div>}
<span style="color: red;">DEAD END</span>
You see a sign.
[[Read sign->L5A1 Sign]]
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L5A2")]
(display: "L5 Inventory")<div class="image-container">
<img src="images/sign.png">
</div>
Are those pesky doors in your way? Grab a key and get through!
It works just as well inside a maze as it does in your world!
[[Finish reading->L5A1]](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
(if: $doorUnlocked is true)[<img src="images/3way.png">(display: "Charles Sprite")]
(else:)[<img src="images/3way_door.png"><img src="images/up_quarter.png">]
</div>}
{(if: $doorUnlocked is true)[There is an Exit Portal ahead.]
(else:)[A locked door blocks the way ahead.(if: $hasKey is false)[ If only Charles had a key...]]}
{(if: $doorUnlocked is true)[(link: "Go up")[(set: $currentDirection to "up")(go-to: "L5C1")]]
(else-if: $hasKey is true)[(link: "Unlock the door with the key")[(set: $hasKey to false)(set: $doorUnlocked to true)(go-to: "L5C2 Unlock")]]}
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L5D2")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L5B2")]
(display: "L5 Inventory")<div class="image-container">
<img src="images/door.png">
</div>
Charles turns the key in the lock... *CLICK!* The door swings open!
[[Continue->L5C2]](set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne.png">
(display: "Charles Sprite")
</div>}
(link: "Go down")[(set: $currentDirection to "down")(go-to: "L5D3")]
(link: "Go left")[(set: $currentDirection to "left")(go-to: "L5C2")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/2way_ur.png">
(display: "Charles Sprite")
</div>}
(link: "Go up")[(set: $currentDirection to "up")(go-to: "L5D2")]
(link: "Go right")[(set: $currentDirection to "right")(go-to: "L5E3")]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
{<div class="scene">
<img src="images/corner_ne.png">
(if: $hasKey is false and $doorUnlocked is false)[<img src="images/key.png">]
(else:)[(display: "Charles Sprite")]
</div>}
<span style="color: red;">DEAD END</span>
(if: $hasKey is false and $doorUnlocked is false)[Something shiny is lying in the corner... a key!
(link: "Pick up the key")[(set: $hasKey to true)(go-to: "L5E3 Key")]
](link: "Go left")[(set: $currentDirection to "left")(go-to: "L5D3")]
(display: "L5 Inventory")<div class="image-container">
<img src="images/key.png">
</div>
You picked up a key! Now, where's that door...
[[Continue->L5E3]]
(display: "L5 Inventory")(set: $numOfMoves to $numOfMoves + 1)
<div class="image-container">
<img src="images/victory.gif" class="background-image">
</div>
{
(live: 1s)[
(set: $randomRed to (random: 0, 255))
(set: $randomGreen to (random: 0, 255))
(set: $randomBlue to (random: 0, 255))
(text-colour: (rgb: $randomRed, $randomGreen, $randomBlue))[YOU WIN!!!]
]
}
You took $numOfMoves moves to complete this maze.
(if: $numOfMoves <= $HighScore_5)[
(set: $HighScore_5 to $numOfMoves)
]
(set: $hasKey to false)(set: $doorUnlocked to false)
[[Maze Select]]
[[Main Menu]]