Contains all code for the "Escape of the Triangle" workshop. The code is split into two sections: Frontend and backend.
This is a group-based version of "Triangle Adventures", designed to encourage collaboration and to provide a gentler introduction to programming. It's meant for groups of 3 or 4, although the workshop can be played with fewer people. There are 10 main levels, along with a bonus level and a "winner" level.
The frontend was made using HTML/CSS/JS and put on the HHS Programming Club website. It's where people go to play the game.
The backend was made using Express (NodeJS) and socket.io, and it was hosted on Heroku. It keeps track of all the rooms / game states. It also has a very very basic admin panel.
Officers: See this Google Doc for more detailed info.
- Make sure Node.js is installed.
- Clone the Github repository.
- Open the repository using a code editor, such as VS Code.
- Open a terminal, navigate to the
frontend
folder, and run the commandnpx live-server
. - Open another terminal, navigate to the
server
folder, and run the commandnpx nodemon server.js
.
- Deploy all files in the
server
folder onto a Heroku app. - Edit the
frontend/js/index.js
file. Below the comment that saysCHANGE THIS
, change the URL to point to the Heroku app deployed in step 1. - Copy all files in the
frontend
folder to a folder on a web server.
Workshop made by Giantpizzahead (Kyle), with help from other Programming Club officers