mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
jshint fixes and tidying up for release
This commit is contained in:
parent
25e7e6ffc4
commit
0966971427
3 changed files with 1 additions and 15 deletions
|
@ -481,11 +481,6 @@ Object.defineProperty(Phaser.AnimationManager.prototype, 'frame', {
|
|||
|
||||
set: function (value) {
|
||||
|
||||
console.log('AnimationManager.frame');
|
||||
console.log(typeof value);
|
||||
console.log(this._frameData);
|
||||
// console.log(this._frameData.getFrame(value));
|
||||
|
||||
if (typeof value === 'number' && this._frameData && this._frameData.getFrame(value) !== null)
|
||||
{
|
||||
this.currentFrame = this._frameData.getFrame(value);
|
||||
|
|
|
@ -563,7 +563,7 @@ Phaser.Sprite.prototype.updateCrop = function() {
|
|||
PIXI.WebGLRenderer.updateTextureFrame(this.texture);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Brings a 'dead' Sprite back to life, optionally giving it the health value specified.
|
||||
|
|
|
@ -380,15 +380,6 @@ Phaser.TileSprite.prototype.loadTexture = function (key, frame) {
|
|||
*/
|
||||
Phaser.TileSprite.prototype.setFrame = function(frame) {
|
||||
|
||||
// this._cache[9] = frame.x;
|
||||
// this._cache[10] = frame.y;
|
||||
// this._cache[11] = frame.width;
|
||||
// this._cache[12] = frame.height;
|
||||
// this._cache[13] = frame.spriteSourceSizeX;
|
||||
// this._cache[14] = frame.spriteSourceSizeY;
|
||||
// this._cache[17] = frame.sourceSizeW;
|
||||
// this._cache[18] = frame.sourceSizeH;
|
||||
|
||||
this.texture.frame.x = frame.x;
|
||||
this.texture.frame.y = frame.y;
|
||||
this.texture.frame.width = frame.width;
|
||||
|
|
Loading…
Reference in a new issue