PixiJS Particle Emitter - Texture Random

Texture Random assigns each particles from this emitter a single texture randomly chosen from an array of textures.

You should use a spritesheet for particles. If you use more than one sprite, make sure to use with a regular Container, not a ParticleContainer, as a Particle Container only works with one image.

Enemy sprites originally made for Mini Micro by Joe Strout (2020)

Parameters

Texture Random Behavior Example:

Texture Random Behavior Configuration: – other configuration excluded for brevity

{
  type: 'textureRandom',
  config: {
    textures: [
      "/images/face0.png",
      "/images/face1.png",
      "/images/face2.png",
      "/images/face3.png",
      "/images/face4.png",
      "/images/face5.png",
      "/images/face6.png"
    ]
  }
},

PixiJS Particle Emitter: The Unauthorized Manual