Generating and saving data

I’ve gotten the basic functionality of the chunk creator implemented, now I need a way to save a chunk to disk so that in the game I can read it back.

I also need a way to move the camera so I can see the whole chunk, but that’s fairly trivial.

The way that I intend to store the chunks for the game is to write them out to an XML flat file, and then read them all at once on game load. I figure I can make each chunk I create by hand work as four different chunks by rotating them. Because of that, I plan to make ~250 chunks by hand by the end of March. To start, I will probably only make five or ten.

As I build this data set, I plan to load it all into memory each time I open the chunk creator to verify that it doesn’t have an adverse impact on performance.

 

piebie

 

Leave a Reply

Your email address will not be published. Required fields are marked *