Skip to content

sidneyriffic/Raise_the_terrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terrain generator

Compile using gcc -lm -lSDL2 -o terrain
Requires SDL2 library

Usage: terrain heightmap

Heightmap file is a set of integers separated by spaces and newlines. Every newline starts a new row, and spaces in a line generates a new column in that row.

Once open you can use the following keys:

  1. left arrow/right arrow: rotate around xy axis
  2. up arrow/down arrow: rotate around yz axis
  3. w/s: scale up and down the terrain map
  4. escape to exit

About

Terrain generator from a heightmap file using SDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages