Debug functions ? Seems last commit didn't work

This commit is contained in:
alvinsight 2014-02-21 16:38:19 +00:00
parent 2eab5d4815
commit 2669f81391
2 changed files with 3 additions and 0 deletions

View file

@ -43,5 +43,6 @@ function update() {
function render() {
game.debug.renderSpriteBounds(s);
game.debug.renderSpriteInfo(s, 20, 32);
}

View file

@ -35,6 +35,8 @@ function create() {
// The player
sprite = group.create(300, 200, 'phaser');
sprite.physicsEnabled = true;
// Some trees
for (var i = 0; i < 50; i++)
{