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 tline wrapping when out of map bounds #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtothebell
Copy link

Using a bitwise and on the map coordinates in tline makes the sample location wrap around if it should be out of bounds. Pico 8 appears to use sprite 0 if given out of bounds map coordinates in tline, so I've changed this to just use mget. You can see the error on BoneVolt's Sonic game (https://www.lexaloffle.com/bbs/?pid=81589), where before this fix a few garbage pixels are drawn above Sonic's head, but after the fix it looks correct.

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.

1 participant