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

LevelZoom by CenterCamera vs ExtendedVariantMode #75

Open
LozenChen opened this issue Apr 29, 2024 · 0 comments
Open

LevelZoom by CenterCamera vs ExtendedVariantMode #75

LozenChen opened this issue Apr 29, 2024 · 0 comments

Comments

@LozenChen
Copy link
Contributor

If we use the ZoomLevel variant from ExtendedVariantMode, and zoom out using CenterCamera
then as shown in the picture, the FreeCameraHitbox class doesn't debug render correctly

Why we should patch this: some mod maps use the ZoomLevel variant, e.g. GalleryCollab heartside

celeste

(1) my first thought is, we should patch the FreeCameraHitbox class (or maybe the CenterCamera class), but my attempts fail.
(2) then i feel that, maybe we can just block the ZoomLevel variant from working, when we are using CenterCamera. That is, we save the variant value, and set it to 1 in CenterCamera.CenterTheCamera(), then restore the variant value in CenterCamera.RestoreTheCamera().

P.S. how does the ZoomLevel variant work: it hooks Level.Render and gives a multiplier whenever Level.Zoom appears

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

No branches or pull requests

1 participant