Research Article
Dead Reckoning Using Play Patterns in a Simple 2D Multiplayer Online Game
Algorithm 4
Check player direction change.
(1) initialize count to one | (2) initialize directionChange to | (3) while count is less than do | (4) if the angle between the velocity at t = last received and | the velocity at t = last received minus count's is above | a threshold angle . then | (5) set directionChange to . | (6) end if | (7) increment count by . | (8) end while |
|