From: fredboy Date: Wed, 17 Apr 2024 09:20:45 +0000 (+0700) Subject: Remove seed from default world config X-Git-Tag: alpha0.5.0~4 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=b4a4e06637efee255990334d9daa7ea3f5e9ba19;p=cavedroid.git Remove seed from default world config --- diff --git a/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt b/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt index 251b901..ea34209 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt +++ b/core/src/ru/deadsoftware/cavedroid/game/model/world/generator/WorldGeneratorConfig.kt @@ -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, diff --git a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java b/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java index a908971..b616424 100644 --- a/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java +++ b/core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java @@ -52,7 +52,7 @@ public class GameWorld implements Disposable { if (isNewGame) { mWidth = DEFAULT_WIDTH; mHeight = DEFAULT_HEIGHT; - Pair maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed(TimeUtils.millis())).generate(); + Pair maps = new GameWorldGenerator(WorldGeneratorConfig.Companion.getDefaultWithSeed()).generate(); mForeMap = maps.getFirst(); mBackMap = maps.getSecond(); mMobsController.getPlayer().respawn(this);