mirror of
https://github.com/wassname/phaser.git
synced 2026-07-08 00:10:32 +08:00
Lots of doc fixes (thanks nhowell)
This commit is contained in:
@@ -129,7 +129,7 @@ Phaser.BitmapText.prototype = Object.create(PIXI.BitmapText.prototype);
|
||||
Phaser.BitmapText.prototype.constructor = Phaser.BitmapText;
|
||||
|
||||
/**
|
||||
* @method setStyle
|
||||
* @method Phaser.BitmapText.prototype.setStyle
|
||||
* @private
|
||||
*/
|
||||
Phaser.BitmapText.prototype.setStyle = function() {
|
||||
@@ -177,8 +177,7 @@ Phaser.BitmapText.prototype.preUpdate = function () {
|
||||
/**
|
||||
* Override and use this function in your own custom objects to handle any update requirements you may have.
|
||||
*
|
||||
* @method Phaser.BitmapText#update
|
||||
* @memberof Phaser.BitmapText
|
||||
* @method Phaser.BitmapText.prototype.update
|
||||
*/
|
||||
Phaser.BitmapText.prototype.update = function() {
|
||||
|
||||
@@ -200,6 +199,7 @@ Phaser.BitmapText.prototype.postUpdate = function () {
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy this BitmapText instance. This will remove any filters and un-parent any children.
|
||||
* @method Phaser.BitmapText.prototype.destroy
|
||||
*/
|
||||
Phaser.BitmapText.prototype.destroy = function() {
|
||||
|
||||
@@ -137,7 +137,7 @@ Phaser.Graphics.prototype.postUpdate = function () {
|
||||
/**
|
||||
* Destroy this Graphics instance.
|
||||
*
|
||||
* @method Phaser.Sprite.prototype.destroy
|
||||
* @method Phaser.Graphics.prototype.destroy
|
||||
*/
|
||||
Phaser.Graphics.prototype.destroy = function() {
|
||||
|
||||
@@ -158,7 +158,7 @@ Phaser.Graphics.prototype.destroy = function() {
|
||||
/*
|
||||
* Draws a {Phaser.Polygon} or a {PIXI.Polygon} filled
|
||||
*
|
||||
* @method Phaser.Sprite.prototype.drawPolygon
|
||||
* @method Phaser.Graphics.prototype.drawPolygon
|
||||
*/
|
||||
Phaser.Graphics.prototype.drawPolygon = function (poly) {
|
||||
|
||||
|
||||
@@ -916,7 +916,6 @@ Object.defineProperty(Phaser.Sprite.prototype, "exists", {
|
||||
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* An Sprite that is fixed to the camera uses its x/y coordinates as offsets from the top left of the camera. These are stored in Sprite.cameraOffset.
|
||||
* Note that the cameraOffset values are in addition to any parent in the display list.
|
||||
|
||||
Reference in New Issue
Block a user