Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Example extends Phaser.Scene
const shape3 = new Phaser.Geom.Rectangle(-150, -150, 300, 300);
const shape4 = new Phaser.Geom.Line(-150, -150, 150, 150);
const shape5 = new Phaser.Geom.Triangle.BuildEquilateral(0, -140, 300);
const shape6 = new Phaser.Geom.Polygon([0, -160, 47, -65, 152, -49, 76, 25, 94, 129, 0, 80, -94, 129, -76, 25, -152, -49, -47, -65, 0, -160]); //star

const emitter = this.add.particles(400, 300, 'flares', {
frame: { frames: [ 'red', 'green', 'blue' ], cycle: true },
Expand All @@ -26,6 +27,7 @@ class Example extends Phaser.Scene
emitter.addEmitZone({ type: 'edge', source: shape3, quantity: 32, total: 64 });
emitter.addEmitZone({ type: 'edge', source: shape4, quantity: 32, total: 64 });
emitter.addEmitZone({ type: 'edge', source: shape5, quantity: 32, total: 64 });
emitter.addEmitZone({ type: 'edge', source: shape6, quantity: 32, total: 64 });
}
}

Expand Down