BitmapFont moved to extending RenderTexture instead of BitmapData. Now applied as a texture to a Sprite/Image.

This commit is contained in:
photonstorm
2014-02-14 13:50:50 +00:00
parent c3f306c795
commit ef95fbaa00
4 changed files with 113 additions and 47 deletions
+17
View File
@@ -299,6 +299,23 @@ Phaser.Cache.prototype = {
},
/**
* Replaces a set of frameData with a new Phaser.FrameData object.
*
* @method Phaser.Cache#updateFrameData
* @param {string} key - The unique key by which you will reference this object.
* @param {number} frameData - The new FrameData.
*/
updateFrameData: function (key, frameData) {
if (this._images[key])
{
this._images[key].spriteSheet = true;
this._images[key].frameData = frameData;
}
},
/**
* Add a new sound.
*