Skip to content

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

Description

@rabago91

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 😄

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions