跳到正文
CuteGuy☣️· 来源· @cutetoxicguy · X·· 54 分钟前精选AI 评分78
推荐理由

提供可编辑的JS代码与Claude Code技能,降低像素特效制作门槛。

正文 · 原文

Someone open-sourced 244 animated pixel-art effects for games, and every single one is editable JavaScript code. 🔥

The project is called PixelFX, and it comes with a Claude Code skill that can create additional effects using the same visual approach.

Instead of downloading thousands of static sprites and hoping they match your game's style, you can render effects dynamically, adjust their appearance, or export them as sprite sheets.

🎮 What's included?

The library contains 244 effects across 21 categories.

Some highlights:

▪️ Combat: Sword slashes, dash attacks, critical hits, and impact animations.

▪️ Fire: Fireballs, torches, burning effects, and fire tornadoes.

▪️ Magic: Lightning bolts, healing circles, shields, and teleportation.

▪️ Explosions: Grenades, barrel explosions, fireworks, and shockwaves.

▪️ Environment: Snow, rain, falling leaves, water splashes, and glowing particles.

▪️ UI: Achievements, combo counters, collectible notifications, and transitions.

▪️ Characters: Bats, birds, butterflies, flying skulls, and other animated creatures.

There are also 12 complete combat moves, combining preparation, action, impact, and recovery into coherent sequences.

🧠 The interesting part is how the animations work.

Each effect is a small JavaScript module rather than a prerecorded video.

That means developers can control:

▪️ Timing and playback.

▪️ Colors and palettes.

▪️ Position, rotation, and mirroring.

▪️ Random seeds.

▪️ Lighting and compositing.

▪️ Interactions with other visual elements.

🤖 Built for AI-assisted development

PixelFX includes an agent skill designed to help Claude Code create new pixel-art animations.

The workflow follows a simple principle:

Draft → Render → Inspect → Refine.

Instead of producing an effect and assuming it's correct, the agent renders a preview, evaluates the animation, and adjusts the implementation.

🔧 Works with popular JavaScript engines

The effects can be integrated into browser games using Canvas, Phaser, PixiJS, Kaplay, or Three.js.

The repository also includes tools for exporting GIFs and sprite sheets, making the results useful in other game engines.

A live gallery lets you inspect existing effects before using them.

⚠️ Important limitation

These aren't conventional skeletal animations or GPU particle systems. They're programmatic pixel-art effects, with a deliberately retro visual style.

You'll still need to adapt them to your game's rendering and asset pipeline.

Why this matters

Game effects can take hours to draw and animate manually.

PixelFX gives developers a large collection of reusable building blocks, while coding agents can help extend them without starting from scratch.

Free and MIT-licensed.

🔗 GitHub: https://github.com/patch-gg/pixelfx

🔗 Live gallery: https://patch-gg.github.io/pixelfx/

#PixelArt #GameDevelopment #ClaudeCode #OpenSource

来源:CuteGuy☣️ · x.com