DeathZoneObject
<static> DeathZoneObject
Type: Phaser.GameObjects.Particles.Zones.DeathZone | Phaser.Types.GameObjects.Particles.ParticleEmitterDeathZoneConfig | Phaser.Types.GameObjects.Particles.DeathZoneSource
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/DeathZoneObject.js#L1
Since: 3.60.0
DeathZoneSource
<static> DeathZoneSource
name | type | optional | description |
---|---|---|---|
contains | No | No description provided |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/DeathZoneSource.js#L1
Since: 3.0.0
DeathZoneSourceCallback
<static> DeathZoneSourceCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/DeathZoneSourceCallback.js#L1
Since: 3.0.0
EdgeZoneSource
<static> EdgeZoneSource
name | type | optional | description |
---|---|---|---|
getPoints | No | A function placing points on the sources edge or edges. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EdgeZoneSource.js#L1
Since: 3.0.0
EdgeZoneSourceCallback
<static> EdgeZoneSourceCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EdgeZoneSourceCallback.js#L1
Since: 3.0.0
EmitterOpCustomEmitConfig
<static> EmitterOpCustomEmitConfig
name | type | optional | description |
---|---|---|---|
onEmit | No | A callback that is invoked each time the emitter emits a particle. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpCustomEmitConfig.js#L1
Since: 3.0.0
EmitterOpCustomUpdateConfig
<static> EmitterOpCustomUpdateConfig
name | type | optional | description |
---|---|---|---|
onEmit | Yes | A callback that is invoked each time the emitter emits a particle. | |
onUpdate | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateCallback | No | A callback that is invoked each time the emitter updates. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpCustomUpdateConfig.js#L1
Since: 3.0.0
EmitterOpEaseConfig
<static> EmitterOpEaseConfig
Defines an operation yielding a value incremented continuously across a range.
name | type | optional | default | description |
---|---|---|---|---|
start | number | No | The starting value. | |
end | number | No | The ending value. | |
random | boolean | Yes | If true, the particle starts with a minimum random value between the start and end values. | |
ease | string | function | Yes | "'Linear'" | The ease to find. This can be either a string from the EaseMap, or a custom function. |
easeParams | Array.<number> | Yes | An optional array of ease parameters to go with the ease. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpEaseConfig.js#L1
Since: 3.0.0
EmitterOpInterpolationConfig
<static> EmitterOpInterpolationConfig
Defines an operation yielding a value incremented continuously across an interpolated data set.
name | type | optional | default | description |
---|---|---|---|---|
values | Array.<number> | No | The array of number values to interpolate through. | |
interpolation | string | function | Yes | "'Linear'" | The interpolation function to use. Typically one of |
ease | string | function | Yes | "'Linear'" | An optional ease function to use. This can be either a string from the EaseMap, or a custom function. |
easeParams | Array.<number> | Yes | An optional array of ease parameters to go with the ease. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpInterpolationConfig.js#L1
Since: 3.60.0
EmitterOpOnEmitCallback
<static> EmitterOpOnEmitCallback
The returned value sets what the property will be at the START of the particle's life, on emit.
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpOnEmitCallback.js#L1
Since: 3.0.0
EmitterOpOnEmitType
<static> EmitterOpOnEmitType
Type: number | Array.<number> | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitCallback | Phaser.Types.GameObjects.Particles.EmitterOpRandomConfig | Phaser.Types.GameObjects.Particles.EmitterOpRandomMinMaxConfig | Phaser.Types.GameObjects.Particles.EmitterOpSteppedConfig | Phaser.Types.GameObjects.Particles.EmitterOpCustomEmitConfig
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpOnEmitType.js#L1
Since: 3.18.0
EmitterOpOnUpdateCallback
<static> EmitterOpOnUpdateCallback
The returned value updates the property for the duration of the particle's life.
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpOnUpdateCallback.js#L1
Since: 3.0.0
EmitterOpOnUpdateType
<static> EmitterOpOnUpdateType
Type: Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateCallback | Phaser.Types.GameObjects.Particles.EmitterOpEaseConfig | Phaser.Types.GameObjects.Particles.EmitterOpCustomUpdateConfig | Phaser.Types.GameObjects.Particles.EmitterOpInterpolationConfig
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpOnUpdateType.js#L1
Since: 3.18.0
EmitterOpRandomConfig
<static> EmitterOpRandomConfig
Defines an operation yielding a random value within a range.
name | type | optional | description |
---|---|---|---|
random | Array.<number> | No | The minimum and maximum values, as [min, max]. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpRandomConfig.js#L1
Since: 3.0.0
EmitterOpRandomMinMaxConfig
<static> EmitterOpRandomMinMaxConfig
Defines an operation yielding a random value within a range.
name | type | optional | description |
---|---|---|---|
min | number | No | The minimum value. |
max | number | No | The maximum value. |
int | boolean | Yes | If true, only integers are selected from the range. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpRandomMinMaxConfig.js#L1
Since: 3.0.0
EmitterOpSteppedConfig
<static> EmitterOpSteppedConfig
Defines an operation yielding a value incremented by steps across a range.
name | type | optional | description |
---|---|---|---|
start | number | No | The starting value. |
end | number | No | The ending value. |
steps | number | No | The number of steps between start and end. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitterOpSteppedConfig.js#L1
Since: 3.0.0
EmitZoneData
<static> EmitZoneData
Type: Phaser.Types.GameObjects.Particles.ParticleEmitterEdgeZoneConfig | Phaser.Types.GameObjects.Particles.ParticleEmitterRandomZoneConfig | Phaser.GameObjects.Particles.Zones.EdgeZone | Phaser.GameObjects.Particles.Zones.RandomZone
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitZoneData.js#L1
Since: 3.60.0
EmitZoneObject
<static> EmitZoneObject
Type: Phaser.GameObjects.Particles.Zones.EdgeZone | Phaser.GameObjects.Particles.Zones.RandomZone
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/EmitZoneObject.js#L1
Since: 3.60.0
GravityWellConfig
<static> GravityWellConfig
name | type | optional | default | description |
---|---|---|---|---|
x | number | Yes | 0 | The x coordinate of the Gravity Well, in world space. |
y | number | Yes | 0 | The y coordinate of the Gravity Well, in world space. |
power | number | Yes | 0 | The strength of the gravity force - larger numbers produce a stronger force. |
epsilon | number | Yes | 100 | The minimum distance for which the gravity force is calculated. |
gravity | number | Yes | 50 | The gravitational force of this Gravity Well. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/GravityWellConfig.js#L1
Since: 3.0.0
ParticleClassConstructor
<static> ParticleClassConstructor
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleClassConstructor.js#L1
Since: 3.0.0
ParticleData
<static> ParticleData
name | type | optional | default | description |
---|---|---|---|---|
tint | Yes | "{min:0xffffff,max:0xffffff}" | No description provided | |
alpha | Yes | "{min:1,max:1}" | No description provided | |
rotate | Yes | "{min:0,max:0}" | No description provided | |
scaleX | Yes | "{min:1,max:1}" | No description provided | |
scaleY | Yes | "{min:1,max:1}" | No description provided | |
x | Yes | "{min:0,max:0}" | No description provided | |
y | Yes | "{min:0,max:0}" | No description provided | |
accelerationX | Yes | "{min:0,max:0}" | No description provided | |
accelerationY | Yes | "{min:0,max:0}" | No description provided | |
maxVelocityX | Yes | "{min:0,max:0}" | No description provided | |
maxVelocityY | Yes | "{min:0,max:0}" | No description provided | |
moveToX | Yes | "{min:0,max:0}" | No description provided | |
moveToY | Yes | "{min:0,max:0}" | No description provided | |
bounce | Yes | "{min:0,max:0}" | No description provided |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleData.js#L1
Since: 3.60.0
ParticleDataValue
<static> ParticleDataValue
name | type | optional | description |
---|---|---|---|
min | number | No | The minimum value. |
max | number | No | The maximum value. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleDataValue.js#L1
Since: 3.60.0
ParticleDeathCallback
<static> ParticleDeathCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleDeathCallback.js#L1
Since: 3.0.0
ParticleEmitterAnimConfig
<static> ParticleEmitterAnimConfig
name | type | optional | default | description |
---|---|---|---|---|
anims | string | Array.<string> | Yes | ||
cycle | boolean | Yes | false | Whether animations will be assigned consecutively (true) or at random (false). |
quantity | number | Yes | 1 | The number of consecutive particles receiving each animation, when |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterAnimConfig.js#L1
Since: 3.60.0
ParticleEmitterBounds
<static> ParticleEmitterBounds
name | type | optional | description |
---|---|---|---|
x | number | No | The left edge of the rectangle. |
y | number | No | The top edge of the rectangle. |
width | number | No | The width of the rectangle. |
height | number | No | The height of the rectangle. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterBounds.js#L1
Since: 3.0.0
ParticleEmitterBoundsAlt
<static> ParticleEmitterBoundsAlt
name | type | optional | description |
---|---|---|---|
x | number | No | The left edge of the rectangle. |
y | number | No | The top edge of the rectangle. |
w | number | No | The width of the rectangle. |
h | number | No | The height of the rectangle. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterBoundsAlt.js#L1
Since: 3.0.0
ParticleEmitterCallback
<static> ParticleEmitterCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterCallback.js#L1
Since: 3.0.0
ParticleEmitterConfig
<static> ParticleEmitterConfig
name | type | optional | description |
---|---|---|---|
active | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#active}. Setting this to false will stop the emitter from running at all. If you just wish to stop particles from emitting, set |
blendMode | Phaser.BlendModes | string | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#blendMode}. |
callbackScope | * | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#deathCallbackScope} and {@link Phaser.GameObjects.Particles.ParticleEmitter#emitCallbackScope}. |
collideBottom | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#collideBottom}. |
collideLeft | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#collideLeft}. |
collideRight | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#collideRight}. |
collideTop | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#collideTop}. |
deathCallback | function | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#deathCallback}. |
deathCallbackScope | * | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#deathCallbackScope}. |
emitCallback | function | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#emitCallback}. |
emitCallbackScope | * | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#emitCallbackScope}. |
follow | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#follow}. | |
frequency | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#frequency}. |
gravityX | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#gravityX}. |
gravityY | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#gravityY}. |
maxParticles | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#maxParticles}. |
maxAliveParticles | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#maxAliveParticles}. |
name | string | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#name}. |
emitting | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#emitting}. |
particleBringToTop | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleBringToTop}. |
particleClass | function | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleClass}. |
radial | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#radial}. |
timeScale | number | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#timeScale}. |
trackVisible | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#trackVisible}. |
visible | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#visible}. |
accelerationX | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#accelerationX}. |
accelerationY | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#accelerationY}. |
alpha | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleAlpha}. |
angle | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleAngle} (emit only). | |
bounce | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#bounce}. |
delay | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#delay} (emit only). | |
hold | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#hold} (emit only). | |
lifespan | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#lifespan} (emit only). | |
maxVelocityX | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#maxVelocityX}. |
maxVelocityY | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#maxVelocityY}. |
moveToX | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#moveToX}. If set, overrides |
moveToY | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#moveToY}. If set, overrides |
quantity | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#quantity} (emit only). | |
rotate | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleRotate}. |
scale | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | As {@link Phaser.GameObjects.Particles.ParticleEmitter#setScale}. |
scaleX | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleScaleX}. |
scaleY | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleScaleY}. |
speed | Yes | As {@link Phaser.GameObjects.Particles.ParticleEmitter#setSpeed} (emit only). | |
speedX | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#speedX} (emit only). | |
speedY | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#speedY} (emit only). | |
tint | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleTint}. |
color | Array.<number> | Yes | An array of color values that the Particles interpolate through during their life. If set, overrides any |
colorEase | string | Yes | The string-based name of the Easing function to use if you have enabled Particle color interpolation via the |
x | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleX}. |
y | Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType | Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#particleY}. |
emitZone | Phaser.Types.GameObjects.Particles.EmitZoneData | Array.<Phaser.Types.GameObjects.Particles.EmitZoneData> | Yes | As {@link Phaser.GameObjects.Particles.ParticleEmitter#setEmitZone}. |
deathZone | Phaser.Types.GameObjects.Particles.DeathZoneObject | Array.<Phaser.Types.GameObjects.Particles.DeathZoneObject> | Yes | As {@link Phaser.GameObjects.Particles.ParticleEmitter#setDeathZone}. |
bounds | Phaser.Types.GameObjects.Particles.ParticleEmitterBounds | Phaser.Types.GameObjects.Particles.ParticleEmitterBoundsAlt | Yes | As {@link Phaser.GameObjects.Particles.ParticleEmitter#setBounds}. |
followOffset | Yes | Offset coordinates that assigns to {@link Phaser.GameObjects.Particles.ParticleEmitter#followOffset}. | |
anim | string | Array.<string> | Phaser.Types.GameObjects.Particles.ParticleEmitterAnimConfig | Yes |
frame | number | Array.<number> | string | Array.<string> |
texture | string | Phaser.Textures.Texture | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#texture}. Overrides any texture already set on the Emitter. |
reserve | number | Yes | Creates specified number of inactive particles and adds them to this emitter's pool. {@link Phaser.GameObjects.Particles.ParticleEmitter#reserve} |
advance | number | Yes | If you wish to 'fast forward' the emitter in time, set this value to a number representing the amount of ms the emitter should advance. Doing so implicitly sets |
duration | number | Yes | Limit the emitter to emit particles for a maximum of |
stopAfter | number | Yes | Limit the emitter to emit this exact number of particles and then stop. Default to zero, meaning no limit. |
sortCallback | Yes | A custom callback that sorts particles prior to rendering. Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#sortCallback}. | |
sortOrderAsc | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#sortOrderAsc}. |
sortProperty | string | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#sortProperty}. |
tintFill | boolean | Yes | Sets {@link Phaser.GameObjects.Particles.ParticleEmitter#tintFill}. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterConfig.js#L1
Since: 3.0.0
ParticleEmitterCreatorConfig
<static> ParticleEmitterCreatorConfig
name | type | optional | description |
---|---|---|---|
key | string | Yes | The key of the Texture this Emitter will use to render particles, as stored in the Texture Manager. |
config | Yes | The Particle Emitter configuration object. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterCreatorConfig.js#L1
Since: 3.60.0
ParticleEmitterDeathZoneConfig
<static> ParticleEmitterDeathZoneConfig
name | type | optional | default | description |
---|---|---|---|---|
source | No | A shape representing the zone. See {@link Phaser.GameObjects.Particles.Zones.DeathZone#source}. | ||
type | string | Yes | "'onEnter'" | 'onEnter' or 'onLeave'. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterDeathZoneConfig.js#L1
Since: 3.0.0
ParticleEmitterEdgeZoneConfig
<static> ParticleEmitterEdgeZoneConfig
name | type | optional | default | description |
---|---|---|---|---|
source | No | A shape representing the zone. See {@link Phaser.GameObjects.Particles.Zones.EdgeZone#source}. | ||
type | string | No | 'edge'. | |
quantity | number | No | The number of particles to place on the source edge. Set to 0 to use | |
stepRate | number | Yes | The distance between each particle. When set, | |
yoyo | boolean | Yes | false | Whether particles are placed from start to end and then end to start. |
seamless | boolean | Yes | true | Whether one endpoint will be removed if it's identical to the other. |
total | number | Yes | 1 | The total number of particles this zone will emit before passing over to the next emission zone in the Emitter. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterEdgeZoneConfig.js#L1
Since: 3.0.0
ParticleEmitterFrameConfig
<static> ParticleEmitterFrameConfig
name | type | optional | description |
---|---|---|---|
frames | Array.<number> | Array.<string> | Array.<Phaser.Textures.Frame> | Yes |
cycle | boolean | Yes | Whether texture frames will be assigned consecutively (true) or at random (false). |
quantity | number | Yes | The number of consecutive particles receiving each texture frame, when |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterFrameConfig.js#L1
Since: 3.0.0
ParticleEmitterOps
<static> ParticleEmitterOps
name | type | optional | description |
---|---|---|---|
accelerationX | No | The accelerationX EmitterOp instance. This is an onEmit and onUpdate operator. | |
accelerationY | No | The accelerationY EmitterOp instance. This is an onEmit and onUpdate operator. | |
alpha | No | The alpha EmitterOp instance. This is an onEmit and onUpdate operator. | |
angle | No | The angle EmitterOp instance. This is an onEmit operator only. | |
bounce | No | The bounce EmitterOp instance. This is an onEmit and onUpdate operator. | |
color | No | The color EmitterColorOp instance. This is an onEmit and onUpdate operator. | |
delay | No | The delay EmitterOp instance. This is an onEmit operator only. | |
hold | No | The hold EmitterOp instance. This is an onEmit operator only. | |
lifespan | No | The lifespan EmitterOp instance. This is an onEmit operator only. | |
maxVelocityX | No | The maxVelocityX EmitterOp instance. This is an onEmit and onUpdate operator. | |
maxVelocityY | No | The maxVelocityY EmitterOp instance. This is an onEmit and onUpdate operator. | |
moveToX | No | The moveToX EmitterOp instance. This is an onEmit and onUpdate operator. | |
moveToY | No | The moveToY EmitterOp instance. This is an onEmit and onUpdate operator. | |
quantity | No | The quantity EmitterOp instance. This is an onEmit operator only. | |
rotate | No | The rotate EmitterOp instance. This is an onEmit and onUpdate operator. | |
scaleX | No | The scaleX EmitterOp instance. This is an onEmit and onUpdate operator. | |
scaleY | No | The scaleY EmitterOp instance. This is an onEmit and onUpdate operator. | |
speedX | No | The speedX EmitterOp instance. This is an onEmit operator only. | |
speedY | No | The speedY EmitterOp instance. This is an onEmit operator only. | |
tint | No | The tint EmitterOp instance. This is an onEmit and onUpdate operator. | |
x | No | The x EmitterOp instance. This is an onEmit and onUpdate operator. | |
y | No | The y EmitterOp instance. This is an onEmit and onUpdate operator. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterOps.js#L1
Since: 3.60.0
ParticleEmitterRandomZoneConfig
<static> ParticleEmitterRandomZoneConfig
name | type | optional | description |
---|---|---|---|
source | No | A shape representing the zone. See {@link Phaser.GameObjects.Particles.Zones.RandomZone#source}. | |
type | string | Yes | 'random'. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleEmitterRandomZoneConfig.js#L1
Since: 3.0.0
ParticleSortCallback
<static> ParticleSortCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/ParticleSortCallback.js#L1
Since: 3.60.0
RandomZoneSource
<static> RandomZoneSource
name | type | optional | description |
---|---|---|---|
getRandomPoint | No | A function modifying its point argument. |
Type: object
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/RandomZoneSource.js#L1
Since: 3.0.0
RandomZoneSourceCallback
<static> RandomZoneSourceCallback
Type: function
Member of: Phaser.Types.GameObjects.Particles
Source: src/gameobjects/particles/typedefs/RandomZoneSourceCallback.js#L1
Since: 3.0.0