mirror of
https://github.com/wassname/phaser.git
synced 2026-07-30 12:30:07 +08:00
BitmapFont moved to extending RenderTexture instead of BitmapData. Now applied as a texture to a Sprite/Image.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user