mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 13:04:05 +09:00
buildingmaker: import penmode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user