P2P synchronization: can a player update fields of other players?
- by CherryQu
I know that synchronization is a huge topic, so I have minimized the problem to this example case.
Let's say, Alice and Bob are playing a P2P game, fighting against each other. If Alice hits Bob, how should I do the network component to make Bob's HP decrease?
I can think of two approaches:
Alice perform a Bob.HP--, then send Bob's reduced HP…