For my platformer tile-based game I want to be able to load the game map from an image file.
Consider the following 25x15 px .png (enlarged) representing some level:
Assume that each specified color represents different game object. The actual hex values are irrelevant.
Given some input image, my map loading routine should be able to:
- access the image's size in pixels
- read specific [i, j]-th pixel's hex value
Is there some general rule which image format should I use? .png, .bmp, .jpg or something else?