Wednesday, January 16, 2013

Ok, that worked

Yay! Converting the game data to XML and saving it worked Was able to successfully load in a save file, grab all of the game data and then create a new game based off that data! Now its step by step. Need to bring in the current states of all player tiles as well, and log the analytic data as well so that the post game report displays correctly. As of this moment i am wary that I will get the replay function to work...

I have to store the game history every turn... which means my save file would get pretty big pretty quickly and the last thing i want is to bloat the size of the game with a save file. However, flash has the ability to convert XML files down into an array of bytes, drastically reducing its size.

But, by saving multiplayer data on the local machine load times will be drastically shortened and the risk of data loss due to intermittent internet is reduced.

No comments:

Post a Comment