Sophomore DDM:

Reflection

For our DDM we had to make an interactive story website that used Javascript. For the story I did it was a post nuclear apocalypse story set in Canada where there is a permanent nuclear winter. This story takes place in my indie project inspired by Fallout and STALKER called Everfrost.

There are multiple different paths that you can take in this story. Some paths will lead to death and some paths lead to more paths that can bring you to 1 of 4 endings. How I got the story to work is by storing everything in a list with an ID allowing for different paths to be chosen. But if the ID is equal to -1 it restarts the story which is used to let you try again if you die or win. There is also a credits page that loads when you press the credits button when you win by using the ID of 111. 

The buttons and text are all created by functions that allow you to see them. For the buttons there are two functions that allow you to see them and click them. If an option is chosen the function allows you to go to the path that the option will bring you to. The Javascript was linked to the html files allowing me to program the website. This project was a lot of fun to create and allowed me to be more creative with my ideas.