On Mon, Feb 03, 2014 at 05:15:19PM -0500, Brandon Fergerson wrote:

There may be better ways to do it and I wouldn't be surprised if there
were good libraries to do this kind of things (I don't know any but I
haven't searched either). You don't need a full file system, something
relatively simple should be enough.

I suppose my problem is that I don't really understand what it is I'm looking for. I knew I wanted the maps to be compressed and I knew I wanted them to support random access. What else should I be looking for?

I recommend you write the simpliest and dumbest solution you can to get it working. Only after that, and with the rest of your game componments in place, will you start to understand the problem and maybe wish to revisit the backing store for your map data works.

mmap()ing a huge file will let you write simple seperate debug tools, you could even use a hex-editor to tell if things are correct or not.

Good luck and I hope you have fun!

--
Alexander Clouter
.sigmonster says: Genius is pain.
                                -- John Lennon

Reply via email to