1 Week of Adding a Random Map Generator to my Giant Crab Game

Apr 12, 2025 4:35 PM

Day 1: Set up a basic system that placed buildings and trees completely at random and generated rolling hills on the terrain based on perlin noise.

Day 2: Set it up to assign varying textures to the terrain based on height & slope. Set it up so the buildings cluster together in "cities" using a function similar to the one I used to generate the terrain slopes.

Day 3: Added lakes. Didn't quite get the smoothness right around the edges yet.

Day 4: Added randomly placed enemies.

Day 5: Added rivers, figured out how to get the terrain properly smoothed around the edges of the water features.

Day 6: Added an algorithm that makes the edges of rivers and lakes bumpier for a more "natural" look.

Day 7: Added a better water effect including foam & wakes. Added ship enemies.

crab

indiedev

gamedev

gaming

Wow, the progress in one week is pretty amazing! is it a tiling system or like WFC?

3 months ago | Likes 2 Dislikes 0

Some of the features are generated using perlin noise, textures get assigned based on a mixture of height and slope and then things like rivers and lakes get drawn around randomly selected points.

3 months ago | Likes 1 Dislikes 0