0x0funky/agent-sprite-forge / skills/codeart2d
codeart2d
VerifiedExplicit-only last resort. Draws game art from code, with no image model - pixel sprites from a PixelSpec, flat vector props, UI and icons from portable SVG, rigged characters with planted feet, FX with a JS runtime, seam-proven autotiles, playable top-down layouts with collision, stylized parallax and ambient plate motion - palette-exact, with QA and review sheets. Use only when the user explicitly asks for code-drawn art, or when generate2dmedia route_media.py finds no image or video route (no-route, exit 3). Never the default - image generation (generate2dsprite, generate2dmap, video2dsprite) comes first for characters, props, maps and FX. Not for painterly, detailed or likeness art, HD-2D plates or realistic fire, smoke or water. Always disclose the result as code-drawn.
examples/hero.anim.json
View on GitHub{
"schema": "codeart2d.rig_anim.v1",
"rig": "hero.rig.svg",
"states": {"idle": "idle", "moving": "walk"},
"entry_reference": "idle",
"clips": {
"walk": {
"frames": 8, "loop": true, "duration_ms": 100, "ease": "linear",
"stride_world_units": 24,
"events": [{"t": 0, "name": "step_r"}, {"t": 0.5, "name": "step_l"}],
"tracks": {
"hips": {"translate": [[0, [0, 2]], [0.125, [0, 1]], [0.25, [0, 0]], [0.375, [0, 1]],
[0.5, [0, 2]], [0.625, [0, 1]], [0.75, [0, 0]], [0.875, [0, 1]], [1, [0, 2]]]},
"torso": {"rotate": [[0, 3], [1, 3]]},
"head": {"rotate": [[0, -2], [0.25, 0], [0.5, -2], [0.75, 0], [1, -2]], "ease": "sine"},
"arm_f": {"rotate": [[0, 24], [0.5, -24], [1, 24]], "ease": "sine"},
"fore_f": {"rotate": [[0, -10], [0.5, -30], [1, -10]], "ease": "sine"},
"arm_b": {"rotate": [[0, -24], [0.5, 24], [1, -24]], "ease": "sine"},
"fore_b": {"rotate": [[0, -30], [0.5, -10], [1, -30]], "ease": "sine"}
},
"ik": {
"leg_f": {"bones": ["thigh_f", "shin_f"], "end": "foot_f", "pole": [1, 0],
"gait": {"phase": 0.0625, "stance": 0.625, "lift": 3, "roll": 15, "x": 33.5}},
"leg_b": {"bones": ["thigh_b", "shin_b"], "end": "foot_b", "pole": [1, 0],
"gait": {"phase": 0.5625, "stance": 0.625, "lift": 3, "roll": 15, "x": 31.5}}
}
},
"idle": {
"frames": 4, "loop": true, "duration_ms": [220, 180, 220, 180], "ease": "linear",
"tracks": {
"torso": {"translate": [[0, [0, 0]], [0.25, [0, 1]], [0.5, [0, 2]], [0.75, [0, 1]], [1, [0, 0]]]},
"arm_f": {"rotate": [[0, 4], [0.25, 6], [0.5, 8], [0.75, 6], [1, 4]]},
"fore_f": {"rotate": [[0, -6], [0.5, -10], [1, -6]]},
"arm_b": {"rotate": [[0, -4], [0.25, -6], [0.5, -8], [0.75, -6], [1, -4]]},
"fore_b": {"rotate": [[0, -10], [0.5, -14], [1, -10]]}
},
"ik": {
"leg_f": {"bones": ["thigh_f", "shin_f"], "end": "foot_f", "pole": [1, 0], "target": [[0, [35, 60]]]},
"leg_b": {"bones": ["thigh_b", "shin_b"], "end": "foot_b", "pole": [1, 0], "target": [[0, [29, 60]]]}
}
}
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |