hello everyone.
i have been reading these forums for a while on game development and would like to ask you all a question ;D
I would like to try something new, but have not found any information on the topic for java. this is what i want :-
- create a screen of tiles (easy)
- give each tile a name that the java program can identify (cant do)
- apply attributes to the tiles
the intended outcome will be related to resources, that is each tile will have a different number of resources. using co-ordinates i cant figure out how to do this (i can make tiles but i cant give them a name). i could use panels or buttons but i dont want outline visable.
can anyone give suggestions for this method?
an example of this method is as follows.
object name food value wood value iron value
Tile1 5 0 0
Tile2 5 0 0
Tile3 0 5 0
Tile4 0 0 5
in the above example it is greatly simplified and consists of only 4 tiles. i believe that giving a tile an identifier will allow me to use algorithms to randomly generate different attributes for the tiles.
Refering back to using buttons or panels - i can give these two objects attributes, because they have an identifier eg jpanel1 jpanel2 etc. i have not been able to get rid of outlines or apply art to them tho.
thank you in advance for any help/articles/webpages that are relavent.