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

Check for clipping when walls change #1222

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

jwunderl
Copy link
Member

@jwunderl jwunderl commented Jan 22, 2021

When walls change, check for any sprites that are now clipping into walls -- bump them if trivially possible (like we do when changing position), otherwise set them as clipping

fix microsoft/pxt-arcade#2960

Feels like there's likely a better way to structure this, but I don't see it immediately; it kind of belongs between physics & tilemaps. (happy to take any suggestions if you see a better way I'm missing!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant