Spriteの種類別機能比較(list)

| Phaser.GameObjects. Image | Phaser.GameObjects. PathFollower | Phaser.GameObjects. Sprite | Phaser.Physics.Arcade. Sprite | 説明 |
| :-- | :-- | :-- | :-- | :-- |
| Class: Image | Class: PathFollower | Class: Sprite | Class: Sprite |  |
| Phaser.GameObjects. Image | Phaser.GameObjects. PathFollower | Phaser.GameObjects. Sprite | Phaser.Physics.Arcade. Sprite |  |
| new Image(scene, x, y, texture [, frame]) | new PathFollower(scene, path, x, y, texture [, frame]) | new Sprite(scene, x, y, texture [, frame]) | new Sprite(scene, x, y, texture [, frame]) |  |
| Extends | Extends | Extends | Extends |  |
| Members | Members | Members | Members |  |
| active :boolean | active :boolean | active :boolean | active :boolean |  |
| alpha :number | alpha :number | alpha :number | alpha :number |  |
| alphaBottomLeft :number | alphaBottomLeft :number | alphaBottomLeft :number | alphaBottomLeft :number |  |
| alphaBottomRight :number | alphaBottomRight :number | alphaBottomRight :number | alphaBottomRight :number |  |
| alphaTopLeft :number | alphaTopLeft :number | alphaTopLeft :number | alphaTopLeft :number |  |
| alphaTopRight :number | alphaTopRight :number | alphaTopRight :number | alphaTopRight :number |  |
| angle :integer | angle :integer | angle :integer | angle :integer |  |
|  | anims :Phaser.GameObjects.Components.Animation | anims :Phaser.GameObjects.Components.Animation | anims :Phaser.GameObjects.Components.Animation |  |
| blendMode :Phaser.BlendModes|string | blendMode :Phaser.BlendModes|string | blendMode :Phaser.BlendModes|string | blendMode :Phaser.BlendModes|string |  |
| <nullable> body :object|Phaser.Physics.Arcade.Body|Phaser.Physics.Impact.Body | <nullable> body :object|Phaser.Physics.Arcade.Body|Phaser.Physics.Impact.Body | <nullable> body :object|Phaser.Physics.Arcade.Body|Phaser.Physics.Impact.Body | <nullable> body :Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody |  |
| cameraFilter :number | cameraFilter :number | cameraFilter :number | cameraFilter :number |  |
| data :Phaser.Data.DataManager | data :Phaser.Data.DataManager | data :Phaser.Data.DataManager | data :Phaser.Data.DataManager |  |
|  |  |  | debugBodyColor :number | 主体轮廓呈现给调试显示时的颜色。 |
|  |  |  | debugShowBody :boolean | 设置为true使此主体将其轮廓渲染到调试显示。 |
|  |  |  | debugShowVelocity :boolean | 设置为true使该实体将速度标记渲染到调试显示。 |
| defaultPipeline :Phaser.Renderer.WebGL.WebGLPipeline | defaultPipeline :Phaser.Renderer.WebGL.WebGLPipeline | defaultPipeline :Phaser.Renderer.WebGL.WebGLPipeline | defaultPipeline :Phaser.Renderer.WebGL.WebGLPipeline |  |
| depth :number | depth :number | depth :number | depth :number |  |
| displayHeight :number | displayHeight :number | displayHeight :number | displayHeight :number |  |
| displayOriginX :number | displayOriginX :number | displayOriginX :number | displayOriginX :number |  |
| displayOriginY :number | displayOriginY :number | displayOriginY :number | displayOriginY :number |  |
| displayWidth :number | displayWidth :number | displayWidth :number | displayWidth :number |  |
| flipX :boolean | flipX :boolean | flipX :boolean | flipX :boolean |  |
| flipY :boolean | flipY :boolean | flipY :boolean | flipY :boolean |  |
| frame :Phaser.Textures.Frame | frame :Phaser.Textures.Frame | frame :Phaser.Textures.Frame | frame :Phaser.Textures.Frame |  |
| height :number | height :number | height :number | height :number |  |
| ignoreDestroy :boolean | ignoreDestroy :boolean | ignoreDestroy :boolean | ignoreDestroy :boolean |  |
| <nullable> input :Phaser.Types.Input.InteractiveObject | <nullable> input :Phaser.Types.Input.InteractiveObject | <nullable> input :Phaser.Types.Input.InteractiveObject | <nullable> input :Phaser.Types.Input.InteractiveObject |  |
| isCropped :boolean | isCropped :boolean | isCropped :boolean | isCropped :boolean |  |
| <readonly> isTinted :boolean | <readonly> isTinted :boolean | <readonly> isTinted :boolean | <readonly> isTinted :boolean |  |
| mask :Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask | mask :Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask | mask :Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask | mask :Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask |  |
| name :string | name :string | name :string | name :string |  |
| originX :number | originX :number | originX :number | originX :number |  |
| originY :number | originY :number | originY :number | originY :number |  |
| parentContainer :Phaser.GameObjects.Container | parentContainer :Phaser.GameObjects.Container | parentContainer :Phaser.GameObjects.Container | parentContainer :Phaser.GameObjects.Container |  |
|  | path :Phaser.Curves.Path |  |  |  |
|  | <nullable> pathConfig :Phaser.Types.GameObjects.PathFollower.PathConfig |  |  |  |
|  | pathOffset :Phaser.Math.Vector2 |  |  |  |
|  | pathRotationOffset :number |  |  |  |
|  | pathTween :Phaser.Tweens.Tween |  |  |  |
|  | pathVector :Phaser.Math.Vector2 |  |  |  |
| pipeline :Phaser.Renderer.WebGL.WebGLPipeline | pipeline :Phaser.Renderer.WebGL.WebGLPipeline | pipeline :Phaser.Renderer.WebGL.WebGLPipeline | pipeline :Phaser.Renderer.WebGL.WebGLPipeline |  |
|  | renderFlags :integer | renderFlags :integer | renderFlags :integer |  |
|  | rotateToPath :boolean | rotation :number | rotation :number |  |
|  | rotation :number |  |  |  |
|  | scale :number | scale :number | scale :number |  |
|  | scaleX :number | scaleX :number | scaleX :number |  |
|  | scaleY :number | scaleY :number | scaleY :number |  |
|  | <protected> scene :Phaser.Scene | <protected> scene :Phaser.Scene | <protected> scene :Phaser.Scene |  |
| scrollFactorX :number | scrollFactorX :number | scrollFactorX :number | scrollFactorX :number |  |
| scrollFactorY :number | scrollFactorY :number | scrollFactorY :number | scrollFactorY :number |  |
| state :integer|string | state :integer|string | state :integer|string | state :integer|string |  |
| tabIndex :integer | tabIndex :integer | tabIndex :integer | tabIndex :integer |  |
| texture :Phaser.Textures.Texture|Phaser.Textures.CanvasTexture | texture :Phaser.Textures.Texture|Phaser.Textures.CanvasTexture | texture :Phaser.Textures.Texture|Phaser.Textures.CanvasTexture | texture :Phaser.Textures.Texture|Phaser.Textures.CanvasTexture |  |
| tint :integer | tint :integer | tint :integer | tint :integer |  |
| tintBottomLeft :integer | tintBottomLeft :integer | tintBottomLeft :integer | tintBottomLeft :integer |  |
| tintBottomRight :integer | tintBottomRight :integer | tintBottomRight :integer | tintBottomRight :integer |  |
| tintFill :boolean  | tintFill :boolean | tintFill :boolean | tintFill :boolean |  |
| tintTopLeft :integer | tintTopLeft :integer | tintTopLeft :integer | tintTopLeft :integer |  |
| tintTopRight :integer | tintTopRight :integer | tintTopRight :integer | tintTopRight :integer |  |
| type :string | type :string | type :string | type :string |  |
| visible :boolean | visible :boolean | visible :boolean | visible :boolean |  |
| w :number | w :number | w :number | w :number |  |
| width :number | width :number | width :number | width :number |  |
| x :number | x :number | x :number | x :number |  |
| y :number | y :number | y :number | y :number |  |
| z :number | z :number | z :number | z :number |  |
| Methods | Methods | Methods | Methods |  |
| addListener(event, fn [, context]) | addListener(event, fn [, context]) | addListener(event, fn [, context]) | addListener(event, fn [, context]) |  |
| clearAlpha() | clearAlpha() | clearAlpha() | clearAlpha() |  |
| clearMask( [destroyMask]) | clearMask( [destroyMask]) | clearMask( [destroyMask]) | clearMask( [destroyMask]) |  |
| clearTint() | clearTint() | clearTint() | clearTint() |  |
| createBitmapMask( [renderable]) | createBitmapMask( [renderable]) | createBitmapMask( [renderable]) | createBitmapMask( [renderable]) |  |
| createGeometryMask( [graphics]) | createGeometryMask( [graphics]) | createGeometryMask( [graphics]) | createGeometryMask( [graphics]) |  |
| destroy( [fromScene]) | destroy( [fromScene]) | destroy( [fromScene]) | destroy( [fromScene]) |  |
|  |  |  | disableBody( [disableGameObject] [, hideGameObject]) |  |
| disableInteractive() | disableInteractive() | disableInteractive() | disableInteractive() |  |
| emit(event [, args]) | emit(event [, args]) | emit(event [, args]) | emit(event [, args]) |  |
|  |  |  | enableBody(reset, x, y, enableGameObject, showGameObject) |  |
| eventNames() | eventNames() | eventNames() | eventNames() |  |
| getBottomCenter( [output] [, includeParent]) | getBottomCenter( [output] [, includeParent]) | getBottomCenter( [output] [, includeParent]) | getBottomCenter( [output] [, includeParent]) |  |
| getBottomLeft( [output] [, includeParent]) | getBottomLeft( [output] [, includeParent]) | getBottomLeft( [output] [, includeParent]) | getBottomLeft( [output] [, includeParent]) |  |
| getBottomRight( [output] [, includeParent]) | getBottomRight( [output] [, includeParent]) | getBottomRight( [output] [, includeParent]) | getBottomRight( [output] [, includeParent]) |  |
| getBounds( [output]) | getBounds( [output]) | getBounds( [output]) | getBounds( [output]) |  |
| getCenter( [output]) | getCenter( [output]) | getCenter( [output]) | getCenter( [output]) |  |
| getData(key) | getData(key) | getData(key) | getData(key) |  |
| getIndexList() | getIndexList() | getIndexList() | getIndexList() |  |
| getLeftCenter( [output] [, includeParent]) | getLeftCenter( [output] [, includeParent]) | getLeftCenter( [output] [, includeParent]) | getLeftCenter( [output] [, includeParent]) |  |
| getLocalTransformMatrix( [tempMatrix]) | getLocalTransformMatrix( [tempMatrix]) | getLocalTransformMatrix( [tempMatrix]) | getLocalTransformMatrix( [tempMatrix]) |  |
| getParentRotation() | getParentRotation() | getParentRotation() | getParentRotation() |  |
| getPipelineName() | getPipelineName() | getPipelineName() | getPipelineName() |  |
| getRightCenter( [output] [, includeParent]) | getRightCenter( [output] [, includeParent]) | getRightCenter( [output] [, includeParent]) | getRightCenter( [output] [, includeParent]) |  |
| getTopCenter( [output] [, includeParent]) | getTopCenter( [output] [, includeParent]) | getTopCenter( [output] [, includeParent]) | getTopCenter( [output] [, includeParent]) |  |
| getTopLeft( [output] [, includeParent]) | getTopLeft( [output] [, includeParent]) | getTopLeft( [output] [, includeParent]) | getTopLeft( [output] [, includeParent]) |  |
| getTopRight( [output] [, includeParent]) | getTopRight( [output] [, includeParent]) | getTopRight( [output] [, includeParent]) | getTopRight( [output] [, includeParent]) |  |
| getWorldTransformMatrix( [tempMatrix] [, parentMatrix]) | getWorldTransformMatrix( [tempMatrix] [, parentMatrix]) | getWorldTransformMatrix( [tempMatrix] [, parentMatrix]) | getWorldTransformMatrix( [tempMatrix] [, parentMatrix]) |  |
| initPipeline( [pipelineName]) | initPipeline( [pipelineName]) | initPipeline( [pipelineName]) | initPipeline( [pipelineName]) |  |
|  | isFollowing() |  |  |  |
| listenerCount(event) | listenerCount(event) | listenerCount(event) | listenerCount(event) |  |
| listeners(event) | listeners(event) | listeners(event) | listeners(event) |  |
| off(event [, fn] [, context] [, once]) | off(event [, fn] [, context] [, once]) | off(event [, fn] [, context] [, once]) | off(event [, fn] [, context] [, once]) |  |
| on(event, fn [, context]) | on(event, fn [, context]) | on(event, fn [, context]) | on(event, fn [, context]) |  |
| once(event, fn [, context]) | once(event, fn [, context]) | once(event, fn [, context]) | once(event, fn [, context]) |  |
|  | pathUpdate() |  |  |  |
|  | pauseFollow() |  |  |  |
|  | play(key [, ignoreIfPlaying] [, startFrame]) | play(key [, ignoreIfPlaying] [, startFrame]) | play(key [, ignoreIfPlaying] [, startFrame]) |  |
|  | <protected> preUpdate(time, delta) | <protected> preUpdate(time, delta) | <protected> preUpdate(time, delta) |  |
|  |  |  | refreshBody() |  |
| removeAllListeners( [event]) | removeAllListeners( [event]) | removeAllListeners( [event]) | removeAllListeners( [event]) |  |
| removeInteractive() | removeInteractive() | removeInteractive() | removeInteractive() |  |
| removeListener(event [, fn] [, context] [, once]) | removeListener(event [, fn] [, context] [, once]) | removeListener(event [, fn] [, context] [, once]) | removeListener(event [, fn] [, context] [, once]) |  |
| resetFlip() | resetFlip() | resetFlip() | resetFlip() |  |
| resetPipeline() | resetPipeline() | resetPipeline() | resetPipeline() |  |
|  | resumeFollow() |  |  |  |
|  |  |  | setAcceleration(x [, y]) | 设置物体的水平和垂直加速度 |
|  |  |  | setAccelerationX(value) |  |
|  |  |  | setAccelerationY(value) |  |
| setActive(value) | setActive(value) | setActive(value) | setActive(value) |  |
| setAlpha( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setAlpha( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setAlpha( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setAlpha( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) |  |
| setAngle( [degrees]) | setAngle( [degrees]) | setAngle( [degrees]) | setAngle( [degrees]) |  |
|  |  |  | setAngularAcceleration(value) | 设置物体的角加速度。 |
|  |  |  | setAngularDrag(value) |  |
|  |  |  | setAngularVelocity(value) |  |
| setBlendMode(value) | setBlendMode(value) | setBlendMode(value) | setBlendMode(value) |  |
|  |  |  | setBounce(x [, y]) | 设置此实体的反弹值。 |
|  |  |  | setBounceX(value) |  |
|  |  |  | setBounceY(value) |  |
|  |  |  | setCircle(radius [, offsetX] [, offsetY]) | 将此物理物体设置为使用圆而不是矩形进行碰撞。 |
|  |  |  | setCollideWorldBounds( [value] [, bounceX] [, bounceY]) | 设置此Body是否与世界边界碰撞。 |
| setCrop( [x] [, y] [, width] [, height]) | setCrop( [x] [, y] [, width] [, height]) | setCrop( [x] [, y] [, width] [, height]) | setCrop( [x] [, y] [, width] [, height]) |  |
|  |  |  | setDamping(value) | 设置阻力系数 |
| setData(key [, data]) | setData(key [, data]) | setData(key [, data]) | setData(key [, data]) |  |
| setDataEnabled() | setDataEnabled() | setDataEnabled() | setDataEnabled() |  |
|  |  |  | setDebug(showBody, showVelocity, bodyColor) | 设置此主体的调试值。 |
|  |  |  | setDebugBodyColor(value) | 设置正文轮廓渲染到调试显示时的颜色。 |
| setDepth(value) | setDepth(value) | setDepth(value) | setDepth(value) |  |
| setDisplayOrigin( [x] [, y]) | setDisplayOrigin( [x] [, y]) | setDisplayOrigin( [x] [, y]) | setDisplayOrigin( [x] [, y]) |  |
| setDisplaySize(width, height) | setDisplaySize(width, height) | setDisplaySize(width, height) | setDisplaySize(width, height) |  |
|  |  |  | setDrag(x [, y]) | 设置实体的水平和垂直拖动 |
|  |  |  | setDragX(value) |  |
|  |  |  | setDragY(value) |  |
| setFlip(x, y) | setFlip(x, y) | setFlip(x, y) | setFlip(x, y) |  |
| setFlipX(value) | setFlipX(value) | setFlipX(value) | setFlipX(value) |  |
| setFlipY(value) | setFlipY(value) | setFlipY(value) | setFlipY(value) |  |
| setFrame(frame [, updateSize] [, updateOrigin]) | setFrame(frame [, updateSize] [, updateOrigin]) | setFrame(frame [, updateSize] [, updateOrigin]) | setFrame(frame [, updateSize] [, updateOrigin]) |  |
|  |  |  | setFriction(x [, y]) | 设置物理物体在移动时的摩擦力 |
|  |  |  | setFrictionX(x) |  |
|  |  |  | setFrictionY(x) |  |
|  |  |  | setGravity(x [, y]) | 设置引力的X和Y值 |
|  |  |  | setGravityX(x) |  |
|  |  |  | setGravityY(y) |  |
|  |  |  | setImmovable( [value]) | 设置是否可以通过与另一个Body碰撞来移动此Body。 |
| setInteractive( [shape] [, callback] [, dropZone]) | setInteractive( [shape] [, callback] [, dropZone]) | setInteractive( [shape] [, callback] [, dropZone]) | setInteractive( [shape] [, callback] [, dropZone]) |  |
| setMask(mask) | setMask(mask) | setMask(mask) | setMask(mask) |  |
|  |  |  | setMass(value) | 设置物理物体的质量 |
|  |  |  | setMaxVelocity(x [, y]) | 设置身体的最大速度 |
| setName(value) | setName(value) | setName(value) | setName(value) |  |
|  |  |  | setOffset(x [, y]) | 设置主体偏移。这使您可以调整身体中心与父级游戏对象的x和y坐标之间的差异。 |
| setOrigin( [x] [, y]) | setOrigin( [x] [, y]) | setOrigin( [x] [, y]) | setOrigin( [x] [, y]) |  |
| setOriginFromFrame() | setOriginFromFrame() | setOriginFromFrame() | setOriginFromFrame() |  |
|  | setPath(path [, config]) |  |  |  |
| setPipeline(pipelineName) | setPipeline(pipelineName) | setPipeline(pipelineName) | setPipeline(pipelineName) |  |
| setPosition( [x] [, y] [, z] [, w]) | setPosition( [x] [, y] [, z] [, w]) | setPosition( [x] [, y] [, z] [, w]) | setPosition( [x] [, y] [, z] [, w]) |  |
| setRandomPosition( [x] [, y] [, width] [, height]) | setRandomPosition( [x] [, y] [, width] [, height]) | setRandomPosition( [x] [, y] [, width] [, height]) | setRandomPosition( [x] [, y] [, width] [, height]) |  |
|  | setRotateToPath(value [, offset]) |  |  |  |
| setRotation( [radians]) | setRotation( [radians]) | setRotation( [radians]) | setRotation( [radians]) |  |
| setScale(x [, y]) | setScale(x [, y]) | setScale(x [, y]) | setScale(x [, y]) |  |
| setScrollFactor(x [, y]) | setScrollFactor(x [, y]) | setScrollFactor(x [, y]) | setScrollFactor(x [, y]) |  |
| setSize(width, height) | setSize(width, height) | setSize(width, height) | setSize(width, height) |  |
| setSizeToFrame(frame) | setSizeToFrame(frame) | setSizeToFrame(frame) | setSizeToFrame(frame) |  |
| setState(value) | setState(value) | setState(value) | setState(value) |  |
| setTexture(key [, frame]) | setTexture(key [, frame]) | setTexture(key [, frame]) | setTexture(key [, frame]) |  |
| setTint( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTint( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTint( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTint( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) |  |
| setTintFill( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTintFill( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTintFill( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) | setTintFill( [topLeft] [, topRight] [, bottomLeft] [, bottomRight]) |  |
|  |  |  | setVelocity(x [, y]) | 设置物体的速度 |
|  |  |  | setVelocityX(x) |  |
|  |  |  | setVelocityY(y) |  |
| setVisible(value) | setVisible(value) | setVisible(value) | setVisible(value) |  |
| setW( [value]) | setW( [value]) | setW( [value]) | setW( [value]) |  |
| setX( [value]) | setX( [value]) | setX( [value]) | setX( [value]) |  |
| setY( [value]) | setY( [value]) | setY( [value]) | setY( [value]) |  |
| setZ( [value]) | setZ( [value]) | setZ( [value]) | setZ( [value]) |  |
| shutdown() | shutdown() | shutdown() | shutdown() |  |
|  | startFollow( [config] [, startAt]) |  |  |  |
|  | stopFollow() |  |  |  |
| toggleFlipX() | toggleFlipX() | toggleFlipX() | toggleFlipX() |  |
| toggleFlipY() | toggleFlipY() | toggleFlipY() | toggleFlipY() |  |
| toJSON() | toJSON() | toJSON() | toJSON() |  |
| update( [args]) | update( [args]) | update( [args]) | update( [args]) |  |
| updateDisplayOrigin() | updateDisplayOrigin() | updateDisplayOrigin() | updateDisplayOrigin() |  |
| willRender(camera) | willRender(camera) | willRender(camera) | willRender(camera) |  |