arcade_keys
v2.0.0
Published
Front end module for arcade controls
Downloads
2
Readme
Arcade Keys
Arcade Keys is a module to provide keypress tracking for gameplay.
Usage
let el = document.querySelector('canvas')
let arcadeKeys = ArcadeKeys(el)
if (arcadeKeys.isPressed('up')) {
alert('You pressed up!')
}
Tests
Test are written using mocha/expect and run via karma.
To run the tests:
npm test