PARTICLE_PARAMS
Since 0.6
The preset table.
Values are the defaults; a call site overrides what it cares about.
Signature
export const PARTICLE_PARAMS: Readonly<Record<ParticlePreset, ParticleParams>> = {
smoke: {
rate: 12, burst: 0, lifetime: [2.4, 4], speed: [0.4, 0.9], size: [0.4, 2.2],
color: "#6e6e6e", colorEnd: "#2b2b2b", opacity: [0.5, 0], gravity: -0.4, drag: 0.5,
spreadDeg: 18, direction: UP, blend: "alpha", spin: 0.3, maxParticles: 400,
},
fire: {
rate: 40, burst: 0, lifetime: [0.4, 0.9], speed: [1, 2.2], size: [0.5, 0.1],
color: "#ffd27a", colorEnd: "#c2350a", opacity: [1, 0], gravity: -2.5, drag: 0.8,
spreadDeg: 12, direction: UP, blend: "additive", spin: 0.6, maxParticles: 600,
},
sparks: {
rate: 0, burst: 24, lifetime: [0.25, 0.7], speed: [3, 7], size: [0.06, 0.01],
color: "#fff3c4", colorEnd: "#ff8a1f", opacity: [1, 0], gravity: 9.8, drag: 0.2,
spreadDeg: 55, direction: UP, blend: "additive", spin: 0, maxParticles: 300,
},
dust: {
rate: 18, burst: 0, lifetime: [1.2, 2.6], speed: [0.2, 0.7], size: [0.2, 0.8],
color: "#c8b89a", colorEnd: "#9c8e76", opacity: [0.35, 0], gravity: 0.2, drag: 0.7,
spreadDeg: 70, direction: UP, blend: "alpha", spin: 0.15, maxParticles: 350,
},
steam: {
rate: 22, burst: 0, lifetime: [1.4, 2.6], speed: [0.8, 1.6], size: [0.25, 1.4],
color: "#ffffff", colorEnd: "#dfe6ea", opacity: [0.4, 0], gravity: -1.2, drag: 0.6,
spreadDeg: 14, direction: UP, blend: "alpha", spin: 0.2, maxParticles: 400,
},
drips: {
rate: 3, burst: 0, lifetime: [1.2, 2], speed: [0.05, 0.3], size: [0.05, 0.04],
color: "#9fd4ff", colorEnd: "#5b9fd6", opacity: [0.85, 0.5], gravity: 9.8, drag: 0,
spreadDeg: 4, direction: DOWN, blend: "alpha", spin: 0, maxParticles: 60,
},
debris: {
rate: 0, burst: 18, lifetime: [1, 2.4], speed: [2, 5], size: [0.12, 0.1],
color: "#8a7a68", colorEnd: "#5a4f45", opacity: [1, 0.8], gravity: 9.8, drag: 0.1,
spreadDeg: 65, direction: UP, blend: "alpha", spin: 4, maxParticles: 200,
},
glow: {
rate: 8, burst: 0, lifetime: [1.6, 3], speed: [0.1, 0.4], size: [0.3, 0.5],
color: "#8fe3ff", colorEnd: "#2d7bd6", opacity: [0.8, 0], gravity: -0.1, drag: 0.9,
spreadDeg: 180, direction: UP, blend: "additive", spin: 0, maxParticles: 150,
},
}
Import: import { PARTICLE_PARAMS } from "@argus/gameplay"