🎮 Provide keyboard controls for burnout game engine.
- Map the
upkey for burnoutcontrol.up(). - Map the
downkey for burnoutcontrol.down(). - Map the
leftkey for burnoutcontrol.left(). - Map the
rightkey for burnoutcontrol.right().
Tip: First, install and config burnout.js game engine.
$ yarn add burnout-keyboard-controls-pluginTip: Use Webpack (or similar module bundler) to manage the components.
import burnoutKeyboardControlsPlugin from 'burnout-keyboard-controls-plugin';Tip: Use Browserify (or similar module bundler) to manage the components.
const burnoutKeyboardControlsPlugin = require('burnout-keyboard-controls-plugin');// ...
burnout.defineControlsPlugin(burnoutKeyboardControlsPlugin);
// ...Clone this repository and install its dependencies:
$ git clone https://github.com/burnoutjs/burnout-keyboard-controls-plugin.git
$ cd burnout-keyboard-controls-plugin
$ yarnBuilds the library to dist:
$ yarn build
Builds the library, then keeps rebuilding it whenever the source files change using rollup-watch:
$ yarn devFollow the JS Code Style Guide by Afonso Pacifer.
All code style are automatic validate with ESLint:
Run all unit tests:
$ yarn testTo keep better organization of releases we follow the Semantic Versioning 2.0.0 guidelines.
Want to contribute? Follow these recommendations.
See Releases for detailed changelog.
