I’m hoping someone can point me in the right direction.
In the project I’m working/learning on, I have a game map made up of a 10x10 grid. Each square has a couple of elements that need to effect its graphical representation.
For instance, the background color of every square will be determined by it’s ownership. Either, white, no one owns it, or blue, red, green and yellow depending on which player owns it.
In addition, each squares may have certain structures built on them by the controlling player.
Further, any given square may have a defensive value. A value of zero will have no graphical element, but a value of 1-3 will put up a little black shield in the upper left corner with the number 1-3 inside it.
Each square will be selectable, so that the player may upgrade the square, and the entire map is scrollable because it’s larger then the display area.
I have so far been working with a tilemap, and that may still prove to be the best solution, but it’s getting to be a biggish file. 15 tile types for each tile color (5) is 75 tiles, but that doesn’t address the defensive value of the square, so if I had to provide a tile with the black shield and without the black shield, that bumps me up to 150 tiles in my tile map, and that doesn’t address the value displayed on the black shield, which I can probably do with text, but it will have to scroll in sync with the map.
I’m wondering if anyone can tell me the best way to structure this.
Is it possible to do a color swap for instance, so that I wouldn’t need an entire set of tiles for every player color, but just one set that is adjusted on the fly based on the tile ownership value?
Is it possible to have a display object with multiple layers of graphics, one layer for the color, one for the structure, one for defensive value, and maybe one for player unit, that I’m leaving out of this question for now?
A large game map might be as big as 400 squares, also, if that effects any suggestions people may have.
Any input or direction towards a specific tutorial that may give me insight on my question will be most appreciated.
[import]uid: 170004 topic_id: 34899 reply_id: 334899[/import]

