Problem: Visuals upon enemy death are plain; we want juicier effects.
Task:
- Implement a
Particle class in script.js.
- When an enemy is destroyed, spawn 20 small particles that scatter outward and fade out according to basic physics (e.g., velocity, friction, alpha).
Acceptance Criteria:
- Destroyed enemies generate 20 particles each.
- Particles scatter, move, and fade out smoothly.
- All code restricted to
script.js.
Problem: Visuals upon enemy death are plain; we want juicier effects.
Task:
Particleclass inscript.js.Acceptance Criteria:
script.js.