I am thinking of converting a pen-and-paper game that a friend of mine made to the calculator. It is a turn-based strategy game, and probably could be put on the calculator - except I need to see if anyone has any suggestions on a better way of implementing this
I am using Xlib - terrain in background and then the troops and buildings put on that.
So so far I think it will require ATLEAST 3 matrices
[A] - terrain
[B] - player 1 units and buildings
[C] - player 2 units and buildings
Now I think that to hold the HP for each of these units I need to use [D] and [E]
If it was not for the fact that I am using Xlib for the graphics, I would probably use lists and have each number in [B] and [C] reference a position in the list -
LPL1UN - the type of unit pl1
LPL1HP - hp of unit pl1
and ditto for player 2 (except using pl2 of course =P)
My question is does anyone have another solution that I could use while still allowing the use of Xlib.
I am using Xlib - terrain in background and then the troops and buildings put on that.
So so far I think it will require ATLEAST 3 matrices
[A] - terrain
[B] - player 1 units and buildings
[C] - player 2 units and buildings
Now I think that to hold the HP for each of these units I need to use [D] and [E]
If it was not for the fact that I am using Xlib for the graphics, I would probably use lists and have each number in [B] and [C] reference a position in the list -
LPL1UN - the type of unit pl1
LPL1HP - hp of unit pl1
and ditto for player 2 (except using pl2 of course =P)
My question is does anyone have another solution that I could use while still allowing the use of Xlib.