MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / createParticleCollection

Function createParticleCollection

js/script.js:2075–2081  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2073// Helper to generate objects for storing active particles.
2074// Particles are stored in arrays keyed by color (code, not name) for improved rendering performance.
2075function createParticleCollection() {
2076 const collection = {};
2077 COLOR_CODES_W_INVIS.forEach((color) => {
2078 collection[color] = [];
2079 });
2080 return collection;
2081}
2082
2083// Star properties (WIP)
2084// -----------------------

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected