mirror of
https://github.com/wassname/phaser.git
synced 2026-07-04 17:20:31 +08:00
Updated debug header and added more info to the project template.
This commit is contained in:
@@ -142,6 +142,12 @@ Phaser.Sprite = function (game, x, y, key, frame) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The rectangular area from the texture that will be rendered.
|
||||
* @property {Phaser.Rectangle} textureRegion
|
||||
*/
|
||||
this.textureRegion = new Phaser.Rectangle(this.texture.frame.x, this.texture.frame.y, this.texture.frame.width, this.texture.frame.height);
|
||||
|
||||
/**
|
||||
* The anchor sets the origin point of the texture.
|
||||
* The default is 0,0 this means the textures origin is the top left
|
||||
|
||||
Reference in New Issue
Block a user