heres a simple idea of my network:
Code: Select all
// client = c; server = s;
c: hello... can I play
s: yes, you are player number ###
s: add/remove player to lobby:
s: leave lobby... start game
loop
c: I'm standing here *continues physics sim*
s: wait... heres your new physics results:
c: *snaps to new pos and interpolates other players*
c: I'm dead
s: new score, go here to spawn in 10 sec etc...
s: game over... heres the score
c: thanks bi.
also, using newton how often do I update? I need deterministic physics for client side prediction.
thanks... JPulham