Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Terrain generation dialog #975

Open
SimplyLiz opened this issue Jun 5, 2022 · 1 comment
Open

Create Terrain generation dialog #975

SimplyLiz opened this issue Jun 5, 2022 · 1 comment
Assignees

Comments

@SimplyLiz
Copy link
Contributor

When the player clicks on "New Game" Display a dialog with settings for terrain.

Following settings are available in TerrainGenerator.cxx:

struct TerrainSettings
{
  int mapSize = 128;
  int seed = 0;         // If the seed is 0, a random seed will be generated by TerrainGenerator::generateTerrain()
  int seaLevel = 2;     // All tiles with elevation below this will be set as water.
  int treeDensity = 50; // 0% no trees, 100% All trees everywhere all the time.
  int mountainAmplitude =
      10;              // Both amplifies the mountain noise source, as well as biasing the mountain/plains blend. Expects 0-100.
  int waterAmount = 5; // Density of freshwater in addition to coastlines and rivers. Expects 0-100.
  int coasts =
      1; // 4 least significant bits are bitmasked, where 0 is a land border and 1 is a coastline. Remaining bits reserved for future use.
  int rivers = 1;              ///< Number of rivers to attempt generating.
  std::string biomes = "{}";   ///< JSON string of biomes to attempt using, plus any options associated with them.
  std::string advanced = "{}"; ///< JSON string of arbitrary advanced option data for future use or mods.
};

We need UI Elements for:

  • DropDown Map Size
  • Textfield Seed
  • Slider Water (0-100)
  • Slider Foliage density (0-100)
  • Slider Mountain height (0-100)
  • Slider for sea level
  • DropDown Biome
  • Checkbox Rivers

Buttons:

  • Generate
  • OK
@lizzyd710 lizzyd710 self-assigned this Jun 15, 2022
@lizzyd710
Copy link
Collaborator

I'll draw a quick sketch/mockup and either post to discord and/or add as a comment on this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants