mirror of
https://github.com/wassname/phaser.git
synced 2026-08-12 12:20:38 +08:00
Updated a lot of examples to Phaser 2.0 :)
This commit is contained in:
@@ -33,9 +33,7 @@ function createBall() {
|
||||
|
||||
var ball = game.add.sprite(game.world.randomX, 0, 'ball');
|
||||
|
||||
ball.body.gravity.y = 200;
|
||||
ball.body.bounce.y = 0.5;
|
||||
ball.body.collideWorldBounds = true;
|
||||
ball.physicsEnabled = true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user