mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 04:54:05 +09:00
Renamed AppLoader into App
This commit is contained in:
@@ -45,7 +45,7 @@ object FeaturesDrawer {
|
||||
* usually targeted for the environmental temperature (desert/winterland), hence the name.
|
||||
*/
|
||||
fun drawEnvOverlay(batch: SpriteBatch) {
|
||||
val onscreen_tiles_max = FastMath.ceil(AppLoader.screenSize.screenH * AppLoader.screenSize.screenW / FastMath.sqr(TILE_SIZEF)) * 2
|
||||
val onscreen_tiles_max = FastMath.ceil(App.scr.height * App.scr.width / FastMath.sqr(TILE_SIZEF)) * 2
|
||||
val onscreen_tiles_cap = onscreen_tiles_max / 4f
|
||||
val onscreen_cold_tiles = BlockStats.getCount(*TILES_COLD).toFloat()
|
||||
val onscreen_warm_tiles = BlockStats.getCount(*TILES_WARM).toFloat()
|
||||
@@ -59,8 +59,8 @@ object FeaturesDrawer {
|
||||
|
||||
batch.color = ColourTemp(colTemp)
|
||||
batch.fillRect(0f, 0f,
|
||||
AppLoader.screenSize.screenW * if (zoom < 1) 1f / zoom else zoom,
|
||||
AppLoader.screenSize.screenH * if (zoom < 1) 1f / zoom else zoom
|
||||
App.scr.width * if (zoom < 1) 1f / zoom else zoom,
|
||||
App.scr.height * if (zoom < 1) 1f / zoom else zoom
|
||||
)
|
||||
|
||||
blendNormal(batch)
|
||||
|
||||
Reference in New Issue
Block a user