Skip to main content
Version: Phaser v3.88.2

Phaser.Types.GameObjects.Particles

Scope: static

Source: src/gameobjects/particles/typedefs/index.js#L7

Static functions​

DeathZoneObject​

DeathZoneObject​

Source: src/gameobjects/particles/typedefs/DeathZoneObject.js#L1
Since: 3.60.0


DeathZoneSource​

DeathZoneSource​

Source: src/gameobjects/particles/typedefs/DeathZoneSource.js#L1
Since: 3.0.0


DeathZoneSourceCallback​

DeathZoneSourceCallback​

Parameters:

nametypeoptionaldescription
xnumberNoThe x coordinate of the particle to check against this source area.
ynumberNoThe y coordinate of the particle to check against this source area.

Returns: boolean - - True if the coordinates are within the source area.

Source: src/gameobjects/particles/typedefs/DeathZoneSourceCallback.js#L1
Since: 3.0.0


EdgeZoneSource​

EdgeZoneSource​

Source: src/gameobjects/particles/typedefs/EdgeZoneSource.js#L1
Since: 3.0.0


EdgeZoneSourceCallback​

EdgeZoneSourceCallback​

Parameters:

nametypeoptionaldescription
quantitynumberNoThe number of particles to place on the source edge. If 0, stepRate should be used instead.
stepRatenumberYesThe distance between each particle. When set, quantity is implied and should be set to 0.

Returns: Array.<Phaser.Types.Math.Vector2Like> - - The points placed on the source edge.

Source: src/gameobjects/particles/typedefs/EdgeZoneSourceCallback.js#L1
Since: 3.0.0


EmitterOpCustomEmitConfig​

EmitterOpCustomEmitConfig​

Source: src/gameobjects/particles/typedefs/EmitterOpCustomEmitConfig.js#L1
Since: 3.0.0


EmitterOpCustomUpdateConfig​

EmitterOpCustomUpdateConfig​

Source: src/gameobjects/particles/typedefs/EmitterOpCustomUpdateConfig.js#L1
Since: 3.0.0


EmitterOpEaseConfig​

EmitterOpEaseConfig​

Description:

Defines an operation yielding a value incremented continuously across a range.

Source: src/gameobjects/particles/typedefs/EmitterOpEaseConfig.js#L1
Since: 3.0.0


EmitterOpInterpolationConfig​

EmitterOpInterpolationConfig​

Description:

Defines an operation yielding a value incremented continuously across an interpolated data set.

Source: src/gameobjects/particles/typedefs/EmitterOpInterpolationConfig.js#L1
Since: 3.60.0


EmitterOpOnEmitCallback​

EmitterOpOnEmitCallback​

Description:

The returned value sets what the property will be at the START of the particle's life, on emit.

Parameters:

nametypeoptionaldescription
particlePhaser.GameObjects.Particles.ParticleYesThe particle.
keystringYesThe name of the property.
valuenumberYesThe current value of the property.

Returns: number - The new value of the property.

Source: src/gameobjects/particles/typedefs/EmitterOpOnEmitCallback.js#L1
Since: 3.0.0


EmitterOpOnEmitType​

EmitterOpOnEmitType​

Source: src/gameobjects/particles/typedefs/EmitterOpOnEmitType.js#L1
Since: 3.18.0


EmitterOpOnUpdateCallback​

EmitterOpOnUpdateCallback​

Description:

The returned value updates the property for the duration of the particle's life.

Parameters:

nametypeoptionaldescription
particlePhaser.GameObjects.Particles.ParticleNoThe particle.
keystringNoThe name of the property.
tnumberNoThe normalized lifetime of the particle, between 0 (start) and 1 (end).
valuenumberNoThe current value of the property.

Returns: number - The new value of the property.

Source: src/gameobjects/particles/typedefs/EmitterOpOnUpdateCallback.js#L1
Since: 3.0.0


EmitterOpOnUpdateType​

EmitterOpOnUpdateType​

Source: src/gameobjects/particles/typedefs/EmitterOpOnUpdateType.js#L1
Since: 3.18.0


EmitterOpRandomConfig​

EmitterOpRandomConfig​

Description:

Defines an operation yielding a random value within a range.

Source: src/gameobjects/particles/typedefs/EmitterOpRandomConfig.js#L1
Since: 3.0.0


EmitterOpRandomMinMaxConfig​

EmitterOpRandomMinMaxConfig​

Description:

Defines an operation yielding a random value within a range.

Source: src/gameobjects/particles/typedefs/EmitterOpRandomMinMaxConfig.js#L1
Since: 3.0.0


