RealBBoy
07-25-2001, 02:52 PM
Hi,
I would like to know if someone can explain 2 me or point me in the right direction, regarding multidimensional arrays.
We are currently doing a research for a strategy game.
Table in the game is 10x10 squares (each square 10x10px). Informations about the each square (owner, population, army, defence) are stored in md array, right?
Example:
field E 4,2 is Mike's land populated with 400 peps and has army of 240 niggaz and their def factor is 8.
so basicaly if a player put more troops there i need to make calculations and write them back to array, or something like that.
..hope that you understand me...or i am dazzing of again..:()
I would like to know if someone can explain 2 me or point me in the right direction, regarding multidimensional arrays.
We are currently doing a research for a strategy game.
Table in the game is 10x10 squares (each square 10x10px). Informations about the each square (owner, population, army, defence) are stored in md array, right?
Example:
field E 4,2 is Mike's land populated with 400 peps and has army of 240 niggaz and their def factor is 8.
so basicaly if a player put more troops there i need to make calculations and write them back to array, or something like that.
..hope that you understand me...or i am dazzing of again..:()