summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec04775)
raw | patch | inline | side by side (parent: ec04775)
author | fredboy <fredboy@protonmail.com> | |
Wed, 17 Apr 2024 09:20:45 +0000 (16:20 +0700) | ||
committer | fredboy <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 | patch | blob | history | |
core/src/ru/deadsoftware/cavedroid/game/world/GameWorld.java | patch | blob | history |
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 251b9019611c3696503cd8ee5107541226139afe..ea34209617fc068790351dfa885339d4fdd372fe 100644 (file)
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 a908971baef7191e0f105a1dd7589978de3816a3..b616424c313634ddb7e92fabf594969394cff0b5 100644 (file)
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);