some old changes I forgot to commit

This commit is contained in:
minjaesong
2023-02-28 04:37:32 +09:00
parent 6f4d9180dc
commit f0b1d7f1bd
5 changed files with 15 additions and 7 deletions

View File

@@ -126,7 +126,7 @@ class TitleScreen(batch: FlippingSpriteBatch) : IngameInstance(batch) {
init {
warning32bitJavaIcon.flip(false, false)
gameUpdateGovernor = LimitUpdateRate.also { it.reset() }
gameUpdateGovernor = ConsistentUpdateRate.also { it.reset() }
}
private fun loadThingsWhileIntroIsVisible() {
@@ -139,10 +139,12 @@ class TitleScreen(batch: FlippingSpriteBatch) : IngameInstance(batch) {
//ReadWorld.readWorldAndSetNewWorld(Terrarum.ingame!! as TerrarumIngame, reader)
val world = ReadSimpleWorld(reader, file)
demoWorld = world
demoWorld.worldTime.timeDelta = 0//60
printdbg(this, "Demo world loaded")
}
catch (e: IOException) {
demoWorld = GameWorld(LandUtil.CHUNK_W, LandUtil.CHUNK_H, 0L, 0L)
demoWorld.worldTime.timeDelta = 60
printdbg(this, "Demo world not found, using empty world")
}
@@ -178,8 +180,6 @@ class TitleScreen(batch: FlippingSpriteBatch) : IngameInstance(batch) {
cameraPlayer = CameraPlayer(demoWorld, cameraAI)
demoWorld.worldTime.timeDelta = 0//60
IngameRenderer.setRenderedWorld(demoWorld)