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 pixelPerfectShake #2841

Merged
merged 5 commits into from
Jun 15, 2023
Merged

add pixelPerfectShake #2841

merged 5 commits into from
Jun 15, 2023

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Jun 14, 2023

By default screen shake moves the screen by sub-pixels even when FlxG.camera.pixelPerfectRender is true, so this is a backward compatible way to use pixel-perfect shake. which, maybe should be the default in flixel 6.0.0 if it doesn't look bad on average

Edit: it looks pretty good on all my tests, so i made pixelPerfectShake default to null which means pixelPerfectRender is used to decide, but you can give this a specific value, in case you specifically want subpixel shake

@Geokureli Geokureli merged commit 47c9171 into HaxeFlixel:dev Jun 15, 2023
Geokureli added a commit that referenced this pull request Jun 15, 2023
@Geokureli Geokureli deleted the pix_perf-shake branch August 9, 2023 15:23
@Geokureli Geokureli added this to the 5.4.0 milestone Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant