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

Match more Player callbacks #72

Merged
merged 84 commits into from
Apr 21, 2023
Merged

Match more Player callbacks #72

merged 84 commits into from
Apr 21, 2023

Conversation

JaceCear
Copy link
Collaborator

No description provided.

// For some reason they lower his timer only every 2nd frame (in PlayerCB_8012C2C),
// instead of using a bigger value from the get-go, even though they gave him a
// 4-byte timer.
#define TAILS_FLYING_DURATION ((8 * GBA_FRAMES_PER_SECOND) / 2)
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this case, could make a TAILS_FLIGHT_MULTIPLIER 2 and do ... & (TAILS_FLIGHT_MULTIPLIER - 1)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I mean... it's not really a multiplier, I guess?
It's just skipping every other frame...

Maybe with a different name?

Copy link
Collaborator

@freshollie freshollie left a comment

Choose a reason for hiding this comment

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

Amazing work!

@JaceCear JaceCear merged commit b7d5d0a into main Apr 21, 2023
github-actions bot pushed a commit that referenced this pull request Apr 21, 2023
@JaceCear JaceCear deleted the p_callbacks_0 branch April 24, 2023 20:23
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.

2 participants