mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 11:23:06 +08:00
Preparing for 1.0.6 release, but moving physics changes to dev.
This commit is contained in:
@@ -87,6 +87,8 @@ Phaser.TilemapLayer = function (parent, id, key, mapFormat, name, tileWidth, til
|
||||
|
||||
this._alpha = 1;
|
||||
|
||||
this.quadTree = null;
|
||||
|
||||
this.canvas = null;
|
||||
this.context = null;
|
||||
this.baseTexture = null;
|
||||
@@ -472,6 +474,12 @@ Phaser.TilemapLayer.prototype = {
|
||||
|
||||
this.parent.addChild(this.sprite);
|
||||
|
||||
},
|
||||
|
||||
createQuadTree: function (width, height) {
|
||||
|
||||
this.quadTree = new Phaser.QuadTree(this, 0, 0, width, height, 20, 4);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user