fix: setHitboxDimension had no instruction whatsoever for the fixtures

This commit is contained in:
minjaesong
2024-01-11 01:51:06 +09:00
parent 6e32647e6d
commit 52ae1768cb
4 changed files with 6 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ class FixtureHomeComputer : FixtureBase {
nameFun = { "Computer" }
) {
density = 1400.0
setHitboxDimension(TerrarumAppConfiguration.TILE_SIZE, TerrarumAppConfiguration.TILE_SIZE, 0, -1)
setHitboxDimension(TerrarumAppConfiguration.TILE_SIZE, TerrarumAppConfiguration.TILE_SIZE, 0, 0)
makeNewSprite(FixtureBase.getSpritesheet("dwarventech", "sprites/fixtures/desktop_computer.tga", TILE_SIZE, TILE_SIZE)).let {
it.setRowsAndFrames(1,1)