2D sidescroller snowboarding game with friends
We'd like to acknowledge the use of music and button assets from OpenGameArt. The content on OpenGameArt is free of copyright and open source. Thanks goes to the contributors!
If you don't already have NodeJS 10.x installed, use brew install node
to install it on macOS. For other OS's see this guide.
- Clone this repository
cd
into the root of the repository and runnpm install
to install dependenciesnpm start
to start development server for the client. (runs on localhost:1234)npm run server
to run the NodeJS game server (run this at the same time as the client to dev)npm run lint
to run the linter before creating a pull request
Local development
npm run start:fb
- go to https://localhost:1234 and accept the self signed certificate- Then go to: https://www.facebook.com/embed/instantgames/270512940269917/player?game_url=https://localhost:1234 to see your app in facebook embed
npm run server
to run the server- Note that to get multiplayer working you will need to disable mixed content protection in your browser
Remote
- Go to https://ec2-13-211-203-242.ap-southeast-2.compute.amazonaws.com:8443/ and add the security certificate to your exception list
- Play game at: https://www.facebook.com/instantgames/270512940269917/
Client
npm run build
- Upload
dist.zip
to dev console facebook - Change production to the new build
- Test
Server
sh upload-server-to-aws.sh
- ssh into the server
- Run
run-server.sh
- Create a new branch -
git checkout -b my_new_feature
- Do all the work
- Push up branch to GitHub
- Completed task? Create a Pull Request and add reviewers
The colour palette for the project can be found here.