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 the use viewport to ensure stable behaviour on different devices #8

Open
TheMangelo opened this issue Apr 23, 2021 · 0 comments
Open
Assignees

Comments

@TheMangelo
Copy link
Collaborator

You may want to have a stable playing environment regardless of screen size.
Well, let's talk about how we can achieve this. We can do this by creating a
Viewport instance and a camera instance.

First, what is a viewport?
In LibGDX terms, it is a way to manage a camera, mapping screen coordinates
to the games world's coordinates. LibGDX comes with the following Viewport
implementations, but you can also create your own:

@TheMangelo TheMangelo self-assigned this Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant