Turns any image into a map for the game "They Are Billions"
A reddit user named ash47 created a mod kit for the game "They are Billions". He then showed that he could make maps from image files given a specific format. I extended upon his idea by creating a program that generates a map given any image.
Please note: This project must not be used for illegal purposes, or for getting a highscore on any leaderboards that are present in the game, it is strictly for educational purposes and for people to experiment with.
The jar file in this repository (pix2billions.jar in the root directory) takes the paths of images and outputs the map equivalents in the same directory. Naming convention for the output of image.png is map-image.png
Make sure you dont forget to install java and any other dependencies to run jar files first.
- make sure you got java installed
- open a terminal and navigate to your folder where the pix2billions.jar is located
- enter "java -jar pix2billions.jar myimage.png" (given that the image is in the same directory)
- enjoy your map-myimage.png file
Q: Is there an optimal resolution for input images?
A: Yes, it's 150x200 px
Q: Why the tilted map?
A: No idea, see this thread
Feel free to write own distance function to alter what colors correspond to what type of land by forking this project or implementing it in another language! gg!