mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-08-13 16:53:53 -04:00
Update MediaWiki page '317 Begin player updating'
This commit is contained in:
parent
595f5a14d3
commit
37e205958e
@ -117,13 +117,25 @@ Check which type of movement took place. (PRIMARY) If no movement did take place
|
||||
! Description
|
||||
|-
|
||||
| putBits(11, otherPlayer.getIndex());
|
||||
| N/A
|
||||
| Write the player index
|
||||
|-
|
||||
| int yPos = other player y - player y;
|
||||
| N/A
|
||||
| Calculate the y offsets
|
||||
|-
|
||||
| int xPos = other player x - player x;
|
||||
| N/A
|
||||
| Calculate the x offsets
|
||||
|-
|
||||
| putBits(5, xPos);
|
||||
| Write the x offsets
|
||||
|-
|
||||
| putBits(5, yPos);
|
||||
| Write the y offsets
|
||||
|-
|
||||
| putBits(1, 1);
|
||||
| Indicates update is required (this is always true!)
|
||||
|-
|
||||
| putBits(1, 1);
|
||||
| Indicates we should discard client-side walk queues
|
||||
|-
|
||||
|}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user