{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "gary149-h3-game-sprites--build-seamless-walk-cycle",
 "repo": "gary149/h3-game-sprites",
 "repo_url": "https://github.com/gary149/h3-game-sprites",
 "repo_slug": "gary149-h3-game-sprites",
 "title": "Build a seamless walk cycle from a generated clip",
 "page_title": "How to build a seamless walk cycle from a generated clip with H3 Game Sprites",
 "summary": "Get a walk loop that resets cleanly instead of visibly jumping back to a start pose.",
 "who": "A 2D game developer whose character needs a walk animation for a side-scrolling or top-down level, and whose generated walk clip looks like it resets at the loop point.",
 "problem": "Whole-clip keyframes include the start-up and the settle back to idle, so a naive loop snaps back to the start of the walk.",
 "outcome": "A set of walk frames chosen to form a seamless cycle, with a strip and GIF to review before import.",
 "steps": [
  "Generate a walk clip in place, using the in-place (treadmill) walk phrasing so the engine controls movement.",
  "Save it as clips/walk.mp4.",
  "Run `python3 scripts/sprite_cut.py clips/walk.mp4 sprites/walk --frames 8 --loop`. (inferred, check the README)",
  "Open sprites/walk and check that the last frame flows into the first with no visible reset.",
  "Compare the metrics report feet drift figure against your engine's expected movement speed."
 ],
 "agent_prompt": "Using the h3-game-sprites repo, run scripts/sprite_cut.py with --loop on <path to walk.mp4> and 8 frames, writing to sprites/walk. Report which frames were selected and whether the cycle is seamless, citing the metrics report.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README says the loop option finds a seamless cycle, but the result still needs a visual check in the GIF because the metrics alone may not catch every visible reset.",
 "category": "Games and hobbies",
 "tags": [
  "Games and hobbies"
 ],
 "lang": "python",
 "requirements": [
  "ffmpeg installed locally",
  "Python 3 with Pillow and numpy",
  "A video model such as H3 / Hailuo 3 via OpenRouter, fal or MiniMax, or an ordinary video file you already have",
  "An image model or illustrator for the character still (gen_still.py defaults to Nano Banana through OpenRouter and reads OPENROUTER_API_KEY)",
  "Budget of roughly $0.60-0.70 per five-second clip plus a few cents per still, varying by provider"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/gary149-h3-game-sprites/build-seamless-walk-cycle/",
 "md": "https://dedupedai.com/use-cases/gary149-h3-game-sprites/build-seamless-walk-cycle/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/gary149-h3-game-sprites--build-seamless-walk-cycle.json",
 "api_version": "v1"
}
