Skip to content

max-mapper/fps-touch-controls

Repository files navigation

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

About

FPS style controls polyfill UI for touch devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published