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/walker16x24.pixelspec.json

View on GitHub
{
  "schema": "codeart2d.pixelspec.v1",
  "name": "walker",
  "canvas": [16, 24],
  "anchor_px": [8, 23],
  "palette": {
    "k": "#22182c",
    "s": "#f2c69a",
    "S": "#c98f6b",
    "h": "#6e4a33",
    "H": "#9a6a44",
    "t": "#3f8f68",
    "T": "#2b5f47",
    "b": "#e3b04b",
    "p": "#4b3f5e",
    "P": "#352b45",
    "o": "#5a3a2a"
  },
  "variants": {
    "forest": {},
    "crimson": {"t": "#b8433f", "T": "#7c2a31"},
    "sky": {"t": "#4a7fd0", "T": "#2f4f8f"}
  },
  "outline": {"mode": "solid", "color": "k"},
  "poses": {
    "head_front": [
      "..hhhhhh..",
      ".hHHHHHHh.",
      "hHHhhhhHHh",
      "hHhhhhhhHh",
      "hhsssssshh",
      "hssksskssh",
      "hssksskssh",
      ".ssssssss.",
      ".SssssssS.",
      "..SSSSSS.."
    ],
    "head_back": [
      "..hhhhhh..",
      ".hHHHHHHh.",
      "hHHHHHHHHh",
      "hHHhhhhHHh",
      "hhhhhhhhhh",
      "hhhhhhhhhh",
      "hhhhhhhhhh",
      ".hhhhhhhh.",
      ".ShhhhhhS.",
      "..SSSSSS.."
    ],
    "head_side": [
      "..hhhhh...",
      ".hHHHHHh..",
      "hHHHHHHHh.",
      "hHHHhhhhhh",
      "hHHhhsssss",
      "hHhhsssks.",
      "hhhssssks.",
      ".hhsssssss",
      ".hSssssss.",
      "..SSSSS..."
    ],
    "body_front": [
      "..tttttt..",
      ".TttttttT.",
      "TTttttttTT",
      "TtbbbbbbtT",
      "s.pppppp.s",
      "..pppppp.."
    ],
    "body_side": [
      "...tttt...",
      "..tttttt..",
      "..ttTTtt..",
      "..bbTTbb..",
      "...pssp...",
      "...pppp..."
    ],
    "body_side_back": [
      "...tttt...",
      "..tttttt..",
      "..tTTttt..",
      "..TTbbbb..",
      "..sspp....",
      "...pppp..."
    ],
    "body_side_fore": [
      "...tttt...",
      "..tttttt..",
      "..tttTTt..",
      "..bbbbTT..",
      "...pppss..",
      "...pppp..."
    ],
    "legs_front": [
      "..pppppp..",
      "..pp..pp..",
      "..pp..pp..",
      "..oo..oo..",
      ".ooo..ooo."
    ],
    "legs_front_step": [
      "..pppppp..",
      "..pp..pp..",
      "..oo..pp..",
      ".ooo..oo..",
      "......ooo."
    ],
    "legs_side": [
      "...pppp...",
      "...pppp...",
      "...pPPp...",
      "...ooo....",
      "...ooooo.."
    ],
    "legs_side_near_fore": [
      "...pppp...",
      "..PP..ppp.",
      ".PP....pp.",
      ".oo....ooo",
      "oo.....ooo"
    ],
    "legs_side_near_back": [
      "...pppp...",
      "..pp..PPP.",
      ".pp....PP.",
      ".oo....ooo",
      "oo.....ooo"
    ]
  },
  "layers": [
    {"name": "legs", "z": 0, "origin": [3, 17], "rows": "legs_front"},
    {"name": "body", "z": 1, "origin": [3, 11], "rows": "body_front"},
    {"name": "head", "z": 2, "origin": [3, 1], "rows": "head_front"}
  ],
  "frames": [
    {"name": "down-stand"},
    {"name": "down-step-a", "layers": {"head": {"dy": 1}, "body": {"dy": 1}, "legs": {"rows": "legs_front_step"}}},
    {"name": "down-stand-2"},
    {"name": "down-step-b", "layers": {"head": {"dy": 1}, "body": {"dy": 1}, "legs": {"rows": "legs_front_step", "mirror": true}}},
    {"name": "up-stand", "layers": {"head": {"rows": "head_back"}}},
    {"name": "up-step-a", "layers": {"head": {"rows": "head_back", "dy": 1}, "body": {"dy": 1}, "legs": {"rows": "legs_front_step"}}},
    {"name": "up-stand-2", "layers": {"head": {"rows": "head_back"}}},
    {"name": "up-step-b", "layers": {"head": {"rows": "head_back", "dy": 1}, "body": {"dy": 1}, "legs": {"rows": "legs_front_step", "mirror": true}}},
    {"name": "right-stand", "layers": {"head": {"rows": "head_side"}, "body": {"rows": "body_side"}, "legs": {"rows": "legs_side"}}},
    {"name": "right-step-a", "layers": {"head": {"rows": "head_side", "dy": 1}, "body": {"rows": "body_side_back", "dy": 1}, "legs": {"rows": "legs_side_near_fore"}}},
    {"name": "right-stand-2", "layers": {"head": {"rows": "head_side"}, "body": {"rows": "body_side"}, "legs": {"rows": "legs_side"}}},
    {"name": "right-step-b", "layers": {"head": {"rows": "head_side", "dy": 1}, "body": {"rows": "body_side_fore", "dy": 1}, "legs": {"rows": "legs_side_near_back"}}},
    {"name": "left-stand", "layers": {"head": {"rows": "head_side"}, "body": {"rows": "body_side"}, "legs": {"rows": "legs_side"}}, "flip_x": true},
    {"name": "left-step-a", "layers": {"head": {"rows": "head_side", "dy": 1}, "body": {"rows": "body_side_back", "dy": 1}, "legs": {"rows": "legs_side_near_fore"}}, "flip_x": true},
    {"name": "left-stand-2", "layers": {"head": {"rows": "head_side"}, "body": {"rows": "body_side"}, "legs": {"rows": "legs_side"}}, "flip_x": true},
    {"name": "left-step-b", "layers": {"head": {"rows": "head_side", "dy": 1}, "body": {"rows": "body_side_fore", "dy": 1}, "legs": {"rows": "legs_side_near_back"}}, "flip_x": true}
  ],
  "clips": {
    "walk_down": {"frames": ["down-stand", "down-step-a", "down-stand-2", "down-step-b"], "duration_ms": 150, "loop": true},
    "walk_up": {"frames": ["up-stand", "up-step-a", "up-stand-2", "up-step-b"], "duration_ms": 150, "loop": true},
    "walk_right": {"frames": ["right-stand", "right-step-a", "right-stand-2", "right-step-b"], "duration_ms": 150, "loop": true},
    "walk_left": {"frames": ["left-stand", "left-step-a", "left-stand-2", "left-step-b"], "duration_ms": 150, "loop": true}
  }
}
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