// readme

Pixel-art effects drawn as code. Describe an effect, and the /beanfx skill for Claude Code draws it in Rust and exports a sprite sheet with JSON that any engine plays.

Live demo and gallery · used in Nine Heavens

Install

/plugin marketplace add baenv/beanfx
/plugin install beanfx@beanfx

Needs Rust (cargo, from https://rustup.rs). The first run builds the beanfx binary into .beanfx/bin/ in your project. Each draft is a small Rust crate that links the skill’s kit (drawing, sheet export and checks, sound, preview page).

Use

/beanfx a fire burst, 64x64, side view, one-shot, strong glow
/beanfx path/to/reference.png make this a looping aura

The skill asks about anything the prompt leaves open, then writes the effect to drafts/<name>/:

  • src/main.rs: the effect as code; edit it and run cargo run --release again
  • out/sheets/<name>.png and .json: the sprite sheet and its JSON, the files a game loads
  • out/<name>.html: a preview page that opens with a double click

Two game characters ship with the plugin (a sword caster and a staff caster, side and top-down),…