buildingmaker: import penmode

This commit is contained in:
minjaesong
2023-10-24 14:21:53 +09:00
parent 18ab292e24
commit a5a2c98041
2 changed files with 24 additions and 72 deletions

View File

@@ -201,8 +201,8 @@ class POILayer(
}
fun placeOnWorld(world: GameWorld, bottomCentreX: Int, bottomCenterY: Int) {
val topLeftX = bottomCentreX - blockLayer[0].width / 2
val topLeftY = bottomCenterY - blockLayer[0].height
val topLeftX = bottomCentreX - (blockLayer[0].width - 1) / 2
val topLeftY = bottomCenterY - (blockLayer[0].height - 1)
blockLayer.forEachIndexed { layerIndex, layer ->
for (x in 0 until layer.width) { for (y in 0 until layer.height) {