Skip to content

Using C++ and SDL2 to do procedural generation in a gamelike way

Notifications You must be signed in to change notification settings

santos-lucasm/world-gen

Repository files navigation

cmake build status codeql build status

Ideas and objetives

  • Use perlin noise to generate terrain types. (WIP)
  • Navigate using mouse (zoom in, zoom out and drag). Enabling bigger world generation.
  • Menu to set generation parameters (seed amount and location, terrain perlin noise threshold)
  • Generate world using other distributions and use AI to approximate then to perlin noise pattern

Dependencies

Tested with WSL2 v5.10.16.3 using Linux Ubuntu 20.04 LTS

libsdl2-2.0-0 libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-ttf-dev

Help cmake to find SDL libraries

Copy sdl2_image-config.cmake to /usr/lib/x86_64-linux-gnu/cmake/sdl2_image/

Copy sdl2_ttf-config.cmake to /usr/lib/x86_64-linux-gnu/cmake/sdl2_ttf/

Special thanks

About

Using C++ and SDL2 to do procedural generation in a gamelike way

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published