Upgraded p2 to latest build.

This commit is contained in:
photonstorm
2014-02-19 03:58:24 +00:00
parent 08e5f18257
commit 7373db6e8c
2 changed files with 138 additions and 42 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render }, false, false, { gravity: [0, 10] } );
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render });
function preload() {
@@ -23,7 +23,7 @@ function create() {
bg = game.add.tileSprite(0, 0, 800, 600, 'background');
bg.fixedToCamera = true;
// game.physics.gravity.y = 20;
game.physics.gravity.y = 20;
game.physics.friction = 0.5;