EmitterOpSteppedConfig​

EmitterOpSteppedConfig​

Description:

Defines an operation yielding a value incremented by steps across a range.

Source: src/gameobjects/particles/typedefs/EmitterOpSteppedConfig.js#L1
Since: 3.0.0


EmitZoneData​

EmitZoneData​

Source: src/gameobjects/particles/typedefs/EmitZoneData.js#L1
Since: 3.60.0


EmitZoneObject​

EmitZoneObject​

Source: src/gameobjects/particles/typedefs/EmitZoneObject.js#L1
Since: 3.60.0


GravityWellConfig​

GravityWellConfig​

Source: src/gameobjects/particles/typedefs/GravityWellConfig.js#L1
Since: 3.0.0


ParticleClassConstructor​

ParticleClassConstructor​

Parameters:

nametypeoptionaldescription
emitterPhaser.GameObjects.Particles.ParticleEmitterNoThe Emitter to which this Particle belongs.

Source: src/gameobjects/particles/typedefs/ParticleClassConstructor.js#L1
Since: 3.0.0


ParticleData​

ParticleData​

Source: src/gameobjects/particles/typedefs/ParticleData.js#L1
Since: 3.60.0


ParticleDataValue​

ParticleDataValue​

Source: src/gameobjects/particles/typedefs/ParticleDataValue.js#L1
Since: 3.60.0


ParticleDeathCallback​

ParticleDeathCallback​

Parameters:

nametypeoptionaldescription
particlePhaser.GameObjects.Particles.ParticleNoThe particle that died.

Source: src/gameobjects/particles/typedefs/ParticleDeathCallback.js#L1
Since: 3.0.0


ParticleEmitterAnimConfig​

ParticleEmitterAnimConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterAnimConfig.js#L1
Since: 3.60.0


ParticleEmitterBounds​

ParticleEmitterBounds​

Source: src/gameobjects/particles/typedefs/ParticleEmitterBounds.js#L1
Since: 3.0.0


ParticleEmitterBoundsAlt​

ParticleEmitterBoundsAlt​

Source: src/gameobjects/particles/typedefs/ParticleEmitterBoundsAlt.js#L1
Since: 3.0.0


ParticleEmitterCallback​

ParticleEmitterCallback​

Parameters:

nametypeoptionaldescription
particlePhaser.GameObjects.Particles.ParticleNoThe particle associated with the call.
emitterPhaser.GameObjects.Particles.ParticleEmitterNoThis particle emitter associated with the call.

Source: src/gameobjects/particles/typedefs/ParticleEmitterCallback.js#L1
Since: 3.0.0


ParticleEmitterConfig​

ParticleEmitterConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterConfig.js#L1
Since: 3.0.0


ParticleEmitterCreatorConfig​

ParticleEmitterCreatorConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterCreatorConfig.js#L1
Since: 3.60.0


ParticleEmitterDeathZoneConfig​

ParticleEmitterDeathZoneConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterDeathZoneConfig.js#L1
Since: 3.0.0


ParticleEmitterEdgeZoneConfig​

ParticleEmitterEdgeZoneConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterEdgeZoneConfig.js#L1
Since: 3.0.0


ParticleEmitterFrameConfig​

ParticleEmitterFrameConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterFrameConfig.js#L1
Since: 3.0.0


ParticleEmitterOps​

ParticleEmitterOps​

Source: src/gameobjects/particles/typedefs/ParticleEmitterOps.js#L1
Since: 3.60.0


ParticleEmitterRandomZoneConfig​

ParticleEmitterRandomZoneConfig​

Source: src/gameobjects/particles/typedefs/ParticleEmitterRandomZoneConfig.js#L1
Since: 3.0.0


ParticleSortCallback​

ParticleSortCallback​

Parameters:

nametypeoptionaldescription
aPhaser.GameObjects.Particles.ParticleNoThe first Particle being compared.
bPhaser.GameObjects.Particles.ParticleNoThe second Particle being compared.

Source: src/gameobjects/particles/typedefs/ParticleSortCallback.js#L1
Since: 3.60.0


RandomZoneSource​

RandomZoneSource​

Source: src/gameobjects/particles/typedefs/RandomZoneSource.js#L1
Since: 3.0.0


RandomZoneSourceCallback​

RandomZoneSourceCallback​

Parameters:

nametypeoptionaldescription
pointPhaser.Types.Math.Vector2LikeNoA point to modify.

Source: src/gameobjects/particles/typedefs/RandomZoneSourceCallback.js#L1
Since: 3.0.0