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

tr2: migrate to common BOUNDS_16 #2255

Merged
merged 3 commits into from
Jan 11, 2025
Merged

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Jan 11, 2025

Checklist

  • I have read the coding conventions
  • I have added a changelog entry about what my pull request accomplishes, or it is an internal change
  • I have added a readme entry about my new feature or OG bug fix, or it is a different change

Description

This replaces TR2's BOUNDS_16 to use the same as TR1, so we have two XYZ16s rather than individual values for each component. No logical changes, this is pretty much just renaming properties.

TR2 frame rot expansion next, which should get us to equal handling for both games.

This replaces TR2's BOUNDS_16 to use the same as TR1, so we have two
XYZ16s rather than individual values for each component.
TR2 frame bounds can now be assigned in the same way as TR1.
@lahm86 lahm86 added Internal The invisible stuff TR2 labels Jan 11, 2025
@lahm86 lahm86 self-assigned this Jan 11, 2025
@lahm86 lahm86 requested review from a team as code owners January 11, 2025 16:01
@lahm86 lahm86 requested review from rr-, walkawayy and aredfan and removed request for a team January 11, 2025 16:01
Copy link

github-actions bot commented Jan 11, 2025

@lahm86
Copy link
Collaborator Author

lahm86 commented Jan 11, 2025

Found an issue with smashable windows and bells, they're a bit awkward to shoot now. Investigating.

The original approach relied on the layout of BOUNDS_16 to check
smashables, so this updates the checks to use exactly the properties we
need.
@lahm86
Copy link
Collaborator Author

lahm86 commented Jan 11, 2025

Fixed. Would appreciate a glance over and test to confirm. Will squash the separate commit into the main one later.

The original code relied on the layout of BOUNDS_16 for smashable/bell testing. This is the only instance like this, everything else just uses the properties as they come.

@lahm86 lahm86 requested review from aredfan and rr- January 11, 2025 18:43
Copy link
Collaborator

@aredfan aredfan left a comment

Choose a reason for hiding this comment

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

The windows/bells behaviour is working as expected. LGTM.

@lahm86 lahm86 merged commit 8b17453 into LostArtefacts:develop Jan 11, 2025
7 checks passed
@lahm86 lahm86 deleted the tr2-bounds16 branch January 11, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal The invisible stuff TR2
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants