Projectile-heavy arcade games (danmaku, bullet hell, bullet heaven / survivor-likes). Bullet pattern design (rings, spirals, fans, aimed bursts, waves combining them), pattern scripting over time, thousands of pooled bullets with fast collision, tiny hitboxes and focus mode, grazing, bombs and lives, readability, performance budgets for phones, and survivor-like auto-attack variants. Use for "b...
Download skill (.zip) Files on GitHubBullet hell development
Core: weave through beautiful, readable patterns of bullets.
Starter template
A playable starter for the game-scaffolding template is in assets/starter/. A boss with three phases of patterns (ring, spiral, aimed fan) from a pattern table, bullets in a fixed typed-array pool, a tiny visible hitbox, focus mode, grazing points, and a free bomb when hit.
python3 <game-scaffolding>/scripts/scaffold.py my-game --title "My Game" --starter <this skill>/assets/starter
Controls: Arrows to move, Shift to focus; auto-fire. Touch: stick plus a focus button. Esc pauses. All numbers to tune are in src/config.js; the gameplay is in src/scenes/play.js.
Boss damage, phase changes and bullet clearing were tested.
Patterns (built from projectile-system)
// emitter scripts run over time; combine primitives
const PATTERNS = {
ring: (e, t) => spread(t * 0.6, 24, Math.PI * 2), // rotating ring
spiral: (e, t) => [t * 4.0, t * 4.0 + Math.PI], // two-arm spiral, call every 0.05 s
fan: (e, t, p) => spread(Math.atan2(p.y - e.y, p.x - e.x), 7, 0.8), // aimed fan
};
// emitter: { pattern, every: 0.08, speed: 160, duration: 4 }; fire = for (const a of PATTERNS[k](e, t, player)) spawnBullet(e, a, speed)
Design waves as a sequence of patterns (2–5 s each) with a gap, getting denser. Mix aimed (forces movement) with static patterns (forces reading paths).
Engine requirements
- Pools of 1,000–5,000 bullets (game-object-pooling), collision only bullet → player (circle vs point: cheap; skip a grid).
- Rendering: Canvas 2D handles ~1–2k simple bullets; more → PixiJS / Phaser / webgl-rendering
spriteBatch(5,000 in one call, tested). - Fixed timestep so patterns are identical every run (and seedable).
Fairness and readability
- Player hitbox 2–4 px, drawn when focusing (slow mode: hold a key / second finger).
- Bullets: bright cores with dark outlines, distinct shapes per pattern; no bullets spawning on top of the player.
- Graze (passing close) gives points or charge, rewarding skill.
- Bombs clear the screen (limited); short invincibility after getting hit.
Survivor-like variant (“bullet heaven”)
The player auto-attacks; you choose upgrades on level-up (level-progression + power-up-system); waves of hundreds of weak
enemies (wave-spawning with maxAlive, spatial grid for collisions, flow-field chasing from pathfinding).
Controls
Touch: relative drag (finger offset from the ship), focus with a second finger or automatic slow when the finger is still.
Pitfalls
Unreadable color soup, frame drops at peak density (profile the worst pattern on a phone), unfair aimed spam, and random patterns that can’t be learned.