<div id="story">
<div id="distance"></div>
<div id="left-foot"></div>
<div id="passages"></div>
<div id="right-foot"></div>
</div>
<audio id="footstep"></audio><<set $places to {
"the arcade" : {
"distance" : 1.5,
"color" : "var(--purple)",
"tag" : "arcade"
},
"the video store" : {
"distance" : 0.4,
"color" : "var(--yellow)",
"tag" : "video"
},
"Mcdonald's" : {
"distance" : 0.7,
"color" : "var(--orange)",
"tag" : "mcds"
},
"the movie theater" : {
"distance" : 2.0,
"color" : "var(--green)",
"tag" : "theater"
},
"the mall" : {
"distance" : 1.8,
"color" : "var(--blue)",
"tag" : "mall"
}
}>>
<<set $steps to 0>>
<<cacheaudio "music" "audio/if-anyone-dies.mp3">>Your legs are feeling sort of tired. Might need to slow down or rest for a bit.
<<repeat 5s>>
<<if $encounters.length > 0>>
<<set _universe to random(0, 5)>>
<<if _universe == 1>>
<<set _encounter to $encounters.pluck()>>
<<goto _encounter>>
<</if>>
<</if>>
<</repeat>><<set $history to []>>
<<set $destination to Object.keys($places).random()>>
<<setColor $places[$destination]["color"]>>
<<set $kmLeft to $places[$destination]["distance"]>>
<<set $steps to 0>>
<<resetFeet>>
<<set $encounters to []>>
<<set _objects to Story.lookup(
"tags", $places[$destination]["tag"])>>
<<for _i = 0; _i < _objects.length; _i++>>
<<set $encounters.push(_objects[_i].title)>>
<</for>><<displayDistance false>>
<<audio "music" stop>>
<<setColor "var(--white)">>
<span id="title">
<<link "Walk, man.">>
<<goto "Start">>
<</link>>
</span><br>
<span class="pulse" style="color:var(--gray);">
//Press Enter//
</span>
<<if Save.slots.has(0) and visited("Menu") <= 1>>
<<run Save.slots.load(0)>>
<<else>>
<<run Save.slots.save(0)>>
<</if>>You ready your walkman and hit play.<br>
It's time to //walk.//
<<timed 0.75s>>
<<audio "music" play>>
<<audio "music" loop>>
<</timed>>
<<timed 2s t8n>>
<<resetWalkProgress>>
<<displayDistance true>>
<<goto "Walking">>
<</timed>><<if passage() != "Menu">>
<<set $history.push(passage())>>
<</if>><<set $steps to 0>>
Use the <span class="pulse">left arrow key</span> to step with your left foot.Use the <span class="pulse">right arrow key</span> to step with your right foot.Use the <span class="pulse">number keys</span> to make a choice. (Or keep walking to move past choices.)
<<choices
"Finish tutorial." "Intro"
"Redo tutorial." "Tutorial1">><<widget "choices">>
<<for _i to 0; _i < _args.length; _i += 2>>
<span class="choice">
<<set _num to (_i / 2) + 1>>
<<set _str to
"[" + _num.toString() + "]">>
<<set _href to _args[_i + 1]>>
<<link _str _href>><</link>> _args[_i]<br>
</span>
<</for>>
<</widget>>
<<widget "setColor">>
<<set $color to _args[0]>>
<<script>>
var root = document.querySelector(":root");
root.style.setProperty(
"--walk-color", State.variables.color);
<</script>>
<</widget>>
<<widget "resetWalkProgress">>
<<set $kmLeft to $places[$destination]["distance"]>>
<<set $steps to 0>>
<</widget>>
<<widget "displayDistance">>
<<if _args[0] == true>>
<<script>>
var distanceDisplay =
document.getElementById("distance");
distanceDisplay.style.opacity = "100%";
distanceDisplay.innerHTML = (
State.variables.kmLeft +
" km left to " +
State.variables.destination);
<</script>>
<<elseif _args[0] == false>>
<<script>>
var distanceDisplay =
document.getElementById("distance");
distanceDisplay.style.opacity = "0%";
<</script>>
<</if>>
<</widget>>
<<widget "resetFeet">>
<<script>>
var leftFoot = document.getElementById("left-foot");
var rightFoot = document.getElementById("right-foot");
leftFoot.style.setProperty("--left-per", 0);
rightFoot.style.setProperty("--right-per", 0);
<</script>>
<</widget>>
<<widget "walkPast">>
<<set _steps to $steps>>
<<repeat 0.1s>>
<<if ($steps - _steps) == _args[0]>>
<<goto _args[1]>>
<</if>>
<</repeat>>
<</widget>><span class="pulse">Alternate</span> between these arrow keys to walk, and watch as you get closer to your destination. Don't walk too fast! You'll hurt yourself.
<<repeat 0.25s>>
<<if $steps >= 8>>
<<goto "Tutorial4">>
<</if>>
<</repeat>><<display "Reset">>
<<if visited("Tutorial1") > 0>>
<<goto "Intro">>
<<else>>
<<goto "Tutorial1">>
<</if>>A young man holds out his hands. "Do you have any change?"
<<choices
"Give him a quarter." "Thanks"
"Tell him you don't have any change." "No">>
<<walkPast 10 "Ignore">>The man smiles and thanks you. You'll have one less quarter for the arcade now.You ignore him and walk on."No problem," he says, "have a good day."<<if tags().includes("return")>>
<<timed 4s t8n>>
<<goto "Walking">>
<</timed>>
<</if>>There's a puddle!
<<choices
"Jump in it." "Jump"
"Walk around it." "Around">>
<<walkPast 4 "Through">>You jump into the puddle! It's a blast!You walk right through the puddle.You walk around the puddle. Don't want to get your shoes wet.You just realized you forgot your wallet!
<<choices
"Turn around and get it." "Back"
"Just figure it out when you get there." "Meh">>
<<walkPast 10 "Meh">>You go back and get your wallet.
<<resetWalkProgress>>Meh. You'll just hope things work out.A dog runs up to you on the sidewalk.
<<choices
"Pet the dog." "Pet"
"Scratch the dog's belly." "Scratch"
"Tell the dog it's good." "Good">>
<<walkPast 8 "Past">>You pet the dog. It enjoys it immensely.You scratch the dog's belly. That's what it really wanted.You tell the dog that it's good, and it's not a lie. The dog //is// good.You just walk past the dog. It watches as you go.Someone has kept up a really nice garden. Their flowers are blooming.
<<choices
"Smell the flowers." "Smell">>
<<walkPast 4 "Step">><<displayDistance false>>
<<setColor "var(--white)">>
Finally, you arrive at $destination.<br><br>
<span class="pulse">Press Enter</span>The flowers smell quite nice. You're glad you took the time to stop.You just walk past the flowers. You accidentally step on one too.A woman standing on the street corner is screaming about the end of the world.
<<choices
"Stop and listen to her." "Listen">>
<<walkPast 10 "Dont">>"The end is soon! June 13th, at 12 in the morning, everything will suddenly cease to exist!" she points at you. "Even //you// will fade away into nothingness!"You don't think you really need to hear any of that.There is a gnarly car accident on this street.
<<choices
"Glance over at it." "Look"
"Ask if anyone knows what happened." "Died">>
<<walkPast 12 "Healthy">>You look over at it, but there's too many other people crowded around. You just see a bit of a crumpled bumper.On the other hand, it probably isn't healthy to stare at that kind of stuff. You just keep walking."I heard someone //died,"// this lady explains.Someone waves at you.
<<choices
"Wave back." "Someone">>
<<walkPast 4 "Know">>You wave back at someone.You ignore them. You aren't even sure if you know that person."Psst. Hey buddy. Y'looking fer movie tickets?" some guy calls over to you. "I've got some. Cheaper than at the theater."
<<choices
"Tell him you are." "Here"
"Tell him you aren't." "Bad"
"Tell him you'll just sneak in." "My">>
<<walkPast 6 "Time">>"Here, kid. Fer the new //Blood Gushers.// Betcher mom'd never letcha see that, huh? Just five bucks.""That's too bad kid. Coulda given ya a pretty great deal here."You don't have time for this dude. You just keep walking.//"Ha!// My kinda kid, aren'tcha?!"You see an ad for the new Nintendo console.
<<choices
"Maybe you'll buy that at the mall!" "Cool"
"You don't really care about that." "Baby">>
<<walkPast 6 "Interested">>That would be so cool. Not sure if you'd have enough though.That stuff is for babies.Meh. It doesn't really interest you too much.You see a poster for the new //Blood Gushers// movie. They already have it at the video store.
<<choices
"Maybe you could get it!" "If"
"That's satanic." "Satan">>
<<walkPast 4 "Try">>If all the copies aren't already gone, of course.At least, that's what you've heard.You try to ignore the poster and walk on. It gives you the heebie jeebies.You see a bird pulling apart a hamburger bun. Probably not unlike the one you'll be getting at McDonald's.
<<choices
"Shoo the bird." "Shoo"
"Walk around the bird." "Bun">>
<<walkPast 2 "Bother">>You shoo the bird out of your way.You walk around the bird, and leave it to its bun.You just walk by the bird like normal. No need to act weird.Someone shouts something out of a car driving by. It might be 'nice cans.'
<<choices
"Yell back." "Yell"
"Throw something at them." "Throw"
"Flip them off." "Flip">>
<<walkPast 2 "Hear">>You yell back, but you aren't sure if they heard you.You instinctively chuck whatever is in your hand at them. It's your Walkman. Luckily, it survives your rash decision.Sometimes the best course of action is the simplest. You flip them off.You ignore it. They probably wouldn't hear or see whatever you did now anyway, and you don't even know if whatever they said was directed at you.You think you hear someone talking to you, but you can't hear over your music.
<<choices
"Stop your music." "Stop">>
<<walkPast 16 "Nothing">>You stop your music and listen. But you don't hear anything.
<<audio "music" pause>>
<<timed 2s>>
<<audio "music" play>>
<</timed>>You ignore it. Probably nothing.