Pixel Motion StudioAbout this toolGuideTry it in your browser →日本語

CLI · MCP · SKILL

Ask your AI agent directly.

The same conversion as the web app, from the command line. Ask Claude Code or Codex to "turn this frame sequence into pixel art". It converts the frames, checks the foot drift, and prepares the files for your game.

How each feature works, and what you get, is on the Features page.

Download the CLI (ZIP)
Version 0.2.0 · 1.8 MBSHA-256 577a7a60b331d7381fc4f5dcc1c3cb6d42db1753458bc3e94acc38e7c6186106

What to tell your agent

Paste this into Claude Code or Codex as is. It goes from the download to the conversion and a Phaser page that plays the result. Change only <frames folder>.

Use the Pixel Motion Studio CLI to turn a frame sequence into game-ready pixel art.
1. Download https://fourthplace43.com/tools/pixel-motion-studio/downloads/pixel-motion-studio-cli-0.2.0.zip , unzip it, and install skills/pixel-motion-studio from it as a skill (README.en.md says where).
2. Convert the PNGs in <frames folder> at 64px high with 32 colors (output to a new folder, read the result with --json).
3. Check quality.issues in the result. If there is foot drift (foot-drift), tell me which frame.
4. In the output folder, make an HTML page that loops the animation in Phaser 3 (load spritesheet.json as an atlas, origin = pivot.normalized).

Three ways to use it

1. From the command line

In the unzipped folder, convert the 26 included frames (a walking character).

node pixel-motion-studio.cjs convert examples/walk --out my-walk

To set the height and the color count, add --frame-height 64 --colors 32 (64px-high frames, 32 colors). For a green screen, add --key-color "#00ff00". --help lists every option.

2. As a skill (Claude Code and Codex)

Copy the skills/pixel-motion-studio folder from the ZIP into one of these places. The CLI is already inside, so there is nothing to edit.

Claude Code~/.claude/skills/pixel-motion-studio/
Codex~/.codex/skills/pixel-motion-studio/

You can also ask the agent to "install the skill from this ZIP".

3. As MCP

claude mcp add pixel-motion-studio -- node <unzipped folder>/pixel-motion-studio.cjs mcp

Two tools: pixelate_frames (convert a frame sequence) and inspect_output (read the result). Setup for Codex is in the README in the ZIP.

What it exports

frame-000.png …A transparent PNG for each frame. Every frame is the same size, at the same position
spritesheet.pngEvery frame on one image (up to 8 columns)
spritesheet.jsonAtlas JSON for the sheet (TexturePacker JSON Hash). Phaser and PixiJS read it as is
manifest.jsonThe settings, the shared colors, the pivot (feet), the foot drift, and the stray pixel count
animation.apng / .gifFor checking the motion

Whether the feet line up, in numbers

The most visible break in a pixel-art animation is the feet bouncing up and down. Every conversion measures the feet on every frame and writes that into the result.

"pivot": { "x": 45, "y": 130, "normalized": { "x": 0.5921, "y": 1 }, "unity": { "x": 0.5921, "y": 0 } },
"quality": { "footDriftPx": 2, "strayPixels": 0, "issues": [] }
pivotThe pivot (feet), shared by every frame. Put normalized straight into the Phaser origin, and unity straight into the Unity Pivot
footDriftPxHow much the foot height differs between frames. On a walk or an idle, 3px or more is reported as foot-drift (moves where the feet leave the ground, such as a jump, are fine)
strayPixelsHow many stray pixels there are. If any bother you, erase them in the Pixel Editor

The 26 included frames (cut from a video of one standing illustration) had at most 2px of foot drift and 0 stray pixels. The agent can read these numbers and decide which frames to remake.

Put it in your game

Phaser 3

this.load.atlas('hero', 'spritesheet.png', 'spritesheet.json');
this.anims.create({
  key: 'walk',
  frames: this.anims.generateFrameNames('hero', { prefix: 'frame-', start: 0, end: 25, zeroPad: 3 }),
  frameRate: 24, repeat: -1,
});
this.add.sprite(400, 300, 'hero').setOrigin(0.5921, 1).play('walk');

Unity

Set Sprite Mode to Multiple and Filter Mode to Point, then slice with Grid By Cell Size in the Sprite Editor. Set Pivot to Custom and enter the pivot.unity values.

Godot 4

Set the Sprite2D Hframes and Vframes to sheet.columns and sheet.rows, and set Texture Filter to Nearest.

How to prepare a frame sequence

A frame sequence that matches in shape and size comes out cleaner. Turn one standing illustration into a video and cut out one cycle, and the foot drift is about 1px. Drawing each frame separately came out at 4–5px. Prompts for the AI are in the Studio and in AGENT.md in the ZIP.

The Pixel Editor, where you fix pixels by hand, is a screen in the web app. If something looks off after a CLI conversion, convert the same frame sequence in the web app and fix it there.

Version and contact

Changes are listed on What's new. For requests and bugs, write to @yonsan434343 on X.