partial worldgen with full worldgen near spawn point

This commit is contained in:
minjaesong
2024-07-11 17:29:54 +09:00
parent 24e43edafb
commit 7f5f11780c
4 changed files with 30 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ open class FancyWorldReadLoadScreen(screenToBeLoaded: IngameInstance, private va
class FancyWorldgenLoadScreen(screenToBeLoaded: IngameInstance, private val worldwidth: Int, private val worldheight: Int) : FancyWorldReadLoadScreen(screenToBeLoaded, worldwidth, worldheight, {}) {
private val chunks = (worldwidth / CHUNK_W) * 9
private val chunks = (worldwidth / CHUNK_W).div(2f).ceilToInt() * 7
override fun getProgress(): Double {
return progress.get().toDouble() / chunks * previewWidth