Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tutorial 18 - Loading and Saving Complicated Tables to Global Data

edited September 2012 in Examples Posts: 563

There has been some good discussions recently on methods for saving tables and string in image data. I have taken a different approach, parsing the table into a string and then reconstituting it using loadstring(). To demonstrate this technique, I have updated the dGenerator Tower Defence level generator to use the File Manager class to save and load level data (in global data).

Here is a video of the code in action:

The full tutorial is available here:

The tutorial includes a dropbox link to download the code. If you have any issues with this there is an alternate code download location here:

Next up we will add the ability to add waves of creeps and finally towers.


Sign In or Register to comment.