Falling Leaves Pixel Art VFX
Leaves of several shapes falling like pendulums onto a litter on the ground, in autumn colours or your own. 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 recolour the leaves for each season, slow their drift, or let them pile up on your ground.
Claude/Codex
You
Use falling-leaves.ts from Sprite Fusion's pixel art VFX to add falling leaves to my autumn levels.
Claude
I used falling-leaves.ts as a reference to implement falling leaves in your game.
In your code
import fallingLeaves from "./falling-leaves";
const frame = { w: 320, h: 180, ox: 0, oy: 0, color: new Uint32Array(320 * 180), light: new Uint32Array(320 * 180) };
const fx = fallingLeaves({ 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);