Merge branch 'develop' into fix-issue-1835
This commit is contained in:
commit
20267d3483
4 changed files with 161 additions and 0 deletions
|
@ -85,6 +85,7 @@ export class GameMap {
|
|||
phaserMap
|
||||
.createLayer(layer.name, terrains, (layer.x || 0) * 32, (layer.y || 0) * 32)
|
||||
.setDepth(depth)
|
||||
.setScrollFactor(layer.parallaxx ?? 1, layer.parallaxy ?? 1)
|
||||
.setAlpha(layer.opacity)
|
||||
.setVisible(layer.visible)
|
||||
.setSize(layer.width, layer.height)
|
||||
|
|
|
@ -78,6 +78,8 @@ export interface ITiledMapTileLayer {
|
|||
width: number;
|
||||
x: number;
|
||||
y: number;
|
||||
parallaxx?: number;
|
||||
parallaxy?: number;
|
||||
|
||||
/**
|
||||
* Draw order (topdown (default), index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue