mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
new skybox drawing wip
This commit is contained in:
@@ -30,8 +30,8 @@ object BlockStats {
|
||||
val player = (Terrarum.ingame!! as TerrarumIngame).actorNowPlaying
|
||||
if (player == null) return
|
||||
|
||||
val renderWidth = FastMath.ceil(AppLoader.screenW.toFloat())
|
||||
val renderHeight = FastMath.ceil(AppLoader.screenH.toFloat())
|
||||
val renderWidth = FastMath.ceil(AppLoader.screenWf)
|
||||
val renderHeight = FastMath.ceil(AppLoader.screenHf)
|
||||
|
||||
val noZoomCameraX = Math.round(FastMath.clamp(
|
||||
player.hitbox.centeredX.toFloat() - renderWidth / 2, TSIZE.toFloat(), map.width * TSIZE - renderWidth - TSIZE.toFloat()))
|
||||
|
||||
Reference in New Issue
Block a user