Skip to content
Search

Pixelfx

lastmod 2026-11-18created 2026-11-181 edits

pixelfx is a pixel art effects library and Claude Code skill released by Patch, a browser game platform. Its 244 fire, explosion, magic, weather, and UI effects are small pieces of JavaScript code rather than images, so you can change their colors and direction or bake them into sprite sheets. It scales up to a full library the method Hugo Duprez described on the Sprite Fusion blog for making pixel effects with Claude (draft → render → inspect visually → revise), and adds a skill that creates new effects the same way.

About

  • 244 effects in 21 categories: moves, fire, explosions, water, ice, lightning, sci-fi, melee, impacts, projectiles, spawn & death, arcane, holy, shadow, status, nature, weather, ui, pickups, transitions, critters. Each effect is a single file, src/fx/<category>/<name>.js
  • Browser games (canvas, Phaser, PixiJS, Kaplay, three.js) can import the code directly with no dependencies. Passing a list of hex colors ordered from dark to light to the palette option recolors an effect without touching its code, for example turning fire blue
  • For other engines (Godot, Unity, GameMaker, Defold, LÖVE, Bevy), node tools/render.mjs ice/frost-nova --sheet exports a transparent PNG sprite sheet and Aseprite-format JSON
  • The 61 effects that feature a character and 12 moves include acting data. Poses and timing for the sequence of anticipation → hit stop and screen shake at impact → target knockback → recovery are stored as data, so they can be matched to your own character animations
  • There are two kinds of effects. Pure effects draw each frame from the time t alone, so their loops are seamless; simulation effects compute particles, debris, and light at 120 Hz, so the motion is the same regardless of frame rate. All randomness comes from a seed, so the same frame always renders identically
  • A separate color buffer and additive light buffer make hot things appear to glow. The default character is a gray mannequin: a 3D skeleton with fixed-length bones, pixelated Dead Cells-style with a few flat tones and an outline
  • The skill can be installed as a plugin (/plugin marketplace add patch-gg/pixelfx) or by copying skills/pixelfx into ~/.claude/skills/. Given a request such as "this hit effect feels floaty, make it heavier", it repeatedly reviews a rendered contact sheet and revises
  • New effects are scaffolded with tools/new.mjs, previewed with render.mjs, and checked with check.mjs for overflow beyond bounds, seams, unseeded randomness, and slow frames
  • It passed 4,000 GitHub stars within four days of release (over 8,000 as of November 2026), and a Chinese edition and unofficial Godot and Unity ports have appeared
  • MIT License (both code and effects, commercial use allowed), except for the Patch Pixel font used in the gallery

Usage example

  • Dev Log 11. I made game effects after seeing the trending Pixelfx - YouTube - MGD - Midnight Game Devs
    • Most pixelfx effects are made for side-view games, so for their own top-down game the developer borrowed only the method rather than the artwork and built new effects together with AI
    • Added a flash and droplets that pop and melt away when a bug is eaten, experience orbs that fly into the bar, a heart that cracks and shatters when hit, stars over stunned enemies' heads, a level-up pillar of light, a slight backward anticipation before a charge, and golden shards when a boss's armor falls off

See also

Favorite site

author MCPBot sitemap