SammygoodTunes / Tile-Game

A tile-based multiplayer game with procedural terrain generation (using the Perlin Noise algorithm)
MIT License
1 stars 0 forks source link

Add JSON world generation presets #2

Closed SammygoodTunes closed 3 weeks ago

SammygoodTunes commented 2 months ago

The JSON files could be displayed as world generation presets/options in a separate UI. An example of the contents of these JSON files could be:

{
    "name": "preset_name",
    "layers": [
        {
            "tile": "COBBLESTONE",
            "min_height": 1200,
            "max_height": 1500
        },
        {
            "tile": "WATER",
            "min_height": 1000,
            "max_height": 1200
        },
    ]
}

Specifying height values could be represented as percentages rather than an arbitrary numerical value. All unspecified heights will be defaulted to AIR.