From 2eab5d48153a193e4c7391ffaa33acef47090901 Mon Sep 17 00:00:00 2001 From: alvinsight Date: Fri, 21 Feb 2014 16:37:57 +0000 Subject: [PATCH] Debug functions and more examples --- examples/input/keyboard justpressed.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/input/keyboard justpressed.js b/examples/input/keyboard justpressed.js index 8eb6321e..a4c24e32 100644 --- a/examples/input/keyboard justpressed.js +++ b/examples/input/keyboard justpressed.js @@ -19,10 +19,13 @@ function create() { bullets = game.add.group(); bullets.createMultiple(10, 'bullet'); + bullets.setAll('physicsEnabled',true); bullets.callAll('events.onOutOfBounds.add', 'events.onOutOfBounds', resetBullet, this); sprite = game.add.sprite(400, 550, 'phaser'); + sprite.physicsEnabled = true; + // Stop the following keys from propagating up to the browser game.input.keyboard.addKeyCapture([ Phaser.Keyboard.LEFT, Phaser.Keyboard.RIGHT, Phaser.Keyboard.SPACEBAR ]);