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 sprite transparency to check for non-zero bits #28

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

Conversation

jtothebell
Copy link

Pico-8 seems to only care that the transparency nibble in the draw palette is non-zero, but before this fix zepto8 was checking that it was exactly 1. I don't see this difference explicitly spelled out in the official docs, but the wiki does say "non-zero" (https://pico-8.fandom.com/wiki/Memory#Draw_state).

This seems to only affect carts that are pokeing the draw state. One example that is fixed is Dank Tomb, where the green background of the character sprite was visible in zepto8, but is not after this fix.

Pico 8 seems to only care that the transparency nibble in the palette is
non-zero, but before this fix zepto8 was checking that it was exactly 1.
I don't see this difference explicitely spelled out in the offial docs,
but the wiki does say "non-zero".

This seems to only affect carts that are pokeing the draw state. One
example that is fixed is Dank Tomb, where the green background of the
character sprite was visible, but is not after this fix.
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