Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.63 KB

File metadata and controls

59 lines (49 loc) · 1.63 KB

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: