playcraftengine
playcraftengine copied to clipboard
Device orientation input type
Add an input type for the device orientation. In order to use the positional object (pc.Point
), only event.alpha
and event.gamma
(z and y axes, respectively) are captured, but this accomplishes control on a 2d plane (e.g. rolling a ball around a maze).