Skip to content

alpardayalman/so_long_map_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map generator for project so_long.

This map generator is for ecole 42 students whom chosen the project so long. It randomly generates Maps according and within the limits of project's requirements. Depending on your custom arguments you can create up to 5 exits and up to a 100 collectibles. If you don't fill the optional arguments the program will create 1 exit and a formulated amount of collectibles.

Installation

Install the so_long_map_generator by cloning.

  git clone git@github.com:alpardayalman/so_long_map_generator.git
  make

Example of use:

  ./map_gen arda 20 10 12 4
  ./map_gen (name of the file generated without .ber) (width) (height) [(optional) (collectibles) (exits)]

Screenshots

After make: Alt text

  ./map_gen arda 20 10

The program will create a new directory named maps and it will fill with new .ber files. The program will always show the new name of your map and the names of other maps that you have created previously. Alt text

This is an example of a randomly generated map with the arguments (arda 20 10).

Alt text

When you make fclean, once generated map files in the maps folder will be erased.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published