node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

fps-touch-controls

fps-touch-controls

designed to be used with player-physics

uses game-controller for the UI

var createTouchControls = require('fps-touch-controls')
var touchControls = createTouchControls()
touchControls.pipe(playerPhysics)
touchControls.on('command', function(command, setting) {
  playerPhysics.emit('command', command, setting)
})

LICENSE

BSD