mirror of
https://github.com/wassname/phaser.git
synced 2026-07-08 00:10:32 +08:00
And Tilemaps are rendering again - and much better than ever before :) Just one final optimisation pass to do and then it's on to collision.
This commit is contained in:
@@ -97,6 +97,12 @@ Phaser.Sprite = function (game, x, y, key, frame) {
|
||||
|
||||
this.currentFrame = this.game.cache.getTextureFrame(key.name);
|
||||
}
|
||||
else if (key instanceof PIXI.Texture)
|
||||
{
|
||||
PIXI.Sprite.call(this, key);
|
||||
|
||||
this.currentFrame = frame;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (key == null || this.game.cache.checkImageKey(key) == false)
|
||||
|
||||
Reference in New Issue
Block a user