summaryrefslogtreecommitdiff
path: root/src/entities/borderParticles.js
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-04-19 16:02:53 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-04-19 16:02:53 -0600
commit58ceff79496f60969eecb28a767b1ea28292becb (patch)
tree3a6acad4d9333aef2e18bb5d073e054926b20340 /src/entities/borderParticles.js
parent9b597426ac45775f63b1fe4365c6fa8f3c3179af (diff)
downloadbbiy-58ceff79496f60969eecb28a767b1ea28292becb.tar.gz
bbiy-58ceff79496f60969eecb28a767b1ea28292becb.zip
Finish rule system; add burn and sink; particle effects on kill, sink
Diffstat (limited to 'src/entities/borderParticles.js')
-rw-r--r--src/entities/borderParticles.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/entities/borderParticles.js b/src/entities/borderParticles.js
index 260071d..e1a7e98 100644
--- a/src/entities/borderParticles.js
+++ b/src/entities/borderParticles.js
@@ -1,4 +1,4 @@
-game.createBorderParticles = () => {
+game.createBorderParticles = (spawnerSpec) => {
const particleSpawner = game.Entity();
const spawnFunction = (particleSpec) => {
switch (Math.floor(Math.random() * 4)) {
@@ -24,7 +24,7 @@ game.createBorderParticles = () => {
particleSpawner.addComponent(game.components.Particles({
spec: {
spawnFunction,
- colors: ["#16f7c9", "#0d6e5a", "#2fa18a", "#48cfb4", "#58877d", "#178054", "#2cdb92"],
+ colors: ["#666666", "#777777", "#888888", "#999999"],
maxSpeed: 0.20,
minRadius: 1,
maxRadius: 3,
@@ -32,6 +32,7 @@ game.createBorderParticles = () => {
maxLife: 300,
minAmount: 20,
maxAmount: 50,
+ ...spawnerSpec,
}
}));
particleSpawner.addComponent(game.components.LoadPriority({priority: 1}));