The goal of the game is to kick the ball with the cursor over and over without touching the floor.
The game is developed without using any game framework, nor using canvas neither WebGL, just for the sake of testing the performance with the DOM at 60 fps.
You will need node.js v6.9.2 or greater installed on your machine.
Clone the repository, open the folder in the terminal and run the following commands:
npm install(will install all dependencies listed at package.json.
npm run build(will generate game files at dist/ folder).
The entry point of the game is the file src/index.html. There we found all the screens of the game.
Available NPM Commands
npm run build
Generate CSS files and copies HTML and JS files to dist/ folder.
npm run build:prod
Cleans dist/ folder, lints HTML, CSS and JS files, generate CSS files and minifies all files into dist/ folder.
npm run lint
Lints HTML, CSS and JS files.
npm run clean
Cleans dist/ folder.
npm run watch
Watches for changes in src/ folder and runs the appropriate task when a file is modified.
Starts a dev server at 127.0.0.1:8080 with path to dist/ folder.
A Note About the Sounds
The sounds effects are dynamically generated using the Web Audio API and an audio synthesizer library.
Released under the MIT license.