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/parallax-gen.json

View on GitHub
{
  "schema": "codeart2d.parallax_spec.v1",
  "viewport": [480, 270],
  "camera": {"x": [0, 1920], "y": [0, 0], "zoom": [1, 1]},
  "seed": 11,
  "pixel_art": true,
  "sweep_frames": 49,
  "layers": [
    {
      "id": "sky",
      "kind": "sky",
      "colors": ["#1b1f3b", "#5d3f6a", "#c06070"],
      "bands": 8,
      "dither": true,
      "stars": {"count": 60, "color": "#f4f4f4", "band": [0.0, 0.45]}
    },
    {
      "id": "clouds",
      "kind": "clouds",
      "scroll": 0.08,
      "period": 480,
      "count": 5,
      "y_range": [30, 90],
      "size": [8, 16],
      "fill": "#d9a0a8",
      "shade": "#a8707e"
    },
    {
      "id": "far",
      "kind": "ridge",
      "role": "far",
      "scroll": 0.2,
      "period": 480,
      "base_y": 170,
      "amplitude": 70,
      "cells": 3,
      "fill": "#333c57",
      "rim": "#566c86",
      "rim_px": 2
    },
    {
      "id": "mid",
      "kind": "ridge",
      "role": "mid",
      "scroll": 0.5,
      "period": 640,
      "base_y": 215,
      "amplitude": 50,
      "cells": 4,
      "fill": "#257179",
      "rim": "#38b764",
      "trees": {"count": 40, "height": [8, 18], "width_ratio": 0.5, "tiers": 3}
    },
    {
      "id": "near",
      "kind": "foreground",
      "scroll": 1.25,
      "period": 800,
      "base_y": 258,
      "amplitude": 14,
      "cells": 6,
      "fill": "#1a1c2c",
      "grass": {"count": 80, "height": [4, 10]}
    }
  ]
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated 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