mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 10:34:06 +09:00
closing issue #34, it was just hitbox not properly being updated
This commit is contained in:
@@ -142,7 +142,7 @@ class SpriteAnimation(@Transient val parentActor: ActorWBMovable) {
|
|||||||
}
|
}
|
||||||
else if (flipHorizontal) {
|
else if (flipHorizontal) {
|
||||||
batch.draw(region,
|
batch.draw(region,
|
||||||
FastMath.floor(posX).toFloat() + (2f * parentActor.hitboxTranslateX * scale + scale * parentActor.hitbox.width.toFloat()),
|
FastMath.floor(posX).toFloat() + (2f * parentActor.hitboxTranslateX * scale + parentActor.hitbox.width.toFloat()),
|
||||||
FastMath.floor(posY).toFloat(),
|
FastMath.floor(posY).toFloat(),
|
||||||
-FastMath.floor(cellWidth * scale).toFloat(),
|
-FastMath.floor(cellWidth * scale).toFloat(),
|
||||||
FastMath.floor(cellHeight * scale).toFloat()
|
FastMath.floor(cellHeight * scale).toFloat()
|
||||||
|
|||||||
Reference in New Issue
Block a user