mirror of
https://github.com/wassname/phaser.git
synced 2026-10-02 12:30:54 +08:00
Doing one final commit before the task of merging physics with core.
This commit is contained in:
1 parent
ec845155eb
commit
0591c7f2bd
12 files changed
+659
-682
No files matched your search
@@ -229,6 +229,12 @@ module Phaser {
|
||||
{
|
||||
var layer: TilemapLayer = new TilemapLayer(this.game, this, key, Tilemap.FORMAT_TILED_JSON, json.layers[i].name, json.tilewidth, json.tileheight);
|
||||
|
||||
// Check it's a data layer
|
||||
if (!json.layers[i].data)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
layer.alpha = json.layers[i].opacity;
|
||||
layer.visible = json.layers[i].visible;
|
||||
layer.tileMargin = json.tilesets[0].margin;
|
||||
|
||||
Reference in new issue
Block a user