Fixed world drag support and other input modifications.

This commit is contained in:
Richard Davey
2013-06-07 07:35:28 +01:00
parent 730594835a
commit a30762ed8c
37 changed files with 1078 additions and 435 deletions
+1
View File
@@ -33,5 +33,6 @@
}
function render() {
atari.body.renderDebugInfo(16, 16);
Phaser.DebugUtils.renderSpritePhysicsBody(atari);
}
})();
+1
View File
@@ -57,6 +57,7 @@
function render() {
atari.body.renderDebugInfo(16, 16);
Phaser.DebugUtils.renderSpritePhysicsBody(atari);
}
+4 -1
View File
@@ -39,9 +39,12 @@
atari.body.acceleration.y = 150;
}
// collide?
}
game.collide(atari, card);
}
function render() {
atari.body.renderDebugInfo(16, 16);
card.body.renderDebugInfo(200, 16);
Phaser.DebugUtils.renderSpritePhysicsBody(atari);
Phaser.DebugUtils.renderSpritePhysicsBody(card);
}
})();
+4
View File
@@ -64,6 +64,7 @@
}
// collide?
game.collide(atari, card);
}
@@ -72,6 +73,9 @@
atari.body.renderDebugInfo(16, 16);
card.body.renderDebugInfo(200, 16);
Phaser.DebugUtils.renderSpritePhysicsBody(atari);
Phaser.DebugUtils.renderSpritePhysicsBody(card);
}
})();