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

Example code does not run... #5

Open
patniemeyer opened this issue Oct 3, 2023 · 1 comment
Open

Example code does not run... #5

patniemeyer opened this issue Oct 3, 2023 · 1 comment

Comments

@patniemeyer
Copy link

Error: A value of type 'FixedResolutionViewport' can't be assigned to a variable of type 'Viewport'.
 - 'FixedResolutionViewport' is from 'package:flame/src/game/camera/viewport.dart' ('../../../../.pub-cache/hosted/pub.dev/flame-1.9.1/lib/src/game/camera/viewport.dart').
 - 'Viewport' is from 'package:flame/src/camera/viewport.dart' ('../../../../.pub-cache/hosted/pub.dev/flame-1.9.1/lib/src/camera/viewport.dart').
    camera.viewport = FixedResolutionViewport(Vector2(x, y));
@CorvusYe
Copy link
Member

CorvusYe commented Oct 3, 2023

Hi, @patniemeyer
The current version of Flame is 1.7.0 and has not been upgraded for a while. We need to adapt.

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

2 participants