mirror of
https://github.com/moparisthebest/rswiki-book
synced 2024-11-24 18:12:17 -05:00
Update MediaWiki page '317 Begin player updating'
This commit is contained in:
parent
d6fe53d721
commit
cc9007eb64
@ -66,6 +66,7 @@ I need time to finish trying to explain this packet to my best ability. If you h
|
|||||||
'''Step 8''': We write the packet.
|
'''Step 8''': We write the packet.
|
||||||
|
|
||||||
=== Player Movement ===
|
=== Player Movement ===
|
||||||
|
'''This is not for the 'this' player movement. That method will come later!'''
|
||||||
Check which type of movement took place. (PRIMARY) If no movement did take place, check if an update is required. If an update is required put bits (1, 1)//Update happened and (2, 0)//No movement. If no update is required put bits (1, 0)//Nothing changed. (SECONDARY) The player moved but didn't run? Put bits (1, 1)//Update required (2, 1)//moved one tile (3, (PRIMARY))//Write the primary sprite and (1, isUpdateRequired() ? 1 : 0). We then put an else statement for the (SECONDARY) check. Within that, we put bits (1, 1)//Update happened (2, 2)//Two tiles (3, (PRIMARY))// Walking direction (3, (SECONDARY))//Run direction and (1, isUpdateRequired() ? 1 : 0)//Block update happened.
|
Check which type of movement took place. (PRIMARY) If no movement did take place, check if an update is required. If an update is required put bits (1, 1)//Update happened and (2, 0)//No movement. If no update is required put bits (1, 0)//Nothing changed. (SECONDARY) The player moved but didn't run? Put bits (1, 1)//Update required (2, 1)//moved one tile (3, (PRIMARY))//Write the primary sprite and (1, isUpdateRequired() ? 1 : 0). We then put an else statement for the (SECONDARY) check. Within that, we put bits (1, 1)//Update happened (2, 2)//Two tiles (3, (PRIMARY))// Walking direction (3, (SECONDARY))//Run direction and (1, isUpdateRequired() ? 1 : 0)//Block update happened.
|
||||||
|
|
||||||
{| border=2
|
{| border=2
|
||||||
|
Loading…
Reference in New Issue
Block a user