[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110587":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":14,"starSnapshotCount":14,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},110587,"pixelfx-zh","bayshier\u002Fpixelfx-zh","bayshier","pixelfx 中文版：244 种代码实时生成的顶级游戏像素特效（爆炸\u002F闪电\u002F魔法\u002F连招），MIT 可商用，附 Claude Code 特效师 Skill，汉化自 patch-gg\u002Fpixelfx",null,"JavaScript",116,14,1,0,5,20,64,19,69.84,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32],"agent-skills","chinese","claude","game-effects","pixel-art","threejs","translation","vfx","2026-11-01 07:10:03","2026-11-23 14:56:24","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Freadme\u002Fmontage.gif\" width=\"800\" alt=\"A grid of pixel art effects playing at once: a campfire, a burning skull, a waterfall, a plasma ball, a portal, a tornado and more.\">\n\u003C\u002Fp>\n\n# pixelfx.\n\n\u003Cp align=\"center\">\u003Ca href=\"README.zh.md\">📘 简体中文版说明\u003C\u002Fa>\u003C\u002Fp>\n\n**\u003C!-- count -->244\u003C!-- \u002Fcount --> pixel art effects and animations, every one a small piece of code.** Fire,\nexplosions, magic, weather, UI, pickups, critters and more. Play them live, recolor and mirror them, drop them into\na browser game, or export sprite sheets for any engine. Plus a Claude Code skill that makes new ones the way a\npicky pixel artist would: draft, render, look, refine.\n\nEvery effect that involves a character is **acted out**: he winds up, lets go, freezes on contact and recovers, and a\ntarget takes the hit. Twelve whole moves chain the effects into attacks from wind-up to recovery.\n\n**[open the gallery](https:\u002F\u002Fpatch-gg.github.io\u002Fpixelfx\u002F)** · [catalog](docs\u002FCATALOG.md) · [acting](#acting) ·\n[the skill](#the-skill) · [make your own](#make-your-own) · [how it works](#how-it-works)\n\nThe method is [Hugo Duprez](https:\u002F\u002Fx.com\u002FHugoDuprez)'s, from [How to make (good) pixel art effects with\nClaude](https:\u002F\u002Fwww.spritefusion.com\u002Fblog\u002Fhow-to-make-good-pixel-art-effects-with-claude): code is clay, trust your\neyes, feed your references. His [open-source effects](https:\u002F\u002Fwww.spritefusion.com\u002Fpixel-art-vfx) at Sprite Fusion\nset the bar, and `src\u002Fcore\u002Fsim.js` and the effects that say so at the top adapt his code. This repo is our take on\nthe idea at library scale, with a skill to keep going.\n\n## what's in it.\n\n\u003C!-- catalog -->\n| category | effects | some of them |\n|---|---|---|\n| **moves** | 12 | arrow shot, dash strike, earth stomp, fireball throw, ground pound, holy smite… |\n| **fire** | 12 | brazier, campfire, candle, fire breath, fire ring, fire tornado… |\n| **explosions** | 12 | barrel explosion, big explosion, cartoon pow, dirt explosion, firework burst, firework rocket… |\n| **water** | 12 | bubbles, drip, fountain, geyser, rain splash, ripples… |\n| **ice** | 10 | blizzard vortex, freeze, frost breath, frost nova, ice crystal, ice lance… |\n| **lightning** | 11 | ball lightning, chain lightning, charge up, electrified, lightning strike, plasma ball… |\n| **sci-fi** | 12 | emp blast, energy core, force field, glitch, hologram, jetpack… |\n| **melee** | 12 | claw swipe, dagger flurry, double slash, hammer smash, heavy cleave, scythe reap… |\n| **impacts** | 11 | blunt hit, bullet impact, critical hit, ground slam, heavy landing, hit flash… |\n| **projectiles** | 13 | arrow, bullet tracer, cannon shot, energy disc, signal flare, homing missile… |\n| **spawn & death** | 10 | coin drop, disintegrate, dissolve burn, egg hatch, poof, respawn beam… |\n| **arcane** | 12 | arcane beam, arcane missiles, arcane orb, blink in, blink out, magic circle cast… |\n| **holy** | 10 | blessing, divine shield, feather burst, halo, heal, healing ring… |\n| **shadow** | 12 | black hole, curse, dark explosion, eclipse, grasping hands, hex sigil… |\n| **status** | 13 | bleeding, burning, charmed, confused, cursed, frozen… |\n| **nature** | 13 | acid splash, boulder, earth spike, healing bloom, leaf storm, poison cloud… |\n| **weather** | 12 | aurora, blizzard, cherry blossoms, clouds, falling leaves, fireflies… |\n| **ui** | 12 | achievement, coin collect, combo counter, confetti, countdown, crit number… |\n| **pickups** | 11 | chest open, coin spin, collect burst, crystal shard, gem spin, heart pickup… |\n| **transitions** | 10 | blinds, burn away, crt off, diamond wipe, glitch wipe, iris… |\n| **critters** | 12 | bat, bird, butterfly, eyeball, fish school, flying skull… |\n\u003C!-- \u002Fcatalog -->\n\nEvery effect is a file in `src\u002Ffx\u002F\u003Ccategory>\u002F\u003Cname>.js`. The [catalog](docs\u002FCATALOG.md) lists them all.\n\n## use one.\n\n**In a browser game** (canvas, Phaser, PixiJS, Kaplay, three.js), use the code. No dependencies.\n\n```js\nimport { createFrame, clearFrame, createFx, composite } from \"pixelfx\";\nimport * as frostNova from \"pixelfx\u002Ffx\u002Fice\u002Ffrost-nova\";\n\nconst frame = createFrame(320, 180);                   \u002F\u002F your game's pixel resolution\nconst img = new ImageData(320, 180);\nconst fx = createFx(frostNova, { x: 160, y: 140 });   \u002F\u002F also: flip, angle, seed, palette, light...\n\nfunction tick(dt) {\n  fx.update(dt);\n  clearFrame(frame);\n  fx.draw(frame, \"back\");                              \u002F\u002F behind characters\n  drawCharacters();\n  fx.draw(frame, \"front\");\n  composite(frame, img.data, backgroundColor);         \u002F\u002F color, then light added on top\n  ctx.putImageData(img, 0, 0);                         \u002F\u002F scale up with image-rendering: pixelated\n}\n```\n\nInstall from GitHub with `npm i github:patch-gg\u002Fpixelfx`, or copy `src\u002Fcore` and the effects you want.\n\n**In any engine** (Godot, Unity, GameMaker, Defold, LÖVE, Bevy), use sprite sheets:\n\n```bash\nnode tools\u002Frender.mjs ice\u002Ffrost-nova --sheet\n```\n\nThat writes a transparent PNG of every frame in a grid and an Aseprite-style JSON (frame rects, durations, and\n`meta.pixelfx` with fps, loop, columns and the pivot). Phaser's atlas loader and the Aseprite importers for Godot\nand Unity read it. `node tools\u002Fsheets.mjs` exports the whole library to `sheets\u002F`.\n\nAny effect takes a `palette` (a dark-to-bright ramp of hex colors), so a fire can burn blue and a heal can glow\npink without touching its code:\n\n```bash\nnode tools\u002Frender.mjs fire\u002Ftorch --gif --opts '{\"palette\": [\"#102\",\"#215\",\"#43a\",\"#8cf\",\"#cff\",\"#fff\"]}'\n```\n\n## acting.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Freadme\u002Facts.gif\" width=\"800\" alt=\"A grey dummy fighting a straw target: a three-stroke sword combo, a hammer smash, a ground pound, a holy smite, a frost nova and a run with after-images, each with a wind-up, a freeze on contact and a recovery.\">\n\u003C\u002Fp>\n\nAn effect on its own looks like a sticker. What sells a hit is the body around it: the wind-up that says something is\ncoming, the freeze on contact, the target rocking back, the recovery. So the 61 effects with a character, and the 12\nmoves, say what the body does and when:\n\n```js\nexport const act = {\n  target: { x: 58 },\n  poses: [\n    [-0.55, GUARD],            \u002F\u002F he starts before the effect does (t = 0 is the effect's first frame)\n    [-0.3, WIND_UP],\n    [0, CUT, \"snap\"],          \u002F\u002F \"snap\" holds the last pose and jumps on the key\n    [0.06, FOLLOW_THROUGH, \"snap\"],\n    [0.86, GUARD],\n  ],\n  hits: [{ t: 0.06, stop: 0.14, shake: 0.18, amp: 2, push: 2.8, straw: 18 }],   \u002F\u002F freeze for 0.14 s on contact\n};\n```\n\n**Play the whole thing**, character and target included, by swapping `createFx` for `createAct`:\n\n```js\nimport { createFrame, clearFrame, createAct, composite } from \"pixelfx\";\nimport * as slash from \"pixelfx\u002Ffx\u002Fmelee\u002Fsword-slash\";\n\nconst act = createAct(slash, { x: 80, y: 140 });\n\nfunction tick(dt) {\n  act.update(dt);                                  \u002F\u002F holds still by itself during a freeze\n  clearFrame(frame);\n  act.draw(frame);                                 \u002F\u002F { body: false } and { target: false } leave them out\n  composite(frame, img.data, backgroundColor);\n  const [sx, sy] = act.shake;                      \u002F\u002F throw the picture this far\n  ctx.putImageData(img, sx, sy);\n}\n```\n\n**Got your own character?** Effect ids haven't changed and a sprite sheet is still the effect alone, so existing games\nkeep working. (Effects drawn on the body paint the stock dummy, so regenerate those if you ship them.) The timing is plain data: read `slash.act`, or `meta.pixelfx.act` in a sprite sheet's\nJSON (`windup`, `recovery`, `hits` with `t` and `freeze`, `poses`). Start your own wind-up animation that long before the effect, and\nstop updating everything for `freeze` seconds at each hit.\n\nEffects drawn on the body (frost, poison, a scan line) are written against the standing character and follow him\nwherever he goes: each pixel of a pose knows which pixel of the standing body it came from. `node tools\u002Fact.mjs\n\u003Cid> --sheet` bakes a whole act, character included, into a sprite sheet.\n\nThe body is yours to use too: `skeleton(pose)` gives you every joint of a pose in 3D, to hang your own things on, and\n`posedParts(pose)` gives you each part drawn on its own.\n\n## the skill.\n\nThe `pixelfx` skill teaches Claude Code to find, use, export and make effects. Install it as a plugin:\n\n```\n\u002Fplugin marketplace add patch-gg\u002Fpixelfx\n\u002Fplugin install pixelfx@pixelfx\n```\n\nor copy `skills\u002Fpixelfx` into `~\u002F.claude\u002Fskills\u002F`. Then ask for what you want:\n\n- \"Add a frost nova to my mage's ultimate.\"\n- \"Make five takes on a coin pickup sparkle and show me the best two.\"\n- \"Export the fire and explosions categories as sprite sheets for Godot.\"\n- \"This hit effect feels floaty. Make it punchier.\"\n- \"Give this spell a wind-up and make the enemy react to it.\"\n\n## make your own.\n\n```bash\nnode tools\u002Fnew.mjs arcane\u002Fmy-spell       # a working starting point (add --loop for a loop)\nnode tools\u002Frender.mjs arcane\u002Fmy-spell    # records\u002Farcane\u002Fmy-spell\u002Fcontact.png: look at it\nnode tools\u002Fcheck.mjs arcane\u002Fmy-spell     # spills, seams, unseeded randomness, slow frames\n```\n\nThen go round: look at the contact sheet, fix the worst thing, render again. `--gif` and `--mp4` show the motion,\n`--all` shows every frame. `node tools\u002Fact.mjs arcane\u002Fmy-spell` shows an act as consecutive 12 fps steps, because motion\nbugs don't show in samples. [docs\u002FAUTHORING.md](docs\u002FAUTHORING.md) has the contract, the drawing API and the quality\nbar. `node tools\u002Fserve.mjs` runs the gallery locally with your effects in it.\n\n## how it works.\n\n- **Two kinds of effect, no images.** Pure effects export `draw(p, t, o)`, the frame at `t` seconds from `t` alone, so\n  loops tile with no seam. Simulated effects export `create(o)` and step real particles, debris and lights at 120 Hz,\n  so sparks bounce and smoke rolls the same at any frame rate.\n- **Two buffers.** `color` takes pixels: opaque, dithered or truly translucent. `light` takes additive glow, added on\n  top. Hot things look hot because of the light buffer.\n- **Seeded everything.** Every random number comes from the effect's seed, so frame 40 is the same every time.\n- **Local space.** Effects draw around their own origin; the painter places, mirrors and rotates them. Directional\n  effects face right. A 24×38 stock character stands in for status effects, auras and hits.\n- **A real skeleton, drawn down to pixels.** The grey dummy is neutral on purpose, so the eye goes to the move and any effect's\n  colors read on it. He's a 3D skeleton with fixed-length bones, pelvis to spine to shoulders, rendered in a few flat tones with one clean\n  ink line, the way Dead Cells makes its sprites. So he can twist, bend and really turn round, and depth decides what's in front. Poses hold on 12 fps\n  steps, the way hand-drawn sprites do, while particles run at full rate.\n- **Same frame shape as Sprite Fusion's VFX** (`{ w, h, ox, oy, color, light }`), so both libraries can draw into\n  one frame.\n\n## license.\n\nMIT, code and effects. Use them in anything, commercial included. Parts are adapted from Hugo Duprez's MIT effects\nand from Hollow Crown's MIT source, and the Patch Pixel font in `gallery\u002Ffonts` is Patch's own and not covered: see\n[NOTICE.md](NOTICE.md).\n\nMade by [Patch](https:\u002F\u002Fpatch.gg).\n","pixelfx-zh 是一个开源的像素风格游戏视觉特效（VFX）库中文版，提供 244 种可实时运行、高度可定制的像素动画效果。核心功能包括：基于 JavaScript 的轻量级 Canvas 渲染、支持颜色重映射与镜像翻转、内置角色动作链（含起手、命中、受击、恢复全流程）、可导出 Sprite Sheet，并附带专为 Claude Code 设计的像素特效生成技能。技术上采用函数式代码结构，强调人眼反馈驱动的迭代设计，兼容浏览器环境及主流游戏引擎集成。适用于独立游戏开发、像素美术原型验证、教学演示及快速 VFX 搭建等轻量级实时渲染场景。",2,"2026-11-24 04:39:22","CREATED_QUERY"]