mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
finally decided the world size of small/normal/large/huge
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user