正在自动登录…
patch-gg/ pixelfx
提供232种像素艺术特效和动画,每种都是独立代码片段,可用于游戏或网页中,支持实时预览、重新着色、镜像和导出精灵表,并附带Claude Code技能以生成新特效。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/30 19:51:32 · 查看原文
- 累计 Stars
- 321
- 当前热度
- 1 天内 · 热门
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/30 19:51:32
- 使用方式
可通过npm安装或复制源码在浏览器游戏中使用,也可通过命令行工具导出精灵表或生成新特效。
查看 README 依据
fx.update(dt); clearFrame(frame); fx.draw(frame, "back"); // behind characters drawCharacters(); fx.draw(frame, "front"); composite(frame, img.data, backgroundColor); // color, then light added on top ctx.putImageData(img, 0, 0); // scale up with image-rendering: pixelated } ``` Install from GitHub with `npm i github:patch-gg/pixelfx`, or copy `src/core` and the effects you want. **In any engine** (Godot, Unity, GameMaker, Defold, LÖVE, Bevy), use sprite sheets: ```bash node tools/render.mjs ice/frost-nova --sheet
node tools/new.mjs arcane/my-spell # a working starting point (add --loop for a loop) node tools/render.mjs arcane/my-spell # records/arcane/my-spell/contact.png: look at it node tools/check.mjs arcane/my-spell # spills, seams, unseeded randomness, slow frames ``` Then go round: look at the contact sheet, fix the worst thing, render again. `--gif` and `--mp4` show the motion, `--all` shows every frame. [docs/AUTHORING.md](docs/AUTHORING.md) has the contract, the drawing API and the quality bar. `node tools/serve.mjs` runs the gallery locally with your effects in it.
- 部署要求
需要Node.js环境以运行命令行工具,浏览器使用无需依赖。
查看 README 依据
fx.update(dt); clearFrame(frame); fx.draw(frame, "back"); // behind characters drawCharacters(); fx.draw(frame, "front"); composite(frame, img.data, backgroundColor); // color, then light added on top ctx.putImageData(img, 0, 0); // scale up with image-rendering: pixelated } ``` Install from GitHub with `npm i github:patch-gg/pixelfx`, or copy `src/core` and the effects you want. **In any engine** (Godot, Unity, GameMaker, Defold, LÖVE, Bevy), use sprite sheets: ```bash node tools/render.mjs ice/frost-nova --sheet
node tools/new.mjs arcane/my-spell # a working starting point (add --loop for a loop) node tools/render.mjs arcane/my-spell # records/arcane/my-spell/contact.png: look at it node tools/check.mjs arcane/my-spell # spills, seams, unseeded randomness, slow frames ``` Then go round: look at the contact sheet, fix the worst thing, render again. `--gif` and `--mp4` show the motion, `--all` shows every frame. [docs/AUTHORING.md](docs/AUTHORING.md) has the contract, the drawing API and the quality bar. `node tools/serve.mjs` runs the gallery locally with your effects in it.
- 已知限制
部分特效改编自Hugo Duprez的MIT许可代码,但Patch Pixel字体不在MIT许可范围内。
查看 README 依据
- **Seeded everything.** Every random number comes from the effect's seed, so frame 40 is the same every time. - **Local space.** Effects draw around their own origin; the painter places, mirrors and rotates them. Directional effects face right. A 24×38 stock character stands in for status effects, auras and hits. - **Same frame shape as Sprite Fusion's VFX** (`{ w, h, ox, oy, color, light }`), so both libraries can draw into one frame. ## license. MIT, code and effects. Use them in anything, commercial included. Parts are adapted from Hugo Duprez's MIT effects,
and the Patch Pixel font in `gallery/fonts` is Patch's own and not covered: see [NOTICE.md](NOTICE.md). Made by [Patch](https://patch.gg).
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/10/30 14:43:25
- 首次达标收录
- 2026/10/30 19:46:59
- 统计更新时间
- 2026/10/31 09:30:57
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.0 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/30 19:46:59 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/30 14:58:53
- 许可证标识
- MIT
- Fork 数
- 36
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目