Agent Skillsjasonkneen/tiny-world-builder › tinyworld-25d-template-sprites

tinyworld-25d-template-sprites

GitHub

指导TinyWorld项目中2.5D角色模板精灵图的克隆、分类配置及动画播放逻辑,涵盖运行时API使用、资源路径管理及生成脚本调用。

.codex/skills/tinyworld-25d-template-sprites/SKILL.md jasonkneen/tiny-world-builder

Trigger Scenarios

修改可玩角色的2.5D模板精灵图 将精灵图克隆到不同的角色类中 配置空闲/行走/攻击的精灵表播放逻辑

Install

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-25d-template-sprites -g -y
More Options

Non-standard path

npx skills add https://github.com/jasonkneen/tiny-world-builder/tree/main/.codex/skills/tinyworld-25d-template-sprites -g -y

Use without installing

npx skills use jasonkneen/tiny-world-builder@tinyworld-25d-template-sprites

指定 Agent (Claude Code)

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-25d-template-sprites -a claude-code -g -y

安装 repo 全部 skill

npx skills add jasonkneen/tiny-world-builder --all -g -y

预览 repo 内 skill

npx skills add jasonkneen/tiny-world-builder --list

SKILL.md

Frontmatter
{
    "name": "tinyworld-25d-template-sprites",
    "description": "Use when changing the playable 2.5D template sprite, cloning it into character classes, or wiring idle\/walk\/attack sprite-sheet playback."
}

TinyWorld 25D Template Sprites

This is not the crowd system. Do not route playable template work through vendor/tiny-crowd-layer.js, crowd/, or engine/world/11-vehicle-crowd.js.

Runtime:

  • engine/world/47-worlds-room.js owns the playable in-world/player-room avatar from these template sheets.
  • The character is runtime-only and must not write into world[x][z], cellMeshes, export JSON, saved worlds, or crowd people.
  • Movement uses WASD/arrows. Jump uses Space. Attack uses F. Class cycling uses [ / ].
  • The world-room avatar class API is exposed via window.__tinyworldWorlds: setAvatarClass(name), cycleAvatarClass(delta), avatarClass(), and avatarClasses().
  • Warrior/orc side-view avatars in engine/world/47-worlds-room.js are also 64px grid sheets: columns are animation frames and rows are directions. Crop to a single row with repeat.y = 1 / rows; do not sample a full 256px-tall column, or four stacked bodies render in-world.
  • The Worlds avatar picker/runtime should use the side-view Without_shadow sheets for swordsman/orc avatars unless the user explicitly asks for baked ground shadows.
  • Side-view swordsman/orc row order is front/down, left, right, back/up. Movement should update the sampled row from the camera-relative sector; do not fake left/right by flipping a single side row when the sheet has real side rows.

Assets:

  • Source template sheets live under models/people/25D/.
  • Idle/walk/run sheets are 64px grid sheets.
  • Attack sheets are 96px grid sheets.
  • Rows are ordered: down, downRight, right, upRight, up, upLeft, left, downLeft.
  • Generated class sheets live under models/people/25D/classes/<class>/ as idle.png, walk.png, and attack.png.
  • Regenerate class sheets with python3 tools/generate-playable-25d-classes.py.

When adding a class:

  1. Add the class name to CLASSES and an overlay function in tools/generate-playable-25d-classes.py.
  2. Add the class name to AVATAR_CLASSES in engine/world/47-worlds-room.js.
  3. Regenerate sheets, then run npm test and npm run build.

Version History

  • 2ffaf91 Current 2026-07-06 00:19

Same Skill Collection

.agents/skills/lightweight-3d-effects/SKILL.md
.agents/skills/threejs-primitive-reconstructor/SKILL.md
.agents/skills/tinyworld-i18n/SKILL.md
.claude/skills/tinyworld-i18n/SKILL.md
.codex/skills/threejs-primitive-reconstructor/SKILL.md
.codex/skills/tinyworld-asset-editing/SKILL.md
.codex/skills/tinyworld-auto-batching/SKILL.md
.codex/skills/tinyworld-block-button-style/SKILL.md
.codex/skills/tinyworld-cctv-truman/SKILL.md
.codex/skills/tinyworld-ghost-world-gen/SKILL.md
.codex/skills/tinyworld-integrations/SKILL.md
.codex/skills/tinyworld-island-and-planes/SKILL.md
.codex/skills/tinyworld-island-viewer/SKILL.md
.codex/skills/tinyworld-lowpoly-stylized-3d/SKILL.md
.codex/skills/tinyworld-lowpoly-world-prompt/SKILL.md
.codex/skills/tinyworld-mesh-terrain/SKILL.md
.codex/skills/tinyworld-opacity-torch/SKILL.md
.codex/skills/tinyworld-render-performance/SKILL.md
.codex/skills/tinyworld-runtime-state/SKILL.md
.codex/skills/tinyworld-settings/SKILL.md
.codex/skills/tinyworld-shader-fx/SKILL.md
.codex/skills/tinyworld-single-file/SKILL.md
.codex/skills/tinyworld-tile-variation/SKILL.md
.codex/skills/tinyworld-tinyverse-collectibles/SKILL.md
.codex/skills/tinyworld-tinyverse-race-track/SKILL.md
.codex/skills/tinyworld-tool-icons-and-modes/SKILL.md
.codex/skills/tinyworld-visual-qa/SKILL.md
.codex/skills/tinyworld-webxr/SKILL.md
.agents/skills/3d-modeling/SKILL.md
.agents/skills/fractal/SKILL.md
.agents/skills/poly-pizza-api/SKILL.md

Metadata

Files
0
Version
8afdf00
Hash
52a79bf2
Indexed
2026-07-06 00:19

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-05 02:37
浙ICP备14020137号-1 $bản đồ khách truy cập$