Sign in to follow this  

would I be storing my map data right if I....

This topic is 3936 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm currently knee deep in the programming of a 2D tile map engine. I'm trying to figure out what would be the most beneficial and practical way of storing some of the data. So far my map is rather simple, theres a couple layers that are purely graphical, and only contain id's to what graphic they are and the opaqueness... etc. But the part I can't seem to decide on is how my objects should be drawn by the map. I wanted to keep the objects seperate from the map, so they have they're own manager and are all stored into a vector/list. But how should the map know where to draw them. I was thinking something like, the one layer that is the object layer would just be a vector of pointers to objects, that the object manager would have access to. Each pass the layer would be cleared and the object manager would pass the various pointers to they're corresponding position. then the map would just call the draw function on the pointers. is this (if you understand me) the way i should go about this?

Share this post


Link to post
Share on other sites

This topic is 3936 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this