Quote: "Usually characters are 1 byte in size, making for much smaller memory required so I could go with a string array instead."
Characters are 2 bytes.
Using integers, you can specify what is in each cell. For example:
1 = grass
2 = tree
4 = rock
8 = gold
Therefore a grassy cell with a tree and gold has a value of:
1 + 2 + 8 = 11
A little bit of binary mathematics gets the contents of each cell.With an integer you can have up to 32 different elements in a cell using this method.
800Kb is tiny, space is not an issue for you.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt