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

Maniacs Feature - Add .relative & .centered support on PixelPanScreen #3302

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

ToolMan2k
Copy link
Contributor

By Ghabry's request, here's the missing function .relative & .centered scrolling.

When using .relative & .centered tags for PixelScrolling, do the following:

  • Get half the width/height of the screen
  • Move screen by ( h/v - screen_width/height ) divided by two.

Tested against Maniac Patch 240822, it works as expected.
Tested using different resolutions on Maniac and EasyRPG, works as expected.

@Ghabry
Copy link
Member

Ghabry commented Nov 23, 2024

Great thanks for figuring out the algorithm

When using .relative & .centered tags for PixelScrolling, do the following:
- Get half the width/height of the screen
- Move screen by ( h/v - screen_width/height ) divided by two.

When compared to Maniacs Patch 240822, it works as expected.
Tested using different resolutions, works like it should.
@Ghabry
Copy link
Member

Ghabry commented Nov 24, 2024

Jenkins: Test this please

Rebased the commit and deleted the merge commit. Looks good to me now 👍

@Ghabry Ghabry merged commit d9dd9be into EasyRPG:master Nov 24, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants