Depth sorting
This commit is contained in:
@ -35,8 +35,6 @@ const imageProps = computed(() => ({
|
||||
originY: props.placedMapObject.mapObject.originY
|
||||
}))
|
||||
|
||||
// ... existing code ...
|
||||
|
||||
function calculateObjectPlacement(mapObj: PlacedMapObject) : {x: number; y: number} {
|
||||
let position = tileToWorldXY(props.tileMapLayer, mapObj.positionX, mapObj.positionY)
|
||||
|
||||
@ -46,8 +44,6 @@ function calculateObjectPlacement(mapObj: PlacedMapObject) : {x: number; y: numb
|
||||
}
|
||||
}
|
||||
|
||||
// ... existing code ...
|
||||
|
||||
onMounted(async () => {
|
||||
await loadTexture(scene, {
|
||||
key: props.placedMapObject.mapObject.id,
|
||||
|
Reference in New Issue
Block a user