bulletPatternsKit.package
README.md
bulletPatternsKit.patterns
The pure, deterministic maths behind every bullet hell pattern. shots(pattern, opts) returns
one volley as plain data, { { angle, speed, delay, ox?, oz? } }: angle in radians in the XZ
plane (0 = +X, pi/2 = +Z), speed in m/s, delay in seconds, and an optional start offset in metres
(walls). No engine calls, no clock, no global random: the same opts give the same shots on every
peer, which is what makes synced volleys possible.
bulletPatternsKit.api calls it to fire; use it directly for previews, AI dodge checks or tests.
shots(pattern, opts),count(pattern, opts),has(name),names(),catalog().rng(seed): a seeded Park-Miller generator,dir(angle),angleTo(x1, z1, x2, z2).
Patterns: aimed, spread, ring, spiral, doubleSpiral, flower, wave, shotgun, cross, wall,
burstRing, sunburst. Every catalog entry carries { name, title, description, tags, defaults }.