file: HeightMapGenerator.aus

class: HeightMapGenerator

[25:7] extends: FxObj

Wraps FXGL's HeightMapGenerator (com.almasb.fxgl.procedural.HeightMapGenerator), a CellGenerator that fills a Grid with Perlin-noise elevation values. The generator is bound to a target grid size (width, height) and a noise frequency. Each cell carries (x, y, height); the noise is sampled at (frequency * x / width, frequency * y / height) using FXGLMath.noise2D so the same width / height + frequency always produces the same map. The underlying Java class implements the CellGenerator interface, but Aussom's CellGenerator wrapper is a static helper (not an inheritable class), so this wrapper extends FxObj directly.

Methods