Graphics updated and restored. Working through fixing up Physics.

This commit is contained in:
photonstorm committed 2014-02-07 19:44:14 +00:00
1 parent c429787877
commit 67bd653eb4
4 files changed
+47 -63

No files matched your search

+3
View File
@@ -22,6 +22,8 @@ function create() {
var bg = game.add.sprite(0, 0, bmd);
bg.body.moves = false;
game.enableStep();
game.physics.gravity.y = 100;
sprite = game.add.sprite(32, 450, 'arrow');
@@ -61,5 +63,6 @@ function update() {
function render() {
game.debug.renderBodyInfo(sprite, 16, 24);
game.debug.renderPhysicsBody(sprite.body);
}