Howdy guys,
I was wondering if anyone can give me some tips about how to create a decent method for saving and loading the sate of my game. I thought about making all the classes in the game implement the Serializable interface and then output all of the objects to a file. However, some of my objects have properties such as their material which cannot be serialized. The properties I want to store are things like the position, velocity and orientation of all the objects in the game as well as a few game properties such as the players’ scores. Somehow I need to store all of these properties into a single object and also be able to restore all the properties when loading the game. What solutions to this problem are there?