C# (CSharp) ByChance.Levels2D Namespace

Classes

Name Description
Anchor2D Placeholder for game elements in 2D levels that can be filled after the level generation process.
Chunk2D

Main building block that makes up a 2D level, providing extents, position and rotation.

Chunks are created based on pre-defined chunk templates and define the positions of all contexts and anchors associated with the chunk, as well as attributes that are required for the level generation process such as the probability of a chunk being picked to be added next.

ChunkTemplate2D Template that is used for creating similar chunks, which in turn make up a 2D level. Chunk templates define the chunk extents, the positions of all contexts and anchors of chunks, as well as attributes that are required for the level generation process such as the probability of a chunk being picked to be added next.
Context2D Describes a position a chunk can be aligned at to another one in a 2D level.
LevelGenerator2D Generates a 3D level based on a given chunk library.