I now use tiledMap for a game map, the game tiles are different elements of the four directions and seven colors, each color and direction if given Dounong a tile picture, it will have 150 tiles Atlas 44 * 44 pixels in FIG. This is not the memory consumption will be too?
Alternatively, tile does not consider the direction and color, plus a objectLayer, add attributes in objectLayer, the program reads the map file, parse traversal object properties objectLayer, and then rotate and color. But this is not to deal with a lot of it, consumption performance?
I do not know how to choose, who has experience in this area is not?
Reply:
150 tile are completely different yet? You can count on, if opengl es in the image aspect multiples of 2, if your figure is 24-bit color, then the total size is 150x64x64x24 / 8, probably about 1.8MB, I think it is acceptable
No comments:
Post a Comment