mirror of
https://github.com/wassname/phaser.git
synced 2026-08-19 12:30:07 +08:00
When Phaser loads images they are now added to the PIXI.BaseTextureCache. Also when it loads atlas data (regardless of the 3 formats) they are converted into PIXI TextureCache entries using UUIDs to avoid name clashes and to support index based atlases.
This commit is contained in:
@@ -8,18 +8,24 @@
|
||||
* @copyright 2013 Photon Storm Ltd.
|
||||
* @license https://github.com/photonstorm/phaser/blob/master/license.txt MIT License
|
||||
*/
|
||||
Phaser.Animation.Frame = function (x, y, width, height, name) {
|
||||
Phaser.Animation.Frame = function (x, y, width, height, name, uuid) {
|
||||
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.name = name;
|
||||
this.uuid = uuid;
|
||||
|
||||
};
|
||||
|
||||
Phaser.Animation.Frame.prototype = {
|
||||
|
||||
/**
|
||||
* A link to the PIXI.TextureCache entry
|
||||
*/
|
||||
uuid: '',
|
||||
|
||||
/**
|
||||
* X position within the image to cut from.
|
||||
* @type {number}
|
||||
|
||||
Reference in New Issue
Block a user