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

Resolution change can cut off character #19

Open
shroeder opened this issue Sep 24, 2014 · 1 comment
Open

Resolution change can cut off character #19

shroeder opened this issue Sep 24, 2014 · 1 comment
Labels

Comments

@shroeder
Copy link
Owner

No description provided.

@shroeder shroeder added the bug label Sep 24, 2014
@shroeder
Copy link
Owner Author

For this, I'm thinking to use the existing offset variable that controls the displacement of the background tiles. If I can find out how far the character is offscreen(which shouldn't be hard ie: the difference in backbufferwidth and character's local position(not world position)) I should be able to scroll the map to center back on him, Since I added 10 extra tile rows/columns for the background, it should look fine in doing this, and it will also prevent the character from moving further in the event the resolution changes > Offset changes > he tries to move off map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant