Logo
Background pixel art cave illustration

Muzzle Flash Pixel Art VFX

Muzzle Flash pixel art effect: Burst

A shot's star and jet with a white-hot core and a dark rim, hot sparks, smoke curling off the barrel, and a casing tumbling out to lie on the ground. One call per shot.

Category

Combat

Dependencies

None

License

MIT, free for commercial use

Connect your AI agent

Get the full context on these effects, and create the pixel art your game needs.

Claude Code

claude mcp add --transport http spritefusion https://www.spritefusion.com/mcp

Codex

codex mcp add spritefusion --url https://www.spritefusion.com/mcp
codex mcp login spritefusion

Claude, Cursor, VS Code, ChatGPT or another agent? See the MCP docs.

Download ZIP

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 scale the flash for each gun, drop the casings for energy weapons, or turn the smoke off for rapid fire.

Claude/Codex

You

Use muzzle-flash.ts from Sprite Fusion's pixel art VFX on my SMG: a flash at the barrel on every shot, casings flying out.

Claude

I used muzzle-flash.ts as a reference to implement muzzle flash in your game.

Muzzle Flash pixel art effect playing in a game

Connect your AI agent

Get the full context on these effects, and create the pixel art your game needs.

Claude Code

claude mcp add --transport http spritefusion https://www.spritefusion.com/mcp

Codex

codex mcp add spritefusion --url https://www.spritefusion.com/mcp
codex mcp login spritefusion

Claude, Cursor, VS Code, ChatGPT or another agent? See the MCP docs.

In your code

import muzzleFlash from "./muzzle-flash";

const frame = { w: 320, h: 180, ox: 0, oy: 0, color: new Uint32Array(320 * 180), light: new Uint32Array(320 * 180) };
const fx = muzzleFlash({ x: 320, y: 240, angle: 0, ground: 300 });

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);

More pixel art VFX