# yanwu-character · Design a pixel fighter

> Characters only. Describe a fighter and your Agent writes it as one .yanwu.js plugin: a chibi body in 12 action states, a themed 3-hit basic with a proc, two damage skills, a mobility skill, a guard and an ultimate with full-screen pixel effects. Everything is drawn by code: no image generation, no model calls, no keys.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.3.5
- Page: https://www.sandbase.ai/skills/games/yanwu-character

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/yanwu-character (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/yanwu-character make a pixel fighter: <your idea>, with a themed basic attack, two damage skills, a mobility skill, a guard and an ultimate
```

## How it works

1. **Scaffold the fighter plugin** Yanwu Character starts with node scripts/pack.mjs new my-fighter, which copies the Lantern Wisp example to yanwu-out/my-fighter.yanwu.js under your id. Read references/design.md and plugin-api.md, then design with the user: silhouette, palette, a themed three-swing basic attack, two damage skills, a mobility skill, a guard that ends in a counter-hit and an ultimate with a title card.
2. **Paint 12 actions and the effects** Implement paint for all 12 action states with distinct poses on the 480 by 270 pixel grid, then each fx mechanism layer by layer through grade, back, front and title. Write both name in Chinese and nameEn. Hits happen only in the pack's hits schedule, and effects never deal damage or touch the network, storage or DOM; everything comes through kit.
3. **Check in training and duels** node scripts/pack.mjs check yanwu-out/my-fighter.yanwu.js validates the pack, runs every skill in training and duels each built-in fighter; fix anything marked with a cross. Then npm run dev and open the local workshop to review skills at half speed. The result is one .yanwu.js file under 500 KB that loads into the live Yanwu Arena page.

## FAQ

### What file does Yanwu Character make?

Yanwu Character makes one ES module named after your id, ending in .yanwu.js, with no imports and under 500 KB. It exports an archetype that paints the body and skill effects, and a character pack with Chinese and English names, palette, stats, the basic combo, four skills and an ultimate with hit schedules.

### Does Yanwu Character use image generation?

No. Yanwu Character draws everything in code on a 480 by 270 pixel grid, with no image generation, model calls or keys, so building a fighter is not billed. You need Node and npm for the check script and the local workshop. The optional export script also needs ffmpeg and a CJK font.

### How do I load a Yanwu Character fighter into the arena?

Open the Yanwu Arena page and use Load fighter or arena, or drop the .yanwu.js file onto the arena; the Yanwu Character file stays on your machine. Locally, the workshop at 127.0.0.1:4182/assets/player/ offers Load pack or plugin with Skills, Training and Duel views for review.

### Can I tune Yanwu Character damage numbers?

Not directly. Yanwu Character duels rescale damage per slot, so tune timing, range and feel instead of raw numbers. The skill order is fixed: damage, damage, mobility, guard, ultimate, and the third connected basic swing fires the proc. Duels also add shared movement such as jumps, dashes, blocks and combo scaling.

### Can Yanwu Character copy a character from another game?

No. Yanwu Character accepts original characters only and must not copy third-party characters or art. A fighter that only recolours or renames a built-in class can be a plain .json pack instead of a plugin, and only built-in classes can use the optional sprite sheet, poster and showcase MP4 export.

## Examples

- Six fighters cast their ultimates, then one fighter cycles through its twelve action states (video)
