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

Uncaught Error: Texture Error: frame does not fit inside the base Texture dimensions #159

Open
rabago91 opened this issue Apr 3, 2021 · 0 comments

Comments

@rabago91
Copy link

rabago91 commented Apr 3, 2021

The error says:
Uncaught Error: Texture Error: frame does not fit inside the base Texture dimensions: X: 128 + 64 = 192 > 192 Y: 256 + 64 = 320 > 192

In the document it says:
let rectangle = new Rectangle(192, 128, 64, 64);

The problem is that the tiles are 32 pixels based not 64 for the image https://github.com/kittykatattack/learningPixi/blob/master/examples/images/screenshots/09.png
so instead of
Rectangle(192, 128, 64, 64)
it should be
Rectangle(96, 64, 32, 32)

That works fine 😄

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

1 participant