Agent Skillsjasonkneen/tiny-world-builder › tinyworld-tinyverse-race-track

tinyworld-tinyverse-race-track

GitHub

管理Tinyverse赛车赛道、桥梁及卡车的渲染与交互逻辑,包含地形适配、材质复用、静态网格合并及HUD状态同步。

.codex/skills/tinyworld-tinyverse-race-track/SKILL.md jasonkneen/tiny-world-builder

触发场景

修改赛车赛道或桥梁几何体 调整卡车动画或位置 变更展示表面显示隐藏钩子

安装

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-tinyverse-race-track -g -y
更多选项

非标准路径

npx skills add https://github.com/jasonkneen/tiny-world-builder/tree/main/.codex/skills/tinyworld-tinyverse-race-track -g -y

不安装直接使用

npx skills use jasonkneen/tiny-world-builder@tinyworld-tinyverse-race-track

指定 Agent (Claude Code)

npx skills add jasonkneen/tiny-world-builder --skill tinyworld-tinyverse-race-track -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-tinyverse-race-track",
    "description": "Use when changing the Tinyverse ground-surface race track, perimeter bridge loop, rally karts, or poser-surface show\/hide hook."
}

Tinyverse Race Track

The race track lives in engine/world/61-tinyverse-race-track.js.

Rules:

  • Keep the system isolated from avatar files. The track wraps window.__tinyworldPoserSurface.{build,show,hide} and attaches one root group under the poser-surface group.
  • Respect sky-island vs ground-surface separation: do not add race-track meshes to worldGroup directly and do not mutate editable island or home-grid cells.
  • The poser surface scales Y three times harder than X/Z. Keep root.scale.y = 1 / 3 and multiply sampled terrain heights by 3 before placing track/kart geometry.
  • Use existing TinyWorld material families (M.path, M.pathTrim, M.bridgeWood, M.bridgeWoodD, M.castleStoneD) instead of new texture assets. Clone them locally when the track needs fog=false readability, but never mutate shared M.* materials.
  • Keep static road/bridge pieces in a static subgroup and run mergeStaticBaseMeshesByMaterial(...) after authoring. Dynamic karts should stay in their own subgroup and animate by transform only.
  • The HUD should be visible only while the poser surface is visible. PS.hide() must hide it and clear active race state.
  • Keep an obvious user-facing entry point. The Play rally launcher should call watch(), descend to the poser surface, frame the route from the ground layer, and start the race after the descent settles. Do not leave the rally as a console-only or hidden-key feature.
  • Watch mode may set body.tinyverse-rally-watch to clear obstructive editor panels and use a lightweight follower camera. Keep this state scoped to watch() and clear it on hide.
  • Do not create a local requestAnimationFrame loop. The module exposes window.__tinyworldRaceTrack._tick(dt), and 25-animation-loop-schema.js calls it from the main loop; _tick must stay a fast no-op while hidden.
  • Public runtime hook: window.__tinyworldRaceTrack exposes show(), hide(), watch(), startRace(), stopRace(), rebuild(), group(), and routeLength().

Validation:

  • node --check engine/world/61-tinyverse-race-track.js
  • node tools/check.js
  • Visual check: click Play rally or call window.__tinyworldRaceTrack.watch() and confirm the app descends to the ground islands, frames the road loop, shows the HUD, and starts moving karts.

版本历史

  • 2ffaf91 当前 2026-07-06 00:20

同 Skill 集合

.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-25d-template-sprites/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-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

元信息

文件数
0
版本
8afdf00
Hash
a6afdf8c
收录时间
2026-07-06 00:20

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 01:16
浙ICP备14020137号-1 $访客地图$