Inspiration
Our inspiration for this project came from the earth's current climate crisis. Climate change is advancing rapidly and it needs to be mitigated. However, it seems that every solution has implications. This is why we wanted to ask what an individual would do when given the power to change the world.
What it does
Our website gives users a series of yes or no questions. Each question is dependent on the user's answer to the previous one. Also dependent on the answer, we added parameters such as money, happiness, nature, energy, and the future. All of these can either be positively or negatively impacted by the user's choice. These parameters then influence the background to suit the crisis.
How we built it
We used HTML for the general framework but mainly relied on javascript for the heavy-lifting. We stored our questions as an object and called on a question depending on the user's previous response. We used if statements to change color, font, sound, and blurriness depending on how high or low the parameters were.
Challenges we ran into
Some of the key challenges we ran into were getting the visuals to work for the program ended up crashing with its failure to load on time. We also has trouble creating webpages because we kept running into 404 errors.
Accomplishments that we're proud of
We are very proud that we got the background effects to work as well as they did. We also really love the fact that we were able to create functions that used loops and variables in order to access the questions and ask them accordingly, depending on the user's response.
What we learned
We learned how to create objects in javascript that store multiple conditionals and variables for this was a key part of getting our project to work
What's next for Climate Crisis
We definitely want to add a Climate Crisis today page to compare the outcomes of the user's decisions and the projected outcome of the path humanity is currently on. We would also love to add sound effects along with visuals because we weren't able to accomplish that before.
Log in or sign up for Devpost to join the conversation.