{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "patch-gg-pixelfx--drop-pixel-effects-into-a-browser-game",
 "repo": "patch-gg/pixelfx",
 "repo_url": "https://github.com/patch-gg/pixelfx",
 "repo_slug": "patch-gg-pixelfx",
 "title": "Drop a pixel art spell effect into your browser game",
 "page_title": "How to drop a pixel art spell effect into your browser game with Pixelfx",
 "summary": "Install the package and draw an effect behind and in front of your characters each frame.",
 "who": "A developer making a canvas or Phaser game who needs effects with no art pipeline.",
 "problem": "Hand-drawing frames for every spell and hit takes an artist days.",
 "outcome": "Code-driven effects composited into your game at its own pixel resolution, with no dependencies.",
 "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"
 ],
 "agent_prompt": "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`.",
 "agents": [
  "claude-code",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "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.",
 "category": "Games and hobbies",
 "tags": [
  "Games and hobbies"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js",
  "A browser game (canvas, Phaser, PixiJS, Kaplay, three.js) or an engine that reads sprite sheets",
  "Claude Code for the skill"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/patch-gg-pixelfx/drop-pixel-effects-into-a-browser-game/",
 "md": "https://dedupedai.com/use-cases/patch-gg-pixelfx/drop-pixel-effects-into-a-browser-game/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/patch-gg-pixelfx--drop-pixel-effects-into-a-browser-game.json",
 "api_version": "v1"
}
