What problem does it solve?
This Skill addresses the complexity of creating and managing particle effects in Phaser 4, offering a straightforward approach to generate engaging visual effects without needing to delve deeply into the game engine's API.
Core Features & Use Cases
- Particle Emitter Configuration: Create and configure Particle Emitter instances with detailed control over properties such as speed, scale, lifespan, and alpha.
- Customization: Adjust particle properties, including texture, gravity wells, emission zones, and more, to create custom effects.
- Use Case: If you are developing a game in Phaser 4 and require particle effects like explosions, smoke, or fire, this skill can help you generate them efficiently.
Quick Start
Add a basic continuous emitter at position (400, 300) with red flares, speed 200, and lifespan 2000. To use: <code>add particles(400, 300, 'flares', { frame: 'red', speed: 200, lifespan: 2000, scale: { start: 1, end: 0 }, alpha: { start: 1, end: 0 }, gravityY: 150 });</code>