diff --git a/src/net/torvald/terrarum/modulebasegame/WorldgenLoadScreen.kt b/src/net/torvald/terrarum/modulebasegame/WorldgenLoadScreen.kt index 8a36f2663..54b5d7105 100644 --- a/src/net/torvald/terrarum/modulebasegame/WorldgenLoadScreen.kt +++ b/src/net/torvald/terrarum/modulebasegame/WorldgenLoadScreen.kt @@ -73,15 +73,16 @@ class WorldgenLoadScreen(screenToBeLoaded: IngameInstance, private val worldwidt AppLoader.batch.inUse { it.color = Color.WHITE + val previewY = (AppLoader.screenH - previewHeight.times(1.5f)).div(2f).round() it.draw(previewTexture, (AppLoader.screenW - previewWidth).div(2f).round(), - (AppLoader.screenH - previewHeight.times(1.5f)).div(2f).round() + previewY ) val text = messages.getHeadElem() ?: "" AppLoader.fontGame.draw(it, text, (AppLoader.screenW - AppLoader.fontGame.getWidth(text)).div(2f).round(), - (AppLoader.screenH + previewHeight.times(1.5f)).div(2f).round() - AppLoader.fontGame.lineHeight + previewY + previewHeight + 98 - AppLoader.fontGame.lineHeight ) } diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UIProxyNewRandomGame.kt b/src/net/torvald/terrarum/modulebasegame/ui/UIProxyNewRandomGame.kt index 49118bd0f..d269a61c7 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UIProxyNewRandomGame.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UIProxyNewRandomGame.kt @@ -38,9 +38,13 @@ class UIProxyNewRandomGame : UICanvas() { val ingame = TerrarumIngame(AppLoader.batch) - val worldParam = TerrarumIngame.NewWorldParameters(2400, 800, 0x51621DL) - //val worldParam = TerrarumIngame.NewWorldParameters(2400, 800, HQRNG().nextLong()) - //val worldParam = TerrarumIngame.NewWorldParameters(8192, 2048, 0x51621DL) + val worldParam = TerrarumIngame.NewWorldParameters(2400, 1280, 0x51621DL) + //val worldParam = TerrarumIngame.NewWorldParameters(2400, 1280, HQRNG().nextLong()) + + //val worldParam = TerrarumIngame.NewWorldParameters(6000, 1800, 0x51621DL) + //val worldParam = TerrarumIngame.NewWorldParameters(9000, 2250, 0x51621DL) + //val worldParam = TerrarumIngame.NewWorldParameters(13500, 3000, 0x51621DL) + //val worldParam = TerrarumIngame.NewWorldParameters(22500, 4500, 0x51621DL) ingame.gameLoadInfoPayload = worldParam ingame.gameLoadMode = TerrarumIngame.GameLoadMode.CREATE_NEW