Graphics updated and restored. Working through fixing up Physics.

This commit is contained in:
photonstorm
2014-02-07 19:44:14 +00:00
parent c429787877
commit 67bd653eb4
4 changed files with 47 additions and 63 deletions
+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);
}