Janilla JavaScript and story-telling combine in a spooky short
sci-fi mystery. Navigate between choices and escape the abondoned
vessel.
Check out the detailed explanation below, see the app
live
or see the
Github Repo
Make use of JavaScript to create a simple "choose your own adventure-style" game.
I started with the HTML and CSS contructed to give me a box with both choices visible as well as a place for the story to appear.
The story slugs were already established in the JavaScript file so next I created a series of functions that would push/pop the various story slugs in and out of the array based on the choices the user clicks.
The result was a fun little text adventure game.
The hardest part of this project was wrapping my mind around the logic of the JavaScript. I had to break the functions down into much smaller concepts becuase looking over all I would have to do was a big challenge.