-
-
Notifications
You must be signed in to change notification settings - Fork 544
Implement ice physics for BadGuy enemies #3365
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
Implement ice physics for BadGuy enemies #3365
Conversation
Add ice slipping mechanics similar to player physics: - Add ice state tracking (m_on_ice, m_ice_this_frame) - Detect ice tiles in collision_tile() - Apply reduced friction on ice surfaces - Reset ice state each frame with proper management Closes SuperTux#733
|
Hello. Thanks for your contribution. I just started the workflow builds. Could you upload a screencast of the changed behaviour? Otherwise I will try to create a screencast myself. |
Apply identical ice physics behavior to enemies as used by the player: - BadGuys now use same ice friction multiplier (0.1f) as Tux - WalkingBadguys apply ice acceleration reduction during direction changes - Remove artificial velocity threshold that prevented natural ice sliding - Enemies now exhibit realistic ice sliding and momentum like the player This ensures consistent ice physics behavior across all game entities, providing the expected slippery surface effects for enemy movement. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
Please use English comments in code. |
|
https://www.loom.com/share/07899024061f4c058c7da639092502a5?sid=28914707-242d-4bba-907a-3f39dacd062e |
|
How do i merge now ? |
|
I will wait for a second review and then merge. MacOS failures are unrelated to your PR. |
|
I tested it and it seems to work. Just... does this affect any other badguy except haywire? |
|
I don't think so. I tried with a couple of bad guys but only haywire was slipping! |
did not tried all bad guys |
Hypernoot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, fair enough
Add ice slipping mechanics similar to player physics:
Closes #733