Package dev.kyzel.game.world.gen
Class LevelGenerator
java.lang.Object
dev.kyzel.game.world.gen.LevelGenerator
A class used to generate the level/world for the game.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic double
The seed value which would later be used to generate the map for the game. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
noiseGenerator
(double[][] worldTiles) Generates an improved noise map, which used the Improved Noise algorithm.static void
randomGenerator
(int[][] worldTiles) Generates a random noise map.static void
setSeedValue
(double assignedSeedValue) Set the seed value to the assigned value.
-
Field Details
-
seedValue
public static double seedValueThe seed value which would later be used to generate the map for the game.
-
-
Constructor Details
-
LevelGenerator
public LevelGenerator()
-
-
Method Details
-
randomGenerator
public static void randomGenerator(int[][] worldTiles) Generates a random noise map.- Parameters:
worldTiles
- the array of number, which contains the output
-
noiseGenerator
public static void noiseGenerator(double[][] worldTiles) Generates an improved noise map, which used the Improved Noise algorithm.- Parameters:
worldTiles
- the array of number, which contains the output
-
setSeedValue
public static void setSeedValue(double assignedSeedValue) Set the seed value to the assigned value.- Parameters:
assignedSeedValue
- the assigned seed value
-