yanwu-character · Design a pixel fighter
- Lab Skill
- v0.3.5
- Game creation
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.
示例
Six fighters cast their ultimates, then one fighter cycles through its twelve action states
Make your own
Take the whole game →Three Skills for your Agent. Make a fighter, make an arena, or take the whole game and change anything. Each one hands you a file you load into the arena above.

Paint an arena
Describe a place. Your Agent paints a 480×270 dithered backdrop on the shared floor line, with a landmark, light sources and ambient weather, then checks coverage, the HUD band and frame time and runs a full AI duel on it.

Take the whole game
The engine behind this page: renderer, effects, combat, duel AI and balance, plugin loader, the local workshop, sprite sheet and film export and the headless verification kit. Run it on your machine and change anything.
工作原理
- 01
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.
- 02
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.
- 03
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.
常见问题
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.
更多 Skills
所有 Game creation Skills →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

