Fixed placing tiles

This commit is contained in:
2024-10-17 18:39:18 +02:00
parent 3765cfe5e9
commit 3902c611fa
3 changed files with 18 additions and 25 deletions

View File

@ -36,8 +36,8 @@ export function placeTile(zone: Tilemap, layer: TilemapLayer, x: number, y: numb
}
export function setAllTiles(zone: Tilemap, layer: TilemapLayer, tiles: string[][]) {
tiles.forEach((row, y) => {
row.forEach((tile, x) => {
tiles.forEach((row: string[], y: number) => {
row.forEach((tile: string, x: number) => {
placeTile(zone, layer, x, y, tile)
})
})