#28 解析layers

This commit is contained in:
yhh
2020-08-13 20:32:36 +08:00
parent b0511db001
commit 4290a10d5d
10 changed files with 496 additions and 57 deletions

View File

@@ -93,6 +93,8 @@ module es {
}
public render(camera: es.Camera) {
this.sync(camera);
if (!this.layerIndicesToRender) {
TiledRendering.renderMap(this.tiledMap, this.displayObject as egret.DisplayObjectContainer, Vector2.add(this.entity.transform.position, this._localOffset),
this.transform.scale, this.renderLayer);