particles

Generate and control Phaser 4 particle effects with emitters, zones, and gravity wells.

40.1k|7.2k|Updated Apr 12, 2013
One-click install
npx skills add https://github.com/phaserjs/phaser --skill particles-phaserjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: particles
Source: https://github.com/phaserjs/phaser/tree/main/skills/particles
Command: npx skills add https://github.com/phaserjs/phaser --skill particles-phaserjs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps developers design and manage particle systems in Phaser 4, enabling rich visual effects with minimal low-level coding.

Core Features & Use Cases

  • Provides ParticleEmitter creation and configuration, including flow and explode modes
  • Supports emission zones, death zones, gravity wells, color/tint, lifespans, and per-particle callbacks
  • Allows custom particle classes and processors, and optional follow and bounds features for complex scenes

Quick Start

Create a basic particle emitter in a scene with this.add.particles and customize its texture, lifespan, and emission rate.

Frequently Asked Questions about particles

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create particle effects in Phaser 4?

To create particle effects in Phaser 4, use this.add.particles to instantiate a ParticleEmitter, then configure its texture, lifespan, and emission rate to generate visual bursts or continuous flows.

What is a particle emitter and how does it work in game development?

A particle emitter is a mechanism that generates and controls particle effects, spawning visual sprites across textures and frames using explode or continuous flow modes to provide rich visual feedback.

Can I apply gravity wells and emission zones to Phaser particle effects?

Yes, Phaser particle effects support gravity wells to alter particle trajectories, alongside emission zones and death zones for spatial control over where particles spawn and expire.

How do I customize individual particles in a Phaser 4 emitter?

You can customize particles by defining per-particle callbacks, applying color and tint values, setting specific lifespans, or extending the system with custom particle classes and processors.

Does Phaser 4 support custom particle classes for complex game scenes?

Yes, Phaser 4 supports custom particle classes and processors, and includes optional follow and bounds features tailored for managing complex particle systems within dynamic game scenes.

What is the difference between flow and explode modes for particle emission?

Flow mode continuously releases particles at a set rate, while explode mode generates a sudden burst of particles, both configurable within the Phaser 4 ParticleEmitter for distinct visual effects.