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

Add defintion for OAM y-Coordinate offscreen value #1108

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

vulcandth
Copy link
Collaborator

Reference: https://gbdev.io/pandocs/OAM.html#byte-0--y-position

Essentially, a y-coord of 160 is the screen's height (144) plus the height of a 8x16 sprite (2 tiles).

@mid-kid
Copy link
Member

mid-kid commented Jan 28, 2024

I'd honestly rather a new constant for this, the math isn't really obvious (OAM_YCOORD_DISABLED or similar, please think of a better name than this)

@vulcandth
Copy link
Collaborator Author

vulcandth commented Jan 28, 2024

I'd honestly rather a new constant for this, the math isn't really obvious (OAM_YCOORD_DISABLED or similar, please think of a better name than this)

Why come up with a better name when you have a perfectly terrible name right here. LOL

I'll think of something soon.

@Rangi42
Copy link
Member

Rangi42 commented Apr 3, 2024

OAM_YCOORD_HIDDEN? Since they're not disabled, just off-screen.

@vulcandth vulcandth changed the title Fix/update sprite y-coord offscreen definitions Add defintion for OAM y-Coordinate offscreen value Apr 14, 2024
@vulcandth vulcandth merged commit b0b5ed2 into pret:master Apr 14, 2024
1 check passed
@vulcandth vulcandth deleted the fix-y-coord-def branch April 14, 2024 20:55
vulcandth added a commit to pret/pokegold that referenced this pull request Apr 14, 2024
vulcandth added a commit to pret/pokegold that referenced this pull request Apr 14, 2024
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.

3 participants