level
number that reflects current player level (evetually effecting score and game speed)snakeColor
keystring that updates color of the snakefoodColor
keystring that updates color of the food- Example:
https://e-a-n.github.io/snakeBrunch/?level=999&foodColor=blue
- clone repository
- run
npm install
in command line environment, make sure you're in the cloned repository npm start
orbrunch watch
if nodejs is installed- Open a browser and go to http//:127.0.0.1:3333 or localhost:3333
- add the js file to the /app/js directory
- export the file contents with module.exports
- inside initialize.js make sure to require the file
require("./js/newModule.js");
- As long as references are correct the file will automatically appear in the build file
- add the css file to the /app/css directory
- make sure references are correct!
- remember references are rooted in location of the index.html file!
- add the html files in app/static/ directory
- images should be placed in app/static/assets/img
- audio should be placed in app/static/assets/audio