Day # 77/100: Text adventure
A few days ago I ran into a game called “Text adventure” in which you basically need to select the right answer to a question amongst a group of options.
I thought it’d be a good idea to emulate it and create a website for it, so for today’s project I decided to create a small app for that game.
The key here is to be able to make the app jump to the next question only when the user has selected the right answer.
We can achieve that with Javascript by handling events on the DOM and displaying the following website that includes a new question.
Comments
Post a Comment