mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Testing some new Camera tricks.
This commit is contained in:
+4
-3
@@ -54,12 +54,13 @@ Phaser.World.prototype = {
|
||||
*/
|
||||
boot: function () {
|
||||
|
||||
this.group = new Phaser.Group(this.game, null, '__world', false);
|
||||
|
||||
this.camera = new Phaser.Camera(this.game, 0, 0, 0, this.game.width, this.game.height);
|
||||
this.camera.displayObject = this.group;
|
||||
|
||||
this.game.camera = this.camera;
|
||||
|
||||
this.group = new Phaser.Group(this.game, null, '__world', true);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -77,7 +78,7 @@ Phaser.World.prototype = {
|
||||
{
|
||||
var currentNode = this.game.stage._stage.first._iNext;
|
||||
|
||||
do
|
||||
do
|
||||
{
|
||||
if (currentNode['preUpdate'])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user