mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Lots of new examples and updates.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
// This will update the sprite.rotation so that it points to the currently active pointer
|
||||
// On a Desktop that is the mouse, on mobile the most recent finger press.
|
||||
sprite.rotation = game.physics.angleBetweenPointer(sprite);
|
||||
sprite.rotation = game.physics.angleToPointer(sprite);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user