Begin by installing dependencies with this command in the checkout's root:
The recommended editor is Sublime Text 3, with these plugins:
The best way to run the game is by serving the files from a web server; the easiest way to do that is by installing and running the
npm install http-server -g
The server will run on
This will create
dist/brainbuster.js, which can be added to a web page with a script tag:
Place the script tag before the closing
</body> tag, to ensure the DOM is ready when the script executes.
The DOM must contain a div for the game to append itself to:
The unit tests currently only run in a browser. Once you have a web server running go to:
New test suites have to be manually added to the test runner by editing
test.html; new test files are not automatically detected and run.
The CSS adheres to these rules:
- Class names are prefixed with
- Class names are written in lowercase, with hyphens to separate words.