Fountain Emitter

Upward particle fountain with gravity and per-particle lifetime.

What this code does

- Particles spawn at origin with random angle and upward power.
- Gravity pulls them down; they respawn when life ends or hit ground.
- Additive blending and radial sprite yield a soft water look.

JavaScript (plain)

// Minimal fountain concept
const positions = new Float32Array(3000 * 3)
const velocities = new Float32Array(3000 * 3)
// initialize… then in animate():
// v.y -= gravity * dt; p += v * dt; respawn when p.y < 0