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

BSPMapGen maps are aliased on HTML5 #300

Closed
Geokureli opened this issue May 14, 2022 · 1 comment · Fixed by #308
Closed

BSPMapGen maps are aliased on HTML5 #300

Geokureli opened this issue May 14, 2022 · 1 comment · Fixed by #308

Comments

@Geokureli
Copy link
Member

Geokureli commented May 14, 2022

I'm not sure if there's something wrong with html bitmap drawing, or if the original coder specifically used a method that was very flash specific

Flash:
Screen Shot 2022-05-14 at 11 49 24 AM
Html:
Screen Shot 2022-05-14 at 11 49 43 AM
Mac:
Screen Shot 2022-05-14 at 12 11 58 PM

@Geokureli Geokureli mentioned this issue May 14, 2022
41 tasks
UncertainProd added a commit to UncertainProd/flixel-demos that referenced this issue Apr 8, 2023
@UncertainProd
Copy link
Contributor

It looks like this is related to this issue with html5 canvases automatically antialiasing pixels that are on non-integer coordinates. And since openfl uses CanvasRenderer to draw stuff to bitmapdata objects, it gets affected by this as well. I think this can be fixed by just rounding off the rectangles' coordinates to the nearest integer.

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 a pull request may close this issue.

2 participants