DEADSOFTWARE

Remove seed from default world config
authorfredboy <fredboy@protonmail.com>
Wed, 17 Apr 2024 09:20:45 +0000 (16:20 +0700)
committerfredboy <fredboy@protonmail.com>
Wed, 17 Apr 2024 09:20:45 +0000 (16:20 +0700)
core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt
core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java

index 251b9019611c3696503cd8ee5107541226139afe..ea34209617fc068790351dfa885339d4fdd372fe 100644 (file)
@@ -19,7 +19,7 @@ data class WorldGeneratorConfig(
         private const val DEFAULT_HEIGHT = 256
         private const val DEFAULT_MIN_BIOME_SIZE = 64
 
-        fun getDefaultWithSeed(seed: Long): WorldGeneratorConfig {
+        fun getDefaultWithSeed(): WorldGeneratorConfig {
             return WorldGeneratorConfig(
                 width = DEFAULT_WIDTH,
                 height = DEFAULT_HEIGHT,
index a908971baef7191e0f105a1dd7589978de3816a3..b616424c313634ddb7e92fabf594969394cff0b5 100644 (file)
@@ -52,7 +52,7 @@ public class GameWorld implements Disposable {
         if (isNewGame) {
             mWidth = DEFAULT_WIDTH;
             mHeight = DEFAULT_HEIGHT;
-            Pair<int[][], int[][]> maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed(TimeUtils.millis())).generate();
+            Pair<int[][], int[][]> maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed()).generate();
             mForeMap = maps.getFirst();
             mBackMap = maps.getSecond();
             mMobsController.getPlayer().respawn(this);