Jump to content
  • Advertisement
Sign in to follow this  

Dynamic Multidemensional Arrays in C++

This topic is 4814 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

Hi, I'm working on a tiling engine. I have two multi dimensional arrays which are global. One is called back the other is called level. Level contains enough elements to corrospond to the total level size. Back is a smaller array which is equal to the number of tiles that fit on screen + 2. The size of the array is currently hard coded, but now I want to be able to read it in from a file, so that I can load a level with 32tilesx32 tiles on one occasion and then on another occasion load 10x10 without having to re-compile. Is it possilbe to do this with ordinary arrays or does it need to be dynamic?? If so I was looking for a dynamic multidemsional array in the STD library, but have yet to find anything. Can anyone point me in the right direction?? Cheers

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!