mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +08:00
Updated documentation.
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a new `Sprite` object. Sprites are the lifeblood of your game, used for nearly everything visual.
|
||||
* @class Phaser.Sprite
|
||||
*
|
||||
* @classdesc Create a new `Sprite` object. Sprites are the lifeblood of your game, used for nearly everything visual.
|
||||
*
|
||||
* At its most basic a Sprite consists of a set of coordinates and a texture that is rendered to the canvas.
|
||||
* They also contain additional properties allowing for physics motion (via Sprite.body), input handling (via Sprite.input),
|
||||
* events (via Sprite.events), animation (via Sprite.animations), camera culling and more. Please see the Examples for use cases.
|
||||
*
|
||||
* @class Phaser.Sprite
|
||||
* @constructor
|
||||
* @param {Phaser.Game} game - A reference to the currently running game.
|
||||
* @param {number} x - The x coordinate (in world space) to position the Sprite at.
|
||||
|
||||
Reference in New Issue
Block a user