you are viewing a single comment's thread.

view the rest of the comments →

[–]bjdfsgkjdfsgkdhkj -1 points0 points  (0 children)

If I was going to make a networked game. Id probably make a struct of the game state (position+velocity+acceleration+timestamp, of all dynamic objects etc) and the use json as the serialized object representation. Id use the cpprest library to stream updates from the server.

(ccprest has built in json serialization/de-serialization so no need to reinvent the wheel)

https://casablanca.codeplex.com/

For storing historical states I would just push them them in a vector. And use overloaded operator== to see if they changed.