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/slash.fx.json

View on GitHub
{
  "schema": "codeart2d.fx.v1",
  "canvas": [64, 64],
  "origin": [32, 34],
  "palette": {
    "white": "#ffffff", "gold": "#ffcd75", "ember": "#ef7d57", "red": "#b13e53",
    "ice": "#a6f0ff", "cyan": "#41a6f6", "blue": "#3b5dc9",
    "dust-hi": "#d8c8aa", "dust-mid": "#a8957a", "dust-lo": "#6f6050",
    "ink": "#1a1c2c"
  },
  "routes": ["pixel", "runtime"],
  "effects": [
    {
      "id": "slash", "durationMs": 400, "impactMs": 150, "seed": 7,
      "ramps": {"blade": ["white", "gold", "ember", "red"], "spark": ["white", "gold", "ember"]},
      "primitives": [
        {"type": "slash", "ramp": "blade", "center": [30, 32], "radius": 18, "from": -150, "to": 30, "width": 8,
         "trail": 0.9},
        {"type": "flash", "ramp": "spark", "origin": [45.5, 41], "radius": 3, "rays": 4, "rayLength": 8,
         "rotation": 45, "lifeMs": 100},
        {"type": "sparks", "ramp": "spark", "origin": [45.5, 41], "count": 8, "angle": 20, "spread": 130,
         "speed": 55, "lifeMs": 220, "length": 4, "gravity": 60}
      ]
    },
    {
      "id": "impact", "durationMs": 300, "impactMs": 0, "seed": 11,
      "ramps": {"hit": ["white", "gold", "ember", "red"]},
      "primitives": [
        {"type": "ring", "ramp": "hit", "radius": [3, 20], "width": [4, 1], "lifeMs": 260},
        {"type": "flash", "ramp": "hit", "radius": 4, "rays": 4, "rayLength": 11, "lifeMs": 120},
        {"type": "sparks", "ramp": "hit", "count": 12, "spread": 360, "speed": 70, "lifeMs": 240, "length": 4}
      ]
    },
    {
      "id": "dust", "durationMs": 400, "impactMs": 0, "seed": 3,
      "primitives": [
        {"type": "dust", "colors": ["dust-hi", "dust-mid", "dust-lo"], "origin": [32, 56], "count": 8,
         "spread": 26, "rise": 10, "drift": 6, "radius": [1.5, 3.5], "lifeMs": 380}
      ]
    },
    {
      "id": "orb", "durationMs": 400, "impactMs": 0, "seed": 5, "loop": true, "outline": "ink",
      "primitives": [
        {"type": "projectile", "colors": ["white", "ice", "cyan", "blue"], "angle": 0, "radius": 4,
         "trail": 16, "orbiters": 3}
      ]
    }
  ]
}
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: 197kUpdated Claude CodeCodexVerifiedInstall