mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Updated origin call.
This commit is contained in:
parent
73833e6628
commit
a71998d682
3 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ var Image = new Class({
|
|||
this.setTexture(texture, frame);
|
||||
this.setPosition(x, y);
|
||||
this.setSizeToFrame();
|
||||
this.setOrigin();
|
||||
this.setOriginFromFrame();
|
||||
this.initPipeline('TextureTintPipeline');
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,7 @@ var Sprite = new Class({
|
|||
this.setTexture(texture, frame);
|
||||
this.setPosition(x, y);
|
||||
this.setSizeToFrame();
|
||||
this.setOrigin();
|
||||
this.setOriginFromFrame();
|
||||
this.initPipeline('TextureTintPipeline');
|
||||
},
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ var TileSprite = new Class({
|
|||
this.setTexture(texture, frame);
|
||||
this.setPosition(x, y);
|
||||
this.setSize(width, height);
|
||||
this.setOrigin();
|
||||
this.setOriginFromFrame();
|
||||
this.initPipeline('TextureTintPipeline');
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue