I am working on a game in pygamePygame/pythonPython, and I am wondering who has the know how to show meI'd like to turn an image into a map.
The idea is simple. The: Pixels in the image isare colored by tile type. When the program loads the image, I want the color (examplee.g. #ff13ae) #ff13ae to be matched to a certain grass tile, and the color (examplee.g. #ff13bd) #ff13bd to a different tile. Now,
I know that I may very well have to convert from hexcodes to rgbRGB, but that is trivial. I just want to know the way I wouldto go about thisloading an image file, mainly because all my other games don't do anything of this sort.