Our DDM task in sophomore year was to make a website where you could play a text-based game where your choices affected the outcome.
The first thing you see after starting. A stickman scientist named Smiley. He will get mad if you don’t call him “Mister Smiley”.
The screen that appears when you get the true ending.
The screen that appears when you die. It will appear a lot before you figure out how to get to the end.
To the left is is the Javascript code that was used to update the screen to the correct scenario when you make a choice. Unfortunately, I realize now that some things, such as music playing when the villain appears, a choice changing if you saw something before, or the text when the game is over is decided through hard coded numbers instead of constants or some other more modular method. Below is an example of the CSS file, specifically the styles for the story end screen.
