Crafty.multitouch(true);
Crafty.mobile = true;
Crafty.e('2D, Canvas, Color, Multiway, Touch')
.attr({
x: 100,
y: 100,
w: 40,
h: 40
})
.color('green')
.bind('TouchMove', function(TouchPoint) {
this.x = TouchPoint.realX;
this.y = TouchPoint.realY;
});
--
You received this message because you are subscribed to the Google Groups "Crafty" group.
To unsubscribe from this group and stop receiving emails from it, send an email to craftyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.