Skip to content

Script to Create Properly Formatted '.fdf' Maps From a Given Image

License

Notifications You must be signed in to change notification settings

ArthurSobreira/map_generator_fdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate Map From Image

  • First of all, make sure you clone the repository with the following command:
$> git clone git@github.com:ArthurSobreira/map_generator.git
  • Then, you need to install the Pillow and Numpy packages, with the following commands:
$> pip install Pillow
$> pip install numpy
  • Now, to create properly formatted maps that can be read by FdF, simply have access to an image (PNG or JPG) and run the script map_generator.py with the following command:
$> python3 map_generator.py

Enter the image path: <image-name>
Enter the name that the image will be saved: <map-name>.fdf
  • Once the map is generated, to render it just run your binary with it, this way it is possible to generate some really cool maps, like these:




About

Script to Create Properly Formatted '.fdf' Maps From a Given Image

Topics

Resources

License

Stars

Watchers

Forks

Languages