Skip to content
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

Fix player color for different players #1867

Merged
merged 4 commits into from
Oct 15, 2022

Conversation

dartasen
Copy link
Member

Fix an issue where joining players would have the same color as you while their ping has the correct color.

This is achieved by early init of the body prototype before the first color swapping operation. The body prototype shouldn't be colored in the first place since color swapping operations is mapped on the original texture pixels (which are orange)

PS: Might be worth to investigate in a cache for SwapColorOperation since it's the exact same process everytime

Copy link
Collaborator

@tornac1234 tornac1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it with 4 local players and it worked fine
image

Copy link
Collaborator

@Coding-Hen Coding-Hen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only question is if we want to have the logging other than testing?

@dartasen dartasen added the Area: graphics Related to art assets and rending label Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: graphics Related to art assets and rending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants