
Saving and loading a game state (Obj-C)
Page 1 of 15 Replies - 1174 Views - Last Post: 26 October 2013 - 01:13 AM
#1
Saving and loading a game state (Obj-C)
Posted 12 June 2013 - 08:35 PM
Hi, I'm making a world domination board game for ios. This is my first "bigger" game and I was wondering if anyone had any suggestions on how to save and load a game state (all my variables, sprites, etc...) I was thinking something like a snapshot of the whole game allocation byte for byte... is this possible? Or do I have to create a file with my own format and recreate the game (fill my arrays, assign my variable values, load my sprites, etc...) I'm sure there must be a good way to do this... I don't want to reinvent the wheel

Replies To: Saving and loading a game state (Obj-C)
#2
Re: Saving and loading a game state (Obj-C)
Posted 13 June 2013 - 08:25 AM
Have you looked at XML or JSON? Any C++ solution will do, it doesn't have to be Obj-C.
#3
Re: Saving and loading a game state (Obj-C)
Posted 13 June 2013 - 11:25 AM
#4
Re: Saving and loading a game state (Obj-C)
Posted 13 June 2013 - 11:27 AM
Check out TinyXML.
You can plug any C++ code directly into an Obj-C project of course.
You can plug any C++ code directly into an Obj-C project of course.
This post has been edited by ButchDean: 13 June 2013 - 11:28 AM
#5
#6
Re: Saving and loading a game state (Obj-C)
Posted 26 October 2013 - 01:13 AM
lifeinbinary, on 13 June 2013 - 11:25 AM, said:
for better json and xml viewer use this online tool
http://codebeautify.org/view/json
Page 1 of 1