wip debugging "roundworld anomaly"

This commit is contained in:
minjaesong
2019-05-30 23:35:01 +09:00
parent 2b35e547da
commit a595dc2665
3 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,6 @@ import net.torvald.terrarum.gameworld.GameWorld
import net.torvald.terrarum.modulebasegame.gameactors.ActorHumanoid
import net.torvald.terrarum.realestate.LandUtil
import net.torvald.terrarum.worlddrawer.CreateTileAtlas
import net.torvald.terrarum.worlddrawer.FeaturesDrawer
import net.torvald.terrarum.worlddrawer.WorldCamera
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
import org.dyn4j.geometry.Vector2

View File

@@ -733,6 +733,7 @@ open class Ingame(batch: SpriteBatch) : IngameInstance(batch) {
)
/** whether the actor is within screen */
// FIXME "roundworld anomaly"
private fun ActorWithBody.inScreen() =
distToCameraSqr(this) <=
(Terrarum.WIDTH.plus(this.hitbox.width.div(2)).

View File

@@ -67,7 +67,7 @@ open class FixtureBase(blockBox0: BlockBox, val blockBoxProps: BlockBoxProps = B
return true // TODO for the tests' sake, just get fucking spawned
// FIXME has "roundworld anomaly"
// FIXME has "roundworld anomaly"; check 'ActorWithBody.inScreen()'
}
/**