Zero Hour
A space shmup game I made for a school project using the HTML5 game framework Phaser 3. This project was made with help from these amazing tutorials on Zenva.
How to play
This app is hosted using heroku. Simply go to the site https://thepiguy-zero-hour.herokuapp.com/ to view the game. The source code is located under the js/ repository.
How to develop
- First of all, install Node.js if you haven't already.
- Clone this repository and navigate to it in your terminal or command prompt.
- Run
npm install
to install all of the dependencies. - Run
npm run dev
to build the files. This project usesconcurrently
to run three processes at once:
- Starts a local
mongod
server for testing - Bundles your files using webpack, watching your files for any changes and automatically updating them
- Begins the server with
src/server/server.js
as the entry point
- To view the server console logs, either:
- Inspect Element using Google Chrome and click on the Node.js symbol in the toolbar, or
- Go to chrome://inspect/#devices in your browser.
How to run
- Run
npm run build
to build the webpack files, and then runnpm start
to launch the server. - Navigate to http://localhost:8080/ in your browserto view the game.