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 default antialiasing option to FlxSprite #2658

Merged
merged 2 commits into from
Oct 24, 2022
Merged

Add default antialiasing option to FlxSprite #2658

merged 2 commits into from
Oct 24, 2022

Conversation

ACrazyTown
Copy link
Contributor

@ACrazyTown ACrazyTown commented Oct 23, 2022

For performance reasons games might include an antialiasing option in their settings menu. But implementing an antialiasing option, especially in a project that's nearing completion is tedious because you'd have to change the antialiasing value for every sprite.

This PR adds a defaultAntialiasing option to FlxSprite, which sets its antialiasing value upon creation to defaultAntialiasing.

So instead of changing every sprite's value manually, you could simply do

FlxSprite.defaultAntialiasing = true;

and it would automatically set antialiasing to true on every sprite upon creation.

@Geokureli Geokureli merged commit a8cbd24 into HaxeFlixel:dev Oct 24, 2022
@Geokureli
Copy link
Member

thanks!

@ACrazyTown ACrazyTown deleted the flxsprite-globalantialiasing branch October 28, 2022 15:52
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.

None yet

2 participants