Skip to content

0x0funky/agent-sprite-forge / skills/codeart2d

codeart2d

Verified

Explicit-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.

FileKindSize
SKILL.mdskill md9.7 KB
agents/openai.yamlconfig364 B
examples/dirt-path.material.jsonconfig2.0 KB
examples/hero.anim.jsonconfig2.2 KB
examples/hero.rig.svgother3.2 KB
examples/meadow-layout.jsonconfig12.9 KB
examples/palette.jsonconfig447 B
examples/parallax-gen.jsonconfig1.4 KB
examples/plate-effects.jsonconfig1.1 KB
examples/potion-icons.svgother3.2 KB
examples/slash.fx.jsonconfig2.0 KB
examples/slime.pixelspec.jsonconfig3.3 KB
examples/walker16x24.pixelspec.jsonconfig5.1 KB
examples/water-grass.material.jsonconfig1.4 KB
references/fx-language.mdmarkdown9.5 KB
references/fx-runtime-contract.mdmarkdown7.3 KB
references/layouts-and-parallax.mdmarkdown20.4 KB
references/pixelspec.mdmarkdown10.8 KB
references/rasterizers.mdmarkdown4.9 KB
references/rig-animation.mdmarkdown18.1 KB
references/runtime/fx-template.mjsscript13.0 KB
references/schemas/codeart.schema.jsonconfig52.3 KB
references/schemas/common.schema.jsonconfig12.9 KB
references/schemas/map.schema.jsonconfig134.0 KB
references/schemas/sprite.schema.jsonconfig80.7 KB
references/style-envelope.mdmarkdown5.1 KB
references/svg-profile.mdmarkdown8.4 KB
references/tiles-and-maps.mdmarkdown15.4 KB
scripts/ambient_bake.pyscript32.5 KB
scripts/autotile_build.pyscript102.7 KB
scripts/codeart_core.pyscript118.8 KB
scripts/forge_core.pyscript86.4 KB
scripts/forge_nav.pyscript95.5 KB
scripts/forge_schema.pyscript26.1 KB
scripts/fx_build.pyscript49.3 KB
scripts/fx_verify.mjsscript29.7 KB
scripts/layout_build.pyscript106.6 KB
scripts/parallax_build.pyscript46.8 KB
scripts/pixel_qa.pyscript21.7 KB
scripts/render_pixelspec.pyscript43.0 KB
scripts/rig_animate.pyscript118.1 KB
scripts/svg_render.pyscript26.3 KB

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]]]}
      }
    }
  }
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
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: 196kUpdated Claude CodeCodexVerifiedInstall