Class LevelGenerator

java.lang.Object
dev.kyzel.game.world.gen.LevelGenerator

public class LevelGenerator extends Object
A class used to generate the level/world for the game.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static double
    The seed value which would later be used to generate the map for the game.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • seedValue

      public static double seedValue
      The 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