Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 393 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 393 Bytes

UniAxis Control Component

UniAxis is a CraftyJS (http://craftyjs.com) component that implements a 4 way control method allowing moving in a single direction at a time.

Usage is like any other control component. The only accepted argument is the speed that the entity is to be moved in.

var Player = Crafty.e("UniAxis").uniaxis(2);

Get me on Twitter via @BuddaBoy