Removed unused imports, re-added paint func, more refactor work

This commit is contained in:
2024-10-18 17:45:50 +02:00
parent 7ce054191a
commit 1e0da5f7cc
5 changed files with 28 additions and 14 deletions

View File

@ -53,6 +53,10 @@ export function setAllTiles(zone: Tilemap, layer: TilemapLayer, tiles: string[][
})
}
export function createTileArray(width: number, height: number, tile: string = 'blank_tile') {
return Array.from({ length: height }, () => Array.from({ length: width }, () => tile))
}
export const calculateIsometricDepth = (x: number, y: number, width: number = 0, height: number = 0, isCharacter: boolean = false) => {
const baseDepth = x + y
if (isCharacter) {