Skip to content

Building a Small Random World Generator in a Work Day: Challenge

Notifications You must be signed in to change notification settings

MXV3A/1Day-Project-WorldGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World Generator A single day project trying to build a very simple random world generator and a program to show the generated word. Playing around with different noise generation algorithms.
World Generator

Tools

  • Rendering is done using SDML & C++
  • Noise is created using FastNoiseLite
  • Tiles are self drawn Tileset Used

Features

  • Randomly generated world map
  • Arrow keys for moving, mouse wheel for zooming
  • Minimap in the top left with camera position

Experiments

  1. Pure random noise creates a very ugly map, but it's the simplest Random Noise Map
  2. Perlin noise (gradients on a grid with sin/cos interpolations is a lot better Perlin Noise Map
  3. Multiple layers of different noise (0.1 perlin, 0.05 perlin, random noise for variations) creates the best maps Layer Noise Map
  4. Rivers & Seas using perlin noise variants (absolute perlin noise for rivers, small perlin noise for seas) Rivers and Seas Map

Future Experiments

  • Collapse Wave Function for more variety
  • Bezier Curves for nicer Rivers or Roads
  • Create Towns or Castles
  • Clean Up Code (but this can always be done)

About

Building a Small Random World Generator in a Work Day: Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published