mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 06:00:41 +00:00
Handle non-sprite sheets
This commit is contained in:
parent
862f75089e
commit
c273a1c9af
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue