Who it is forA developer making a canvas or Phaser game who needs effects with no art pipeline.
The problemHand-drawing frames for every spell and hit takes an artist days.
The outcomeCode-driven effects composited into your game at its own pixel resolution, with no dependencies.
What you need first
- Node.js
- A browser game (canvas, Phaser, PixiJS, Kaplay, three.js) or an engine that reads sprite sheets
- Claude Code for the skill
Steps
- Run
npm i github:patch-gg/pixelfx, or copy src/core and the effects you want - Import createFrame, createFx and composite plus an effect such as
pixelfx/fx/ice/frost-nova - Each tick call fx.update(dt), draw it with "back" behind characters and "front" in front
- Composite into ImageData and scale up with image-rendering: pixelated
Prompt for your agent
Add the pixelfx frost-nova effect to my canvas game at the mage's position, drawn behind and in front of characters as in the README example. Use `npm i github:patch-gg/pixelfx`.
Caveat. This card is written from the patch-gg/pixelfx README, not from a test run by Deduped. Before you start, make sure you have Node.js. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for patch-gg/pixelfx and "Drop a pixel art spell effect into your browser game"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer