-
Notifications
You must be signed in to change notification settings - Fork 120
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
Axis values support for network diffs #342
Comments
Oh awesome, I'm really glad this worked out! I'm leaning towards "refactor to use traits and split apart axes and button more clearly" (#321) first: ultimately I think our data model is flawed in messy ways that come out here. Would be very happy to pair on that though if you're up for it. |
Discovered that problem B was mostly user error. |
Is this behavior documented properly? |
It kind of is, but you have to think about what it's saying and already understand what the values on SingleAxis mean.
Could probably be improved to help avoid it being a footgun. |
We used the network diffing functionality of this library for our game jam game: https://prawl.itch.io/stellar-squeezebox which overall turned out great and it was really helpful for getting something off the ground quick!
Unfortunately, gamepad support was really lacking when diffing actions with a couple major issues:
A. There is no support for axis data for ActionDiff
B.
If you use an axis as a button (e.g. turn left) you can't set a deadzone or it stops being recognized on the server. Example:
Was user error. See commentSingleAxis::negative_only(GamepadAxisType::LeftStickX, 0.1).with_deadzone(deadzone)
I'd like to contribute towards this, so if you have any thoughts about how you want this to work let me know. (I'll probably taking a few days to relax now that the jam is over, so might be a bit)
The text was updated successfully, but these errors were encountered: