-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sync support to more properties of objects #4
Comments
This should not just be a "send all and done",I think the Sync should only sync variables if changes occurLike if a users moving constantly only Position and angle are more likely to change so no sense in also syncing opacity and scale etc |
That's already the case :) A full snapshot is only being sent to a client when it first connects, but afterwards only diffs are sent which only contain values that have changed. See: https://github.com/arthuro555/THNK/blob/master/code/server/ObjectDiffer.ts#L28-L83 |
amazing |
You forgor to add object flip horizontally and vertically!!! |
Object tint please ;) |
The Player Behaviors (not really) but the "Is Jumping" "Is Falling" and such, it doesn't need to sync the action because the position is already on sync, but the notion of the action taking place, that would make it easier to animate using the spritesheet animation. |
Quite true! It is already planned to add a special behavior that synchronizes the platformer/top down movement behavior, in a way that:
:) Track progress for this at #6 |
We need to ensure that all of the fields one may want to use are available to be synchronized.
Fields
State
variablePlease comment any other properties you wish to be synchronized
The text was updated successfully, but these errors were encountered: