mirror of
https://github.com/wassname/phaser.git
synced 2026-06-27 16:10:15 +08:00
Debug functions and more examples
This commit is contained in:
@@ -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 ]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user