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

feat: add slippery tile. #673

Merged
merged 7 commits into from Mar 20, 2023
Merged

feat: add slippery tile. #673

merged 7 commits into from Mar 20, 2023

Conversation

Zac8668
Copy link
Collaborator

@Zac8668 Zac8668 commented Mar 3, 2023

No description provided.

@Zac8668 Zac8668 requested a review from zicklag March 3, 2023 06:45
Copy link
Member

@zicklag zicklag left a comment

Choose a reason for hiding this comment

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

This works great! I pushed a minor update that adds the slippery and slippery seaweed to the editor.


I'm fine merging this for now if you don't want to do this yet, but I was thinking that it'd be good to add a per-body friction option to the physics instead of the global friction parameter we have today.

Then, instead of adding the slipperyness logic to the player controller, we could cause the slippery elements to cause anything colliding with them to have a decreased friction, that would be re-set to normal when they stop colliding.

That would make everything slip on it, including items.

But I'm fine merging this now and just opening an issue for future work if you'd rather do that.

@Zac8668 Zac8668 requested a review from zicklag March 20, 2023 20:43
…t to an `Option<f32>`.

I think this makes the proper use of the setting more clear. Also added a
doc comment.
@zicklag zicklag added this pull request to the merge queue Mar 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 20, 2023
@zicklag zicklag changed the title feat: Add slippery tile feat: add slippery tile. Mar 20, 2023
@zicklag zicklag enabled auto-merge March 20, 2023 22:02
@zicklag zicklag added this pull request to the merge queue Mar 20, 2023
@zicklag zicklag merged commit 42b88c7 into fishfolk:main Mar 20, 2023
9 checks passed
@Zac8668 Zac8668 deleted the slippery branch March 21, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants