Guardians of the Forest

Developed for the 'Girls in Tech' Hackathon in Vancouver, BC, on May 4-5 2019.

Play it here!

Created by team 9:

  • Debby
  • Josh
  • Edmond
  • Sasha

  • What our site does

    Guardians of the Forest is an online web game that has the user put out forest fires. The fires become more frequent, and if all the trees light up, the game is over! The user must see how long they can last, and in the process hopefully understand more about the critical nature of forest fires. If the player is interested, there is a 'learn more' page that offers more information.

    What we're trying to solve

    Forest fires, particularly in BC, are becoming more and more frequent every summer and without action nothing is going to change. Our hope is to raise awareness of this serious issue and encourage action against it- from something as simple as never leaving a campfire unattended to how they can help spread awareness themselves. This falls under scenario 4 as given by Hacking for Humanity, and it also could be applied to scenario 2 as it uses gaming to educate.

    What technologies we used

    The game was developed in pure, unadulteraded JavaScript- a solution we would never recommend for designing a game. While it works, it was extremely difficult to develop and implement (especially in only two days!). We didn't get as far as we would've liked but we feel we managed to give a good idea of what we want to do. Besides JavaScript, we used only CSS for the design on the home and learn more pages. Node.js was used for testing on a local server, and when the game was finished we hosted it with Firebase (link to that page at the top of the readme). The sprites for the game were designed with Piskel, a pixel art editor, linked below in the resources.

    What we found difficult

    With JavaScript, everything can feel difficult. That being said, the most involved and complicated feature to implement was the actual clicking and subsequent extinguishing of the fires. Because we used 'canvas' with JavaScript, everything is display as only one image without any actual reference for each sprite. This made it cumbersome to remove individual fires- plus, when something happened, the entire canvas had to be cleared and then re-drawn. Again, we cannot stress this enough: do not make a game in straight JavaScript.

    What are the next steps?

    Resources utilised: - Firebase, used for hosting the site - Piskel, a pixel art editor - Superscript font|VT323 - Press Start 2P & VT323 fonts

Built With

Share this project: