new worldgen test wip

This commit is contained in:
minjaesong
2024-09-06 23:59:46 +09:00
parent 1af82e4d5c
commit a9e6aab94c
3 changed files with 36 additions and 33 deletions

View File

@@ -169,9 +169,9 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
(this.hitbox.endX >= WorldCamera.x && this.hitbox.startX <= WorldCamera.xEnd))
val SIZE_SMALL = Point2i(CHUNK_W*66, CHUNK_H*60)
val SIZE_NORMAL = Point2i(CHUNK_W*100, CHUNK_H*64)
val SIZE_LARGE = Point2i(CHUNK_W*150, CHUNK_H*66)
val SIZE_HUGE = Point2i(CHUNK_W*250, CHUNK_H*70)
val SIZE_NORMAL = Point2i(CHUNK_W*100, CHUNK_H*60)
val SIZE_LARGE = Point2i(CHUNK_W*150, CHUNK_H*60)
val SIZE_HUGE = Point2i(CHUNK_W*250, CHUNK_H*60)
val NEW_WORLD_SIZE = arrayOf(SIZE_SMALL, SIZE_NORMAL, SIZE_LARGE, SIZE_HUGE)
val WORLDPORTAL_NEW_WORLD_SIZE = arrayOf(SIZE_SMALL, SIZE_NORMAL, SIZE_LARGE, SIZE_HUGE)

View File

@@ -259,7 +259,7 @@ interface TerragenParams {
}
data class TerragenParamsAlpha1(
override val terragenTiers: List<Double> = listOf(.0, .5, 1.0, 2.5),
override val terragenTiers: List<Double> = listOf(.0, .5, 1.0, 2.5, 11.0),
override val featureSize: Double = 333.0,
override val lowlandScaleOffset: Double = -0.65, // linearly alters the height
@@ -277,12 +277,10 @@ data class TerragenParamsAlpha1(
override val caveBlockageSelectThre: Double = 1.40, // adjust cave closing-up strength. Lower = more closing
override val rockBandCutoffFreq: Double = 4.0,
) : TerragenParams
data class TerragenParamsAlpha2(
override val terragenTiers: List<Double> = listOf(.0, .5, 1.5, 3.75),
override val terragenTiers: List<Double> = listOf(.0, .5, 1.5, 3.75, 11.0),
override val featureSize: Double = 333.0,
override val lowlandScaleOffset: Double = -0.65, // linearly alters the height