-
-
Notifications
You must be signed in to change notification settings - Fork 899
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
Forge2DGame + PositionComponents inconsistent onGameResize() #1338
Labels
Comments
Oh, interesting, my guess is that this bug also affects the normal |
You are right, it doesn't specific to Forge2DGame , I'm getting pretty same results with class MyGame extends FlameGame {
MyGame() : super() {
camera.zoom = 10.0;
} // Not sure if I set up camera right :)
|
Thanks for checking, I'll have a closer look! |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to add simple PositionComponent to the Forge2DGame and respond to the onGameResize calls.
Current bug behaviour
If I build and run the code above for the macosx target and try to resize game window the code produces this debug output:
Expected behaviour
As you can see the first onGameResize() call passes scaled (zoomed) size, but all following updates uses real window size. It's expected that output be consistent either scaled or not.
Steps to reproduce
build and run the code above for the macosx target and try to resize game window
Flutter doctor output
More environment information
Log information
More information
The text was updated successfully, but these errors were encountered: