Generate 2D game character sprites using Google Veo video generation API. Transforms text prompts into animated game character sprites through video generation, frame extraction, and sprite sheet assembly.
This skill generates game character sprites using Google Veo's video generation capabilities.
# Full workflow: generate video, extract frames, build sprite sheet
node ./src/cli.js --prompt "A goblin monster walking" --duration 3 --fps 12 --resolution 512x512 --output ./output
# Extract frames from existing video only
node ./src/cli.js --frames-only --duration 3 --fps 12 --resolution 512x512 --output ./output
| Task | Command |
|---|---|
| Generate sprite from prompt | node ./src/cli.js --prompt "..." --output ./output |
| Select 6 key frames | node src/selectFrames.js ./output |
| Remove black background |
node src/trim.js --input ./output/sprite_6.png |
character.mp4 - Generated video from Veoframes/ - Individual frame PNGssprite.png - Full sprite sheet gridsprite.json - Metadata (dimensions, frame count, fps)sprite_6.png / sprite_6.json - 6-frame selection--prompt: Text description of the character (be specific about pose/movement)--image: Path to a reference image file (absolute path) to guide the generation--duration: Video length in seconds (3-5 works well)--fps: Frames per second (8-16 for sprite sheets)--resolution: Video resolution (512x512 recommended)--output: Output directory pathtrim.js after to remove black backgroundssrc/
├── cli.js # Main entry point
├── veoClient.js # Google Veo API wrapper
├── ffmpegHelper.js # Frame extraction
├── spriteBuilder.js # Sprite sheet assembly
├── selectFrames.js # 6-frame selector
├── trim.js # Background removal
└── imageUtils.js # Image utilities