First commi using the new software

This commit is contained in:
Webeled
2013-10-11 22:26:27 +01:00
parent 574f4f351b
commit 3acdad92cb
20 changed files with 26 additions and 799 deletions
+1 -1
View File
@@ -29,7 +29,7 @@
if (game.input.mousePointer.isDown)
{
// 400 is the speed it will move towards the mouse
game.physics.moveTowardsMouse(sprite, 400);
game.physics.moveToPointer(sprite, 400);
// if it's overlapping the mouse, don't move any more
if (Phaser.Rectangle.contains(sprite.body, game.input.x, game.input.y))