Students should use this rubric for self-checking their submission. Make sure the functions you write are object-oriented - either class functions (like Player and Enemy) or class prototype functions such as Enemy.prototype.checkCollisions, and that the keyword 'this' is used appropriately within your class and class prototype functions to refer to the object the function is called upon. Also be sure that the readme.md file is updated with your instructions on both how to 1. Run and 2. Play your arcade game.
For detailed instructions on how to get started, check out this guide.
The above project is to be used to make it compatible to play offline
In order to run this project locally, you need to use a localhost since the Service Worker only works with https and localhost. This is how I did it:
/*Steps for express.js */
- install node on you system
- Navigate into the game folder where package.json file is present and install project dependencies --> npm install
- Run the project --> node server --> It should output "sever on 8000"
- start http://localhost:8000/ : your index.html will be called