mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Tilemap layers now initialize their alpha from LayerData
This makes it easy to import layer alphas from Tiled
This commit is contained in:
parent
696643051a
commit
f86298b8d2
2 changed files with 2 additions and 0 deletions
|
@ -89,6 +89,7 @@ var DynamicTilemapLayer = new Class({
|
|||
*/
|
||||
this.culledTiles = [];
|
||||
|
||||
this.setAlpha(this.layer.alpha);
|
||||
this.setTexture(tileset.image.key);
|
||||
this.setPosition(x, y);
|
||||
this.setSizeToFrame();
|
||||
|
|
|
@ -98,6 +98,7 @@ var StaticTilemapLayer = new Class({
|
|||
this.dirty = true;
|
||||
this.vertexCount = 0;
|
||||
|
||||
this.setAlpha(this.layer.alpha);
|
||||
this.setTexture(tileset.image.key);
|
||||
this.setPosition(x, y);
|
||||
this.setSizeToFrame();
|
||||
|
|
Loading…
Reference in a new issue