Log In  

Cart #voroterrain-4 | 2021-04-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Another season, another terrain generator.

Below is an old version of the pipeline that was used for the generator. This has since been reworked a bit to add features.

  • Generate every possible syllable through structure "CV(n)" (Consonant, vowel, and an optional "n")
  • Pregenerate name with 2-5 syllables

  • Create n points and n/16 biome centres
  • Generate basic (polygonal) shape using voronoi
  • Apply "life" n/6.4 generations

  • Add name on screen

Tada! You've got yourself a basic map. You can also disable the "terrain" boolean to make it just generate a voronoi diagram, but that's boring and I don't need it so I leave "terrain" as True in the above cart. Feel free to play around though.

Here are some examples of pretty islands:

Have fun generating endless islands with silly names. Later!

P.S. v1.2.1 has introduced "Manual Mode". At any time in the generation process, you can press Z. When generation is over, you should see that the name of the landmass and the names of the nations don't show up. This is so that you can hide either. If you want the name of the landmass to show up, press Z during Manual Mode. Do the same for nations but with X instead of Z. This should let you have more versatility with my little toy.

Notes for modders:

  • The "quality" variable is what defines A) The amount of points for veronoi rendering B) The amount of biome centres and C) The amount of generations to run my little life thing(n, n/16 and n/6.4 respectively)
  • The syllable generator generates every single syllable in the given CV(n) structure. The code for this is very simple:
for c in all(consonants) do
    for v in all(vowels) do
  • The voronoi calculations can certainly be improved; I just don't know how. I'm not a pro at optimization or math.
  • The "biomes" are just sets of colours. There is no limit to the amount of colours each biome can have(I wanted as free of an environment as possible)
  • Do not uncomment "music()". It's for your own good.
  • The "colex" table simply excludes colours from being switched to their secondary palette alternatives. This is simply to make it look nice.

Have fun doing deranged things to the island generator. I hope that was a comprehensive list of notes.

Possible ideas:

You look for concepts, but find none. However, you get the feeling some will appear soon.

Version history:

  • V1.0.X: Initial Version
  • v1.1.X: Biome Update
  • v1.2.X: Nation Update
P#90637 2021-04-15 17:18 ( Edited 2021-04-17 10:10)

interesting - code looks relatively compact, a good quality attribute for pico!

P#90670 2021-04-16 05:28

Released 1.2.0. Now, we have nations! They can be disabled with the "nations" bool.

P#90700 2021-04-16 18:01

Awesome :)

P#90726 2021-04-17 02:30

Neat. The little mix up at the end makes everything look mint. Before that it seems a functional but plain.

P#90729 2021-04-17 03:31

Released 1.2.1. This update introduces Manual Mode, which you can enable during the generation process using Z. More info in the post!

P#90733 2021-04-17 10:04

Just realised that the three pictures in the post used to demonstrate examples tile together when stacked. Neat!

P#91384 2021-05-02 09:27

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2021-05-06 12:45:40 | 0.019s | Q:21