Ok
I think heightmaps will work ok for the moment.
Though a few things kinda bother me.
How do I do water? Use a matrix for that?
Or....
Then, how do I place objects in the world.
See, I would almost think a Matrix would be better for this stuff, but then again who knows.
It's basically, do what works for you, but then again, what works good for me???
Let me also explain another problem that I am going to run into.
[6][2][7]
[3][1][5]
[8][4][9]
This is a 3x3 representation showing what I want loaded for a map while the player is playing. 1 is the spot in which he is standing. The rest are just areas that he can travel to, but they are also loaded into memory.
When he takes a move say to square 3 which is left, squares 7 5 and 9 are deleted from memory and a new set of squares 10 11 and 12 are loaded to the right. So it now looks like this. The player is standing on square 3 now.
[10][6][2]
[11][3][1]
[12][8][4]
What I am refering to is loading different parts of a map at different times. So when I moved from Square 1 to Square 3 a new part of the map was loaded and Squares 7 5 9 which are no longer needed to be loaded are removed from memory.
If any of you are having a problem figuring out what I am talking about, let me know and I will actully draw a diagram in Photoshop to show what I am talking about.
For those that understand, what type of data structure would this work well with?
Would a tree linked list, doubled linked list or stack work for what I am trying to do. A tree is what I am guessing, but how is that tree structured?
Any clue as what I could do?
Thanks.
SoulMan
I am my own and own my am I