andrew-peng-144 / js-explore-game

0 stars 0 forks source link

Particle systemz. #11

Open andrew-peng-144 opened 3 years ago

andrew-peng-144 commented 3 years ago

particle emitter. low memory and cpu usage plz. emitter handles its own particles memory.

andrew-peng-144 commented 3 years ago

Particle has x, y.

ParticleEmitter emits particles and also handles destroying them. Emitter has a list of all the particles it emits, meaning it handles the memory associated, and always should have a maximum. It applies some displacement to each of its particles every frame. Constant val or based on some algorithm.

Look up basic particle effects.

Particles can also have animation? Or are they just flat images/colors? Particles are not entities.