diff --git a/assets/mods/basegame/wires/8198.tga b/assets/mods/basegame/wires/8198.tga index aefc29cac..824f81539 100644 --- a/assets/mods/basegame/wires/8198.tga +++ b/assets/mods/basegame/wires/8198.tga @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f1299b2985208fc655d90af582f861e4bb4bafef4c108ca5f7d817e227535467 +oid sha256:23425ba34016e28d506cdce69e2ea4862bd348e6267c6c95ef8af9cc2ac6d0f0 size 16402 diff --git a/src/net/torvald/terrarum/gameactors/WireActor.kt b/src/net/torvald/terrarum/gameactors/WireActor.kt index b519bbba6..8037a05a3 100644 --- a/src/net/torvald/terrarum/gameactors/WireActor.kt +++ b/src/net/torvald/terrarum/gameactors/WireActor.kt @@ -25,7 +25,7 @@ class WireActor(id: ActorID) : ActorWithBody(RenderOrder.WIRES, PhysProperties.I init { referenceID = id - setHitboxDimension(2, 2, 0, 0) + setHitboxDimension(TILE_SIZE, TILE_SIZE, 0, 0) } private var wireID = "" @@ -63,14 +63,15 @@ class WireActor(id: ActorID) : ActorWithBody(RenderOrder.WIRES, PhysProperties.I } } sprite!!.currentFrame = ret + sprite!!.flipVertical = true // turns out the sprites are rendered upside-down by default :( } private fun getNearbyTilesPos(x: Int, y: Int): Array { return arrayOf( Point2i(x + 1, y), - Point2i(x, y - 1), + Point2i(x, y + 1), Point2i(x - 1, y), - Point2i(x, y + 1) // don't know why but it doesn't work if I don't flip Y + Point2i(x, y - 1) ) } diff --git a/work_files/graphics/wires/wires_collection_powerwires.kra b/work_files/graphics/wires/wires_collection_powerwires.kra index 5e6016d35..b313ef79b 100644 --- a/work_files/graphics/wires/wires_collection_powerwires.kra +++ b/work_files/graphics/wires/wires_collection_powerwires.kra @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fc6ee1a0c1f1161f4de87d8d990dc2b74b88c19fa757b498a4187eeec5ac50a5 -size 222879 +oid sha256:d03027b3317f90d0edcefc4c53b0782f081a0399ea80410d9ee6ebaf96917fb1 +size 223311