Skip to content

cemasma/procedural-map-generation

Repository files navigation

procedural-map-generation

This project aims to generate randomized dungeon like maps procedurally for use in games.

Build and Run

  1. Clone the project.
git clone https://github.com/cemasma/procedural-map-generation
  1. Install SDL2 https://wiki.libsdl.org/SDL2/Installation

  2. Build the project.

mkdir build && cd build && cmake .. && make
  1. Run the executable.
./procedural-map-generation 20 20

The first argument is required for the row count and the second one is for column.

Examples

./procedural-map-generation 20 20

random 20x20 map

./procedural-map-generation 10 10

random 10x10 map

./procedural-map-generation 10 20

random 10x20 map