phaser - v4.0.0-rc.4
    Preparing search index...

    A zone that places particles on a shape's edges.

    Index

    Constructors

    • Parameters

      • source: EdgeZoneSource

        An object instance with a getPoints(quantity, stepRate) method returning an array of points.

      • quantity: number

        The number of particles to place on the source edge. Set to 0 to use stepRate instead.

      • OptionalstepRate: number

        The distance between each particle. When set, quantity is implied and should be set to 0.

      • Optionalyoyo: boolean

        Whether particles are placed from start to end and then end to start. Default false.

      • Optionalseamless: boolean

        Whether one endpoint will be removed if it's identical to the other. Default true.

      • Optionaltotal: number

        The total number of particles this zone will emit before passing over to the next emission zone in the Emitter. -1 means it will never pass over and you must use setEmitZone to change it. Default -1.

      Returns EdgeZone

    Properties

    counter: number

    The counter used for iterating the EdgeZone's points.

    points: Math.Vector2[]

    The points placed on the source edge.

    quantity: number

    The number of particles to place on the source edge. Set to 0 to use stepRate instead.

    seamless: boolean

    Whether one endpoint will be removed if it's identical to the other.

    An object instance with a getPoints(quantity, stepRate) method returning an array of points.

    stepRate: number

    The distance between each particle. When set, quantity is implied and should be set to 0.

    total: number

    The total number of particles this zone will emit before the Emitter transfers control over to the next zone in its emission zone list.

    By default this is -1, meaning it will never pass over from this zone to another one. You can call the ParticleEmitter.setEmitZone method to change it, or set this value to something else via the config, or directly at runtime.

    A value of 1 would mean the zones rotate in order, but it can be set to any integer value.

    yoyo: boolean

    Whether particles are placed from start to end and then end to start.

    Methods

    • Get the next point in the Zone and set its coordinates on the given Particle.

      Parameters

      Returns void