DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to drop a pixel art spell effect into your browser game with Pixelfx

Install the package and draw an effect behind and in front of your characters each frame.

Short answer: Run npm i github:patch-gg/pixelfx, or copy src/core and the effects you want; then 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. All steps.

  • Top pick
  • Games and hobbies
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Cursor

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

  1. Run npm i github:patch-gg/pixelfx, or copy src/core and the effects you want
  2. Import createFrame, createFx and composite plus an effect such as pixelfx/fx/ice/frost-nova
  3. Each tick call fx.update(dt), draw it with "back" behind characters and "front" in front
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer