Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2d1949c3ec
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.437 kB

Joystick for Crafty JS - Javascript game engine

A joystick create as component for Crafty JS. Base on VirtualJoystick.js.


Example using with Crafty

Crafty.e("2D, Canvas, track").attr({ x: 100, y: 100 }) //base element .joystick( Crafty.e("2D, Canvas, stick").attr({ x: 100, y: 100 }), //stick element { mouseSupport : true, range: 20 } )

Jump to Line
Something went wrong with that request. Please try again.