pixelfx

A code-driven effects library for game developers who want hits with windup, impact and recovery

244 pixel art effects, every one a small piece of code. Plus a Claude Code skill to make your own.

Category
Media & creative
Audience
Developers
Language
JavaScript
Licence
MIT

Updated

Pixelfx is a JavaScript library of 244 pixel art effects and animations in which every effect is a small piece of code drawn to a canvas, not a hand-painted sprite sheet. It is aimed at game developers and technical artists who need fire, explosions, weather, magic, pickups and hit reactions for a browser game or for an engine that can take sprite sheets, and who would rather change numbers in a file than repaint frames. The repository also ships a Claude Code skill that writes new effects in the same style, so it is both a finished asset library and a way to keep adding to it.

What it does

The count of 244 effects is the project's own figure, kept in its README. They are grouped into categories, and the groups the README shows hold twelve entries each: moves, fire, explosions and water, with magic, weather, UI, pickups and critters named as further groups. The full list lives in docs/CATALOG.md.

The part the project pushes hardest is acting. Every effect that involves a character is played out as a performance: he winds up, lets go, freezes on contact and recovers, and a target takes the hit. Twelve "moves" chain individual effects into complete attacks from wind-up to recovery, among them arrow shot, dash strike, earth stomp, fireball throw, ground pound and holy smite. That is the project's answer to the complaint in its own pitch, that most pixel art hits read like stickers pasted on the screen.

A hosted gallery at patch-gg.github.io/pixelfx plays the effects live. From there you can recolor and mirror them and export sprite sheets for any engine, or drop the code straight into a browser game.

How it works

Each effect is a short program that simulates particles and draws them frame by frame, which is why recoloring, mirroring and retiming are parameter changes rather than redraws. A shared core in src/core/sim.js does the simulation work.

The approach is credited rather than claimed. It follows Hugo Duprez's write-up "How to make (good) pixel art effects with Claude" at Sprite Fusion, summarised by the repo as: code is clay, trust your eyes, feed your references. The README says src/core/sim.js and the effects that mark it at the top adapt Duprez's code, and that his open-source effects at Sprite Fusion set the bar. Pixelfx calls itself the same idea at library scale.

The Claude Code skill applies that loop: it drafts an effect, renders it, looks at the result, then refines until the animation lands. It is the authors' own hand process, packaged.

Getting started

The repository is at github.com/patch-gg/pixelfx under the MIT license, and the code is plain JavaScript, so the gallery and the effects run in an ordinary browser. The project does not list operating system, GPU or memory requirements, and the material here names no install command and no release downloads: you clone the repo, use the hosted gallery or open it locally, and copy out the effects you want.

Costs split in two. The 244 effects are free: MIT code with no service behind it. Generating new effects is not, because it runs through Claude Code, Anthropic's coding tool, which needs its own paid account or API access; the repo does not discuss that cost. If you only want the existing effects, you never touch a model.

When to use it / when not

The main catch is exactly that split. The library is self-contained, but the thing that makes it expandable is tied to one vendor's tool. Without Claude Code you have 244 effects plus whatever you edit by hand, which is a lot, but not the growing library the pitch describes.

The second thing to weigh is age. The project was created at the end of October 2026 and has a single day of pushes recorded here, against 5.7k stars and roughly 750 forks on GitHub. Fast attention, very little track record.

Use it instead of a bought pixel art VFX pack when you want effects you can retime, recolor and rescale in code and you are shipping to the browser. Don't use it if your pipeline expects hand-authored frames from an artist and nobody on the team will open a JavaScript file.

Alternatives

Hugo Duprez's open-source effects at Sprite Fusion are the obvious comparison, and the README points straight at them: smaller in count, and the source of the method. For new effects, the alternative to the skill is asking Claude yourself with that blog post's approach in the prompt. Against a commercial sprite pack, pixelfx trades drawn polish for parameters.

Take this repository seriously if you are building a 2D action game in JavaScript and your hits feel weightless. The acting work (wind-up, contact freeze, recovery, across twelve chained moves) is the unusual part, and it is the part a sprite pack will not hand you. Treat the Claude Code skill as a bonus rather than the reason to adopt it: judge pixelfx on the 244 effects you get for nothing, and on whether you will read a little JavaScript to make them your own.

More in Media & creative

All of Media & creative →