Handle non-sprite sheets

This commit is contained in:
Richard Davey 2024-02-21 00:01:28 +00:00
parent 862f75089e
commit c273a1c9af

View file

@ -308,7 +308,14 @@ var Tileset = new Class({
this.glTexture = frame.source.glTexture;
this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y);
if (frame.width > bounds.width || frame.height > bounds.height)
{
this.updateTileData(frame.width, frame.height);
}
else
{
this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y);
}
return this;
},