Fireflies Pixel Art VFX
Grass swaying, fireflies drifting and blinking, a few close ones lighting up the scene. A loop filling any area.
Use it with your AI agent
Download this effect's ZIP, or to give your agent (Claude, Codex, Cursor...) the full library of pixel art effects. Then have it fill your night levels, set how many fly close to the camera, or drop the grass if your tiles have some.
Claude/Codex
You
Use fireflies.ts from Sprite Fusion's pixel art VFX to add fireflies to my night levels.
Claude
I used fireflies.ts as a reference to implement fireflies in your game.
In your code
import fireflies from "./fireflies";
const frame = { w: 320, h: 180, ox: 0, oy: 0, color: new Uint32Array(320 * 180), light: new Uint32Array(320 * 180) };
const fx = fireflies({ area: { x: 0, y: 0, w: 640, h: 360 } });
fx.update(1 / 60);
frame.color.fill(0);
frame.light.fill(0);
fx.draw(frame, "back");
fx.draw(frame, "front");
if (fx.done()) remove(fx);