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

40 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 command:
$> pip install numpy Pillow
  • Now, to create properly formatted maps that can be read by FdF , simply have access to an image and run the script map_generator.py with the following command: (in theory the script accepts both PNG and JPG, but sometimes JPG works better than PNG, I'm not sure why)
$> python3 map_generator.py

Enter the image path: <image-name>
  • Once the map has been generated, to render it you just need to run your fdf binary with it, this way you can 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