finally decided the world size of small/normal/large/huge

This commit is contained in:
minjaesong
2021-03-01 14:56:53 +09:00
parent 7900309f30
commit fa4b5df19c
2 changed files with 10 additions and 5 deletions

View File

@@ -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
)
}

View File

@@ -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