Skip to content

Turns any image into a map for the game "They Are Billions"

License

Notifications You must be signed in to change notification settings

GustavHenning/pix2billions

Repository files navigation

pix2billions

Turns any image into a map for the game "They Are Billions"

What is this?

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.

map-gaben gaben

map-world world

map-world-flipped world-flipped

How do I use it?

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.

Example

  1. make sure you got java installed
  2. open a terminal and navigate to your folder where the pix2billions.jar is located
  3. enter "java -jar pix2billions.jar myimage.png" (given that the image is in the same directory)
  4. enjoy your map-myimage.png file

FAQ

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

What's next?

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!

About

Turns any image into a map for the game "They Are Billions"

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages