@craft_eco/craft-mcp 0.0.0-stage → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -2
- package/bin/craft-mcp.mjs +7 -0
- package/dist-server/core/app-paths.mjs +15 -0
- package/dist-server/core/auth-store.mjs +70 -0
- package/dist-server/core/connector-auth.mjs +30 -0
- package/dist-server/core/http-utils.mjs +14 -0
- package/dist-server/game-workflow/asset-formats.mjs +76 -0
- package/dist-server/game-workflow/asset-import.mjs +113 -0
- package/dist-server/game-workflow/asset-inputs.mjs +10 -0
- package/dist-server/game-workflow/assets.mjs +161 -0
- package/dist-server/game-workflow/capture-worker.mjs +14 -0
- package/dist-server/game-workflow/check.mjs +74 -0
- package/dist-server/game-workflow/draft-archive.mjs +91 -0
- package/dist-server/game-workflow/draft-bindings.mjs +35 -0
- package/dist-server/game-workflow/draft-uploads.mjs +207 -0
- package/dist-server/game-workflow/engines.mjs +30 -0
- package/dist-server/game-workflow/library-assets.mjs +77 -0
- package/dist-server/game-workflow/library-candidates.mjs +37 -0
- package/dist-server/game-workflow/library-catalog.mjs +45 -0
- package/dist-server/game-workflow/project-leases.mjs +52 -0
- package/dist-server/game-workflow/projects.mjs +92 -0
- package/dist-server/game-workflow/publication-materials.mjs +67 -0
- package/dist-server/game-workflow/publications.mjs +146 -0
- package/dist-server/game-workflow/publish-capture-worker.mjs +57 -0
- package/dist-server/game-workflow/publish-capture.mjs +75 -0
- package/dist-server/game-workflow/request-store.mjs +52 -0
- package/dist-server/game-workflow/resource-catalog.mjs +97 -0
- package/dist-server/game-workflow/tasks.mjs +93 -0
- package/dist-server/mcp/asset-tools.mjs +42 -0
- package/dist-server/mcp/control-panel.html +17 -0
- package/dist-server/mcp/control-panel.mjs +40 -0
- package/dist-server/mcp/publication-tools.mjs +19 -0
- package/dist-server/mcp/server.mjs +297 -0
- package/dist-server/mcp/start.mjs +20 -0
- package/dist-server/preview/local-static-preview.mjs +71 -0
- package/dist-server/preview/preview-control.mjs +35 -0
- package/dist-server/preview/preview-launcher.mjs +26 -0
- package/dist-server/preview/preview-snapshot.mjs +35 -0
- package/dist-server/preview/preview-start.mjs +12 -0
- package/dist-server/preview/preview-worker.mjs +68 -0
- package/dist-server/upstream/craft-aigc.mjs +197 -0
- package/dist-server/upstream/library-url.mjs +14 -0
- package/dist-server/upstream/publication-transport.mjs +80 -0
- package/package.json +33 -4
- package/resources/craft-game-maker/SKILL.md +67 -0
- package/resources/craft-game-maker/js.md +9 -0
- package/resources/craft-game-maker/js3d.md +12 -0
- package/resources/game_visual_qa.mjs +1143 -0
- package/resources/js/context/CLAUDE.md +54 -0
- package/resources/js/context/agents/aigc-manager.md +91 -0
- package/resources/js/context/hooks/hooks.json +20 -0
- package/resources/js/context/knowledge/AigcEnabled.md +41 -0
- package/resources/js/context/knowledge/AigcWiring.md +200 -0
- package/resources/js/context/knowledge/AssetUrl.md +24 -0
- package/resources/js/context/knowledge/FrontendComponents.md +23 -0
- package/resources/js/context/knowledge/GameProbe.md +74 -0
- package/resources/js/context/knowledge/Lifecycle.md +27 -0
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -0
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +115 -0
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +392 -0
- package/resources/js/context/knowledge/PlatformServices.md +184 -0
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -0
- package/resources/js/context/knowledge/Ui.md +11 -0
- package/resources/js/context/knowledge/UiEditorCompat.md +21 -0
- package/resources/js/context/rules/MultiplayerCapability.md +23 -0
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +63 -0
- package/resources/js/context/rules/PlatformBoundaryModules.md +43 -0
- package/resources/js/context/skills/aigc-generate/SKILL.md +301 -0
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +39 -0
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +14 -0
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +129 -0
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +54 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +50 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +201 -0
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +53 -0
- package/resources/js/context/skills/aigc-generate/scripts/apply-results.mjs +83 -0
- package/resources/js/context/skills/aigc-generate/scripts/config.json +29 -0
- package/resources/js/context/skills/aigc-generate/scripts/generate.mjs +1016 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/client.mjs +228 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/ledger.mjs +119 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/nstep-handoff.mjs +100 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/pipelines.mjs +441 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/queue.mjs +283 -0
- package/resources/js/context/skills/aigc-generate/scripts/lib/submit.mjs +122 -0
- package/resources/js/context/skills/aigc-generate/scripts/worker.mjs +171 -0
- package/resources/js/context/skills/asset-search/SKILL.md +73 -0
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +62 -0
- package/resources/js/context/skills/asset-search/scripts/config.json +5 -0
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +125 -0
- package/resources/js/context/skills/asset-search/scripts/recalled_sprite_paths.mjs +47 -0
- package/resources/js/context/skills/asset-search/scripts/search.mjs +749 -0
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +723 -0
- package/resources/js/context/skills/asset-search/strategies/audio.md +34 -0
- package/resources/js/context/skills/asset-search/strategies/character2d.md +33 -0
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +31 -0
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +22 -0
- package/resources/js/context/skills/asset-search/strategies/texture-ui.md +35 -0
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +40 -0
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +28 -0
- package/resources/js/context/skills/display-info-setup/SKILL.md +32 -0
- package/resources/js/context/skills/display-info-setup/scripts/init_project.mjs +38 -0
- package/resources/js/context/skills/export-config/SKILL.md +20 -0
- package/resources/js/context/skills/export-config/scripts/assert-asset-wiring.mjs +72 -0
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +43 -0
- package/resources/js/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/js/context/skills/export-config/scripts/sync-asset-controls.mjs +351 -0
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +163 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +92 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +7 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +22 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/platform.mjs +29 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/release.json +37 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tooling/vite.mjs +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +32 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +121 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +254 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +99 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +14 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +172 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +165 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +20 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +4 -0
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +109 -0
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +260 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +50 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +881 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -0
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +134 -0
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +311 -0
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +106 -0
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +89 -0
- package/resources/js/context/skills/platform-services/SKILL.md +94 -0
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +783 -0
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +57 -0
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -0
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +35 -0
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +25 -0
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +49 -0
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +1 -0
- package/resources/js/context/skills/platform-services/assets/release.json +44 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -0
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -0
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +139 -0
- package/resources/js/context/skills/platform-services/references/api_reference.md +18 -0
- package/resources/js/context/skills/platform-services/scripts/install.mjs +134 -0
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +202 -0
- package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +121 -0
- package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +254 -0
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +98 -0
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +200 -0
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +134 -0
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +119 -0
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +338 -0
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +94 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +13 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +6 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +25 -0
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +18 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +42 -0
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +144 -0
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +330 -0
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +64 -0
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +28 -0
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +47 -0
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +64 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +38 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +9 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +59 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +30 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +66 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +20 -0
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +26 -0
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +73 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +162 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +853 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +173 -0
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +427 -0
- package/resources/js/context/skills/scene-editor-compat/version.json +1 -0
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +48 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +74 -0
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -0
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +132 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -0
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -0
- package/resources/js/context/skills/version-update/SKILL.md +192 -0
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -0
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +159 -0
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +157 -0
- package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js/context/skills/visual-qa/SKILL.md +36 -0
- package/resources/js/context/version/version.json +1 -0
- package/resources/js/project/.gitattributes +2 -0
- package/resources/js/project/README.md +99 -0
- package/resources/js/project/SPEC/assist/.gitkeep +0 -0
- package/resources/js/project/SPEC/guide/.gitkeep +0 -0
- package/resources/js/project/SPEC/plan/.gitkeep +0 -0
- package/resources/js/project/SPEC/readme.md +6 -0
- package/resources/js/project/SPEC/res/.gitkeep +0 -0
- package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
- package/resources/js/project/configs/assets.json +1 -0
- package/resources/js/project/configs/game.controls.json +3 -0
- package/resources/js/project/configs/game.json +3 -0
- package/resources/js/project/game-runtime.json +7 -0
- package/resources/js/project/gameplay-probe.json +37 -0
- package/resources/js/project/index.html +20 -0
- package/resources/js/project/package-lock.json +1155 -0
- package/resources/js/project/package.json +23 -0
- package/resources/js/project/projectDisplayInfo.json +7 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +29 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/release.json +37 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js/project/scripts/config-export.mjs +32 -0
- package/resources/js/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js/project/src/display/ui-stage.ts +121 -0
- package/resources/js/project/src/display/viewport.ts +254 -0
- package/resources/js/project/src/main.ts +99 -0
- package/resources/js/project/src/platform.ts +14 -0
- package/resources/js/project/src/scenes/LoadScene.ts +89 -0
- package/resources/js/project/src/scenes/PlayScene.ts +17 -0
- package/resources/js/project/src/screenUi.ts +172 -0
- package/resources/js/project/src/style.css +165 -0
- package/resources/js/project/tsconfig.json +20 -0
- package/resources/js/project/unified_data_control_config.json +20 -0
- package/resources/js/project/vendor/core-manager-js/package.json +33 -0
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +42 -0
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +41 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +90 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +203 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +106 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +25 -0
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +21 -0
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +65 -0
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +340 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +87 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +92 -0
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +271 -0
- package/resources/js/project/vendor/core-manager-js/src/index.ts +31 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +81 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +43 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +32 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +141 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +20 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +183 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +304 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +351 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +180 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +13 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +14 -0
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +68 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +433 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +118 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +444 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +485 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +66 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +149 -0
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +9 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +29 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +88 -0
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +122 -0
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +24 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +318 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +151 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +235 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +98 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +94 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +209 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +106 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +341 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +68 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +236 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +22 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +29 -0
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +197 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +9 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +555 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +112 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +178 -0
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +246 -0
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +139 -0
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +15 -0
- package/resources/js/project/vendor/run.sh +107 -0
- package/resources/js/project/version/craft_feature_version.json +42 -0
- package/resources/js/project/version/project_feature_version.json +11 -0
- package/resources/js/project/vite.config.ts +4 -0
- package/resources/js3d/context/CLAUDE.md +50 -0
- package/resources/js3d/context/hooks/hooks.json +20 -0
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +87 -0
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +69 -0
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +42 -0
- package/resources/js3d/context/knowledge/FrontendComponents.md +23 -0
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +114 -0
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +117 -0
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +430 -0
- package/resources/js3d/context/knowledge/PlatformServices.md +162 -0
- package/resources/js3d/context/knowledge/Runtime.md +30 -0
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +34 -0
- package/resources/js3d/context/knowledge/StepByStep.md +21 -0
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +242 -0
- package/resources/js3d/context/knowledge/UiEditorCompat.md +21 -0
- package/resources/js3d/context/rules/MultiplayerCapability.md +27 -0
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +63 -0
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +43 -0
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +176 -0
- package/resources/js3d/context/skills/aigc-integration/callback.md +56 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +22 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +38 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +33 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +36 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +37 -0
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +35 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/config.json +3 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/lib/submit.mjs +344 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/query-music.mjs +53 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/query-results.mjs +53 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-cover.mjs +44 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-image.mjs +48 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-music.mjs +34 -0
- package/resources/js3d/context/skills/aigc-integration/scripts/submit-staticmesh.mjs +39 -0
- package/resources/js3d/context/skills/asset-search/SKILL.md +159 -0
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +56 -0
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +62 -0
- package/resources/js3d/context/skills/asset-search/scripts/config.json +213 -0
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +885 -0
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +79 -0
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +74 -0
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +597 -0
- package/resources/js3d/context/skills/export-config/scripts/assert-asset-wiring.mjs +83 -0
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +53 -0
- package/resources/js3d/context/skills/export-config/scripts/panel-resource-path.mjs +106 -0
- package/resources/js3d/context/skills/export-config/scripts/sync-asset-controls.mjs +325 -0
- package/resources/js3d/context/skills/export-config/scripts/sync-scene-assets.mjs +181 -0
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +163 -0
- package/resources/js3d/context/skills/game-art-style/SKILL.md +60 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cartoon.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/comic.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cozy.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/cyber.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/horror.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/lowpoly.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/paper.png +0 -0
- package/resources/js3d/context/skills/game-art-style/assets/previews/voxel.png +0 -0
- package/resources/js3d/context/skills/game-art-style/references/art-parameters-lite.md +38 -0
- package/resources/js3d/context/skills/game-art-style/references/construction.md +111 -0
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +105 -0
- package/resources/js3d/context/skills/game-art-style/references/sources.md +25 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +175 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +168 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +191 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +165 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +173 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +185 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +181 -0
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +189 -0
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +88 -0
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +284 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +104 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +952 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +92 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +245 -0
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +256 -0
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +311 -0
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +106 -0
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +74 -0
- package/resources/js3d/context/skills/platform-services/SKILL.md +94 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +783 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +57 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +39 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +35 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +25 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +49 -0
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +1 -0
- package/resources/js3d/context/skills/platform-services/assets/release.json +44 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +7 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +264 -0
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +39 -0
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +139 -0
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +18 -0
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +134 -0
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +170 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +121 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +244 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +127 -0
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +188 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +124 -0
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +117 -0
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +338 -0
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +599 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +141 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +92 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +125 -0
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +113 -0
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +1187 -0
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +52 -0
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +4 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +94 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +50 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +105 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +147 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +79 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +56 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +51 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +55 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +78 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +84 -0
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +120 -0
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +4 -0
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +238 -0
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +59 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +35 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +61 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +60 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +45 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +265 -0
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +7 -0
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +110 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +327 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +80 -0
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +84 -0
- package/resources/js3d/context/skills/version-update/SKILL.md +191 -0
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +129 -0
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +159 -0
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +157 -0
- package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js3d/context/version/version.json +1 -0
- package/resources/js3d/project/.gitattributes +2 -0
- package/resources/js3d/project/README.md +100 -0
- package/resources/js3d/project/configs/game.controls.json +3 -0
- package/resources/js3d/project/configs/game.json +3 -0
- package/resources/js3d/project/game-runtime.json +7 -0
- package/resources/js3d/project/gameplay-probe.json +38 -0
- package/resources/js3d/project/index.html +12 -0
- package/resources/js3d/project/package-lock.json +1204 -0
- package/resources/js3d/project/package.json +24 -0
- package/resources/js3d/project/projectDisplayInfo.json +7 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +19 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +39 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +227 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +25 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +79 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +30 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +49 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +39 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +8 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +3 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +7 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +24 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +2 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +10 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +20 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +21 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +36 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +359 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.test.mjs +25 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +17 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +40 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +10 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +1 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +8 -0
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +1 -0
- package/resources/js3d/project/scripts/config-export.mjs +32 -0
- package/resources/js3d/project/scripts/refresh-runtime.mjs +50 -0
- package/resources/js3d/project/src/display/ui-stage.ts +121 -0
- package/resources/js3d/project/src/display/viewport.ts +244 -0
- package/resources/js3d/project/src/main.ts +83 -0
- package/resources/js3d/project/src/platform.ts +14 -0
- package/resources/js3d/project/src/style.css +17 -0
- package/resources/js3d/project/tsconfig.json +20 -0
- package/resources/js3d/project/unified_data_control_config.json +20 -0
- package/resources/js3d/project/vendor/core-manager-three/package.json +12 -0
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +2 -0
- package/resources/js3d/project/vendor/run.sh +4 -0
- package/resources/js3d/project/version/craft_feature_version.json +42 -0
- package/resources/js3d/project/version/project_feature_version.json +11 -0
- package/resources/js3d/project/vite.config.ts +4 -0
- package/vendor/agent-cli/dist/runtime-tools/registry.json +6 -0
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle-types.d.cts +15 -0
- package/vendor/agent-cli/dist/runtime-tools/tool-bundle.cjs +129 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/blender-cook-assets.cjs +296 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/context-adapter.cjs +48 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/scene-process-lock.cjs +110 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/tool-manifest.json +22 -0
- package/vendor/agent-cli/dist/runtime-tools/ue/ue-asset-references.cjs +305 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts +3 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js +45 -0
- package/vendor/agent-cli/dist/src/artifacts/context-finalize.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +57 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +198 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +32 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +146 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts +28 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.js +384 -0
- package/vendor/agent-cli/dist/src/artifacts/restore.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts +15 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.js +152 -0
- package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts +4 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.js +24 -0
- package/vendor/agent-cli/dist/src/cli/commands/process.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts +23 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js +62 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-controls.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts +9 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js +15 -0
- package/vendor/agent-cli/dist/src/cli/commands/run-mock.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts +3 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.js +284 -0
- package/vendor/agent-cli/dist/src/cli/commands/run.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts +11 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.js +161 -0
- package/vendor/agent-cli/dist/src/cli/commands/setup.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/options.d.ts +83 -0
- package/vendor/agent-cli/dist/src/cli/options.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/options.js +213 -0
- package/vendor/agent-cli/dist/src/cli/options.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts +5 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.js +276 -0
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/registry.d.ts +55 -0
- package/vendor/agent-cli/dist/src/cli/registry.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/registry.js +99 -0
- package/vendor/agent-cli/dist/src/cli/registry.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts +44 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js +83 -0
- package/vendor/agent-cli/dist/src/cli/render/jsonl-sink.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts +28 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js +52 -0
- package/vendor/agent-cli/dist/src/cli/render/text-sink.js.map +1 -0
- package/vendor/agent-cli/dist/src/cli.d.ts +9 -0
- package/vendor/agent-cli/dist/src/cli.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli.js +54 -0
- package/vendor/agent-cli/dist/src/cli.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts +24 -0
- package/vendor/agent-cli/dist/src/component/execution.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/execution.js +131 -0
- package/vendor/agent-cli/dist/src/component/execution.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts +24 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.js +200 -0
- package/vendor/agent-cli/dist/src/component/platform-access/server.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts +31 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js +57 -0
- package/vendor/agent-cli/dist/src/component/preparation-diagnostics.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation.d.ts +10 -0
- package/vendor/agent-cli/dist/src/component/preparation.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/preparation.js +35 -0
- package/vendor/agent-cli/dist/src/component/preparation.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts +15 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.js +37 -0
- package/vendor/agent-cli/dist/src/component/runtime-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime.d.ts +8 -0
- package/vendor/agent-cli/dist/src/component/runtime.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/component/runtime.js +95 -0
- package/vendor/agent-cli/dist/src/component/runtime.js.map +1 -0
- package/vendor/agent-cli/dist/src/config/config-store.d.ts +50 -0
- package/vendor/agent-cli/dist/src/config/config-store.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/config/config-store.js +117 -0
- package/vendor/agent-cli/dist/src/config/config-store.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts +17 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.js +133 -0
- package/vendor/agent-cli/dist/src/context/cache-lease.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts +9 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js +51 -0
- package/vendor/agent-cli/dist/src/context/cache-prune-diagnostics.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.js +54 -0
- package/vendor/agent-cli/dist/src/context/cache-publication.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts +12 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.js +100 -0
- package/vendor/agent-cli/dist/src/context/client-context-view.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/context-budget.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-budget.js +10 -0
- package/vendor/agent-cli/dist/src/context/context-budget.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts +108 -0
- package/vendor/agent-cli/dist/src/context/context-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-cache.js +357 -0
- package/vendor/agent-cli/dist/src/context/context-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-project.d.ts +26 -0
- package/vendor/agent-cli/dist/src/context/context-project.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-project.js +113 -0
- package/vendor/agent-cli/dist/src/context/context-project.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/context-resource.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-resource.js +11 -0
- package/vendor/agent-cli/dist/src/context/context-resource.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts +9 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js +134 -0
- package/vendor/agent-cli/dist/src/context/context-snapshot-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts +4 -0
- package/vendor/agent-cli/dist/src/context/local-skills.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/local-skills.js +157 -0
- package/vendor/agent-cli/dist/src/context/local-skills.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-context.d.ts +19 -0
- package/vendor/agent-cli/dist/src/context/member-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-context.js +105 -0
- package/vendor/agent-cli/dist/src/context/member-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/member-documents.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-documents.js +38 -0
- package/vendor/agent-cli/dist/src/context/member-documents.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.js +62 -0
- package/vendor/agent-cli/dist/src/context/member-profile-header.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts +43 -0
- package/vendor/agent-cli/dist/src/context/member-profile.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-profile.js +91 -0
- package/vendor/agent-cli/dist/src/context/member-profile.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts +7 -0
- package/vendor/agent-cli/dist/src/context/member-selection.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/member-selection.js +58 -0
- package/vendor/agent-cli/dist/src/context/member-selection.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts +6 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.js +24 -0
- package/vendor/agent-cli/dist/src/context/script-dependencies.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts +3 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js +55 -0
- package/vendor/agent-cli/dist/src/context/shared-cache-build.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts +39 -0
- package/vendor/agent-cli/dist/src/context/team-definition.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-definition.js +78 -0
- package/vendor/agent-cli/dist/src/context/team-definition.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts +7 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.js +37 -0
- package/vendor/agent-cli/dist/src/context/team-knowledge.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts +27 -0
- package/vendor/agent-cli/dist/src/context/template-cache.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-cache.js +100 -0
- package/vendor/agent-cli/dist/src/context/template-cache.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts +32 -0
- package/vendor/agent-cli/dist/src/context/template-seed.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/template-seed.js +117 -0
- package/vendor/agent-cli/dist/src/context/template-seed.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts +19 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +292 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts +13 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.js +178 -0
- package/vendor/agent-cli/dist/src/context/user-skill-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts +54 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.js +184 -0
- package/vendor/agent-cli/dist/src/context/user-skill-install.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts +14 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.js +130 -0
- package/vendor/agent-cli/dist/src/context/zip-extract.js.map +1 -0
- package/vendor/agent-cli/dist/src/index.d.ts +56 -0
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/index.js +82 -0
- package/vendor/agent-cli/dist/src/index.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts +68 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js +242 -0
- package/vendor/agent-cli/dist/src/lifecycle/engine-hooks.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts +40 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js +87 -0
- package/vendor/agent-cli/dist/src/lifecycle/hook-command.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts +134 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.js +152 -0
- package/vendor/agent-cli/dist/src/lifecycle/registry.js.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts +40 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js +149 -0
- package/vendor/agent-cli/dist/src/lifecycle/workspace-change.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/client.d.ts +12 -0
- package/vendor/agent-cli/dist/src/mcp/client.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/client.js +95 -0
- package/vendor/agent-cli/dist/src/mcp/client.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts +14 -0
- package/vendor/agent-cli/dist/src/mcp/connection.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/connection.js +115 -0
- package/vendor/agent-cli/dist/src/mcp/connection.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts +5 -0
- package/vendor/agent-cli/dist/src/mcp/execute.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/execute.js +26 -0
- package/vendor/agent-cli/dist/src/mcp/execute.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts +11 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js +51 -0
- package/vendor/agent-cli/dist/src/mcp/instance-lock.js.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/types.d.ts +27 -0
- package/vendor/agent-cli/dist/src/mcp/types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/mcp/types.js +2 -0
- package/vendor/agent-cli/dist/src/mcp/types.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/input.d.ts +21 -0
- package/vendor/agent-cli/dist/src/protocol/input.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/input.js +95 -0
- package/vendor/agent-cli/dist/src/protocol/input.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts +58 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.js +337 -0
- package/vendor/agent-cli/dist/src/protocol/link/channel.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts +13 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js +27 -0
- package/vendor/agent-cli/dist/src/protocol/link/codec-json.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts +57 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js +93 -0
- package/vendor/agent-cli/dist/src/protocol/link/envelope.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts +28 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js +86 -0
- package/vendor/agent-cli/dist/src/protocol/link/liveness.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts +14 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js +40 -0
- package/vendor/agent-cli/dist/src/protocol/link/middleware.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts +31 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js +90 -0
- package/vendor/agent-cli/dist/src/protocol/link/rpc.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts +32 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js +106 -0
- package/vendor/agent-cli/dist/src/protocol/link/transport-ws.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts +509 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js +131 -0
- package/vendor/agent-cli/dist/src/protocol/messages/errors.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +351 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +103 -0
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts +9 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js +58 -0
- package/vendor/agent-cli/dist/src/security/binary-read-receipts.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts +21 -0
- package/vendor/agent-cli/dist/src/security/command-parse.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-parse.js +395 -0
- package/vendor/agent-cli/dist/src/security/command-parse.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts +30 -0
- package/vendor/agent-cli/dist/src/security/command-translate.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/command-translate.js +161 -0
- package/vendor/agent-cli/dist/src/security/command-translate.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts +18 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.js +121 -0
- package/vendor/agent-cli/dist/src/security/context-write-policy.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/guard.d.ts +41 -0
- package/vendor/agent-cli/dist/src/security/guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/guard.js +154 -0
- package/vendor/agent-cli/dist/src/security/guard.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts +47 -0
- package/vendor/agent-cli/dist/src/security/mount-table.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/mount-table.js +164 -0
- package/vendor/agent-cli/dist/src/security/mount-table.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts +23 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.js +110 -0
- package/vendor/agent-cli/dist/src/security/sandbox-path.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts +5 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js +16 -0
- package/vendor/agent-cli/dist/src/security/tool-run-owner.js.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts +16 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.js +88 -0
- package/vendor/agent-cli/dist/src/security/tool-scope.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts +116 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/client.js +376 -0
- package/vendor/agent-cli/dist/src/session/client.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts +6 -0
- package/vendor/agent-cli/dist/src/session/custom-context.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/custom-context.js +100 -0
- package/vendor/agent-cli/dist/src/session/custom-context.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts +38 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.js +87 -0
- package/vendor/agent-cli/dist/src/session/engine-decide.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts +4 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.js +15 -0
- package/vendor/agent-cli/dist/src/session/execution-settlement.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-config.d.ts +13 -0
- package/vendor/agent-cli/dist/src/session/link-config.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-config.js +29 -0
- package/vendor/agent-cli/dist/src/session/link-config.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts +30 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.js +67 -0
- package/vendor/agent-cli/dist/src/session/link-outcome.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +76 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/link-session.js +412 -0
- package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts +28 -0
- package/vendor/agent-cli/dist/src/session/local-execution.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/local-execution.js +119 -0
- package/vendor/agent-cli/dist/src/session/local-execution.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts +22 -0
- package/vendor/agent-cli/dist/src/session/member-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/member-tools.js +72 -0
- package/vendor/agent-cli/dist/src/session/member-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts +7 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js +30 -0
- package/vendor/agent-cli/dist/src/session/process-artifact-publisher.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/process-environment.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-environment.js +22 -0
- package/vendor/agent-cli/dist/src/session/process-environment.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +36 -0
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/process-request.js +494 -0
- package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts +8 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.js +34 -0
- package/vendor/agent-cli/dist/src/session/reference-tools.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-events.d.ts +81 -0
- package/vendor/agent-cli/dist/src/session/run-events.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-events.js +160 -0
- package/vendor/agent-cli/dist/src/session/run-events.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts +76 -0
- package/vendor/agent-cli/dist/src/session/run-setup.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-setup.js +273 -0
- package/vendor/agent-cli/dist/src/session/run-setup.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +41 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.js +64 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts +17 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.js +75 -0
- package/vendor/agent-cli/dist/src/session/team-persistence.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts +37 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js +232 -0
- package/vendor/agent-cli/dist/src/session/tool-scheduler.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts +5 -0
- package/vendor/agent-cli/dist/src/session/user-choice.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-choice.js +80 -0
- package/vendor/agent-cli/dist/src/session/user-choice.js.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts +31 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js +104 -0
- package/vendor/agent-cli/dist/src/session/user-skill-loaded.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts +13 -0
- package/vendor/agent-cli/dist/src/shared/app-id.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/app-id.js +25 -0
- package/vendor/agent-cli/dist/src/shared/app-id.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts +13 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.js +16 -0
- package/vendor/agent-cli/dist/src/shared/auth-headers.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts +3 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.js +22 -0
- package/vendor/agent-cli/dist/src/shared/cli-version.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts +14 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.js +29 -0
- package/vendor/agent-cli/dist/src/shared/error-detail.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts +36 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.js +94 -0
- package/vendor/agent-cli/dist/src/shared/output-guard.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts +3 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.js +11 -0
- package/vendor/agent-cli/dist/src/shared/process-cwd.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts +60 -0
- package/vendor/agent-cli/dist/src/shared/process-types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/process-types.js +10 -0
- package/vendor/agent-cli/dist/src/shared/process-types.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts +7 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.js +113 -0
- package/vendor/agent-cli/dist/src/shared/server-headers.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts +47 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js +210 -0
- package/vendor/agent-cli/dist/src/shared/shell-runtime.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts +458 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.js +2 -0
- package/vendor/agent-cli/dist/src/shared/types.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts +22 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.js +2 -0
- package/vendor/agent-cli/dist/src/shared/user-choice.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts +9 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js +85 -0
- package/vendor/agent-cli/dist/src/tools/artifact-publisher.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts +30 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.js +96 -0
- package/vendor/agent-cli/dist/src/tools/command-executor.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts +16 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js +104 -0
- package/vendor/agent-cli/dist/src/tools/context-program-publish.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts +21 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js +207 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts +61 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.js +477 -0
- package/vendor/agent-cli/dist/src/tools/file-ops.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts +58 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.js +322 -0
- package/vendor/agent-cli/dist/src/tools/local-hands.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts +24 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js +160 -0
- package/vendor/agent-cli/dist/src/tools/ripgrep-search.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts +66 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js +65 -0
- package/vendor/agent-cli/dist/src/tools/tool-contract.gen.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts +29 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js +88 -0
- package/vendor/agent-cli/dist/src/tools/tool-timeout.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts +42 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.js +34 -0
- package/vendor/agent-cli/dist/src/tools/write-guard.js.map +1 -0
- package/vendor/agent-cli/package.json +29 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# 经典卡通:连续圆润体积与厚实结构
|
|
2
|
+
|
|
3
|
+
游戏相机完全沿用整体框架;本卡只调整美术,不改投影、角度、位置、目标、距离、缩放或跟随。近景或侧视诊断仅在独立资产检查中进行,不改正式游戏镜头。
|
|
4
|
+
|
|
5
|
+
本页示例角色、比例数值与构造片段是工法起点;先按本游戏主题与玩法确定角色身份和主剪影,再依本页风格规则绘制,不把示例原样当固定成品。
|
|
6
|
+
|
|
7
|
+
默认移动角色不附展示底座,脚或设计接触部位直接落在实际地表;明确玩法/用户美术要求中的棋子底盘、滑板、载具或角色基座按设计保留。场景地台独立,不能把接地阴影或碰撞代理做成角色脚下随行的可见方块。
|
|
8
|
+
|
|
9
|
+
本页在风格路由选中 `cartoon` 后读取。用于把用户题材画成有清楚身份、自然日光和克制表情的立体卡通;先复用已初始化框架,再实现资产。它不是工坊场景模板,不预设角色数量、物种、建筑用途或游戏任务。
|
|
10
|
+
|
|
11
|
+
## 画面目标与默认条件
|
|
12
|
+
|
|
13
|
+
画面像一组做工明确的彩色玩具:生命体的额、颊、肩、腹和背形成连贯鼓面,建筑、器物与地形保留宽平面和柔角,耳尖、屋顶和叶尖提供少量方向。圆、方、三角各有职责,不能把所有对象都拼成大小接近的球。
|
|
14
|
+
|
|
15
|
+
主形先读得懂,五官再说明性格。亮面保留本色,暗面保留体积;角色周围有空隙,树木与建筑建立背景尺度,装饰成簇地出现在结构或活动有意义的位置。
|
|
16
|
+
|
|
17
|
+
- **默认时间**:晴朗日间,中性日光;不默认夕阳、金黄色滤镜或持续天气变化。
|
|
18
|
+
- **默认季节**:初夏是本上下文的建议默认。源小样只明确晴日与绿色植物,没有声明季节;采用它不意味着增加作物、节庆或季节玩法。
|
|
19
|
+
- **默认颜色**:沿用下表的自然草绿、森林绿、暖白、砖红与少量橙蓝。用户指定题材或配色时保留面积、明度与材质分工,再替换色相。
|
|
20
|
+
- **实现优先级**:框架既有游戏视角中的轮廓和五官 → 连续体积 → 材质与日光 → 接地及装配 → 环境层次 → 小装饰。
|
|
21
|
+
|
|
22
|
+
依据是已查看的原创小样 `cartoon.png`、`scenes/cartoon.js`、`lib.js` 与 `ART_DIRECTION.md`;写法参照用户的《晴野小岛-风格复现提示词》。小样运行版本 r186,目标框架 r185;数值用于校准起点,不保证跨版本同像素。这里不复制小样对象清单、布局或完整场景函数。
|
|
23
|
+
|
|
24
|
+
## 从题材得到主形
|
|
25
|
+
|
|
26
|
+
先为每个资产写一句轮廓描述,例如“前胸宽、短后身、立耳、弯尾的警觉小兽”或“宽底座、短支柱、厚钳口的工作夹具”。这句话要能指导形体,不能只写“可爱、精致”。
|
|
27
|
+
|
|
28
|
+
拆成主导体块、承托体块、少量辨识部件;正面和侧面一起考虑。头、胸腹、口鼻之间需要连续体积时使用一个变形曲面,别用几个相切球留下装配缝。独立部件只出现在结构确实分开的地方:耳根、袖口、手柄接头、门框、屋檐。
|
|
29
|
+
|
|
30
|
+
| 对象 | 主形与连接方法 | 迁移到新题材时的判断 |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| 人物 | 柔方头面;短厚躯干;圆肩袖口;短肢与宽鞋底。头发以包覆头壳和一条有方向的前缘成立 | 职业由一个有用途的主要附件说明,不用扣带堆满衣服 |
|
|
33
|
+
| 四足动物 | 一体胸腹决定长短和重心;头颊、口鼻、耳尾改变物种;腿从肩胛和骨盆区域生出 | 换成无色剪影仍区别猫、犬、鹿或新物种;腹背不能像串珠 |
|
|
34
|
+
| 鸟与水生物 | 斜水滴腹背或连续梭形躯干;翼、鳍贴着主体切线连接;喙和尾提供方向 | 正面有厚度,侧面有姿势;不能只替换球体颜色 |
|
|
35
|
+
| 怪物 | 梨形、卵形、上宽下窄或横展轮廓先定义性格;口部和触肢根部与躯干过渡 | 多肢、甲壳或角按功能分组;拟人程度由请求决定,不自动长人脸 |
|
|
36
|
+
| 植物 | 主干、分枝、主冠、少量侧冠;常青树以宽缓旋转截面做软锥,阔叶树以大小不等冠块组合 | 冠层有完整外轮廓和重量,不是均匀小球粒团;叶从叶柄展开 |
|
|
37
|
+
| 建筑 | 基座承墙,墙承厚屋顶;檐口、门窗退进和厚度清楚;柔角保留结构宽面 | 科幻舱、商店、城堡都从承托、开口、遮雨/防护作用出发 |
|
|
38
|
+
| 工具与载具 | 容器有壁厚,把手接壳体,轮子共享车轴,操作件有支点 | 最先读出用途;夸张握柄和主功能件,减少真实产品的细碎装配 |
|
|
39
|
+
|
|
40
|
+
比例使用完整尺寸,不把宽度当半径。当前小样人物头宽约为躯干宽的 1.1 倍,头高约占不含发饰总高的一半;可从头宽/躯干宽 **1.1–1.3**、头高/总高 **0.43–0.5** 起步。它比修长人物紧凑,但不是所有物种都套同一头身。
|
|
41
|
+
|
|
42
|
+
柔角结构件的倒角可先取最短边的 **4%–10%**;独立资产细节检查中需要看到宽平面,正式游戏画面中需要看到边缘受光。若倒角吃掉整个平面,物件会像泡沫;若只剩极细高光,轮廓仍显尖硬。
|
|
43
|
+
|
|
44
|
+
## 连续曲面怎样画
|
|
45
|
+
|
|
46
|
+
头脸不要只提高球体细分。先改变截面:额头略宽、脸颊饱满、下颌按性格收窄;短衣服按肩、胸、腰、下摆组成连续封闭曲面。相邻截面使用相同顶点顺序连接,平滑法线服务宽缓转折;需要硬边的帽檐和结构件单独断开法线。
|
|
47
|
+
|
|
48
|
+
下面是柔方主形的简短起点。局部原点为体块中心、正面为 `+Z`;`w/h/d` 均为完整尺寸,`e` 控制曲率。它适合头颅、胸腹或小器物主体,不能独自代替骨架与身份设计。
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
import * as THREE from 'three';
|
|
52
|
+
|
|
53
|
+
export function softVolume(w, h, d, e = 0.8) {
|
|
54
|
+
if (Math.min(w, h, d, e) <= 0 || e > 1)
|
|
55
|
+
throw new RangeError('尺寸必须为正,曲率 e 在 (0,1] 内');
|
|
56
|
+
const g = new THREE.SphereGeometry(1, 32, 24);
|
|
57
|
+
const p = g.attributes.position, n = g.attributes.normal;
|
|
58
|
+
const s = (v, power) => Math.sign(v) * Math.abs(v) ** power;
|
|
59
|
+
const rx = w / 2, ry = h / 2, rz = d / 2, power = 2 / e;
|
|
60
|
+
const normal = new THREE.Vector3();
|
|
61
|
+
for (let i = 0; i < p.count; i++) {
|
|
62
|
+
const x = s(p.getX(i), e), y = s(p.getY(i), e);
|
|
63
|
+
const z = s(p.getZ(i), e);
|
|
64
|
+
p.setXYZ(i, x * rx, y * ry, z * rz);
|
|
65
|
+
normal.set(s(x, power - 1) / rx, s(y, power - 1) / ry,
|
|
66
|
+
s(z, power - 1) / rz).normalize();
|
|
67
|
+
n.setXYZ(i, normal.x, normal.y, normal.z);
|
|
68
|
+
}
|
|
69
|
+
p.needsUpdate = n.needsUpdate = true;
|
|
70
|
+
g.computeBoundingBox(); g.computeBoundingSphere();
|
|
71
|
+
return g;
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
接近小样可试 `e=0.7–0.95`:较低值形成宽柔方颊,接近 1 时更圆。继续收下颌或偏移鼻梁时,要同步重算法线;上面的法线只对应未二次变形的曲面。不要让所有资产共享同一个 `e` 与长宽比。
|
|
76
|
+
|
|
77
|
+
软锥树冠用纵向轮廓旋转:底部略内收 → 下中段最宽 → 中上段收窄 → 圆缓顶点。层间有重叠,外轮廓仍连续;大冠与少量侧冠形成品种差异。石块可以更概括、有宽切面,角色皮肤则保持平滑。
|
|
78
|
+
|
|
79
|
+
头发先沿真实头颅建立有发际线的贴合发壳,再按分缝/发旋排少量宽发簇。用连续的刘海前缘连接鬓角、耳后和后发,发簇根部并入主体,末端才收窄;先读出完整发型,再补顺发流的浅分界。避免水平球帽、裸露球顶贴眉形发片、随机触角条及大块拼缝。短发、长发、束发或剃发按本游戏角色身份选择,具体连接见 [头部组合与头发构造](../construction.md#头部组合与头发构造)。
|
|
80
|
+
|
|
81
|
+
## 五官、情绪与动作
|
|
82
|
+
|
|
83
|
+
默认使用**豆豆眼**:深色的小圆或椭圆直接贴合脸面,与小鼻、短嘴共同保留脸部留白。不叠球形眼白、虹膜、瞳孔和高光罩制造塑料凸眼;当前用户明确要求其他眼型或采用不同面部方案时优先执行该定义。源小样的眼宽约为头宽 **7%–10%**,双眼中心距约为头宽 **35%–38%**,只是校准起点,不固定所有角色的头型、眼距或比例。
|
|
84
|
+
|
|
85
|
+
1. 先确定视线和眼线高度,再放眉、嘴与鼻。口鼻突出来自形体,不能用高亮贴片代替。
|
|
86
|
+
2. 对上述柔方曲面,令 `p=2/e`,局部 `z=rz*(1-|x/rx|^p-|y/ry|^p)^(1/p)`;括号内必须大于 0。法线取该隐式曲面的梯度并归一化。
|
|
87
|
+
3. 豆豆眼优先画在头部 UV 上,或用随脸面弯曲的单层薄片;仅作抵消深度精度问题的微偏移,侧看不露悬空圆片、厚边或层叠外罩。眉嘴逐点投射;椭球公式不能直接用于收颌后或柔方头面。
|
|
88
|
+
4. 在框架既有游戏视角下可用透明 Canvas 图案表达面部;角色转身或独立资产侧视检查中出现穿插时,改用曲面贴图、贴合浅几何或绑定面片。保持深度测试,不能用强制置顶掩盖穿插。
|
|
89
|
+
5. 眼口使用受光材质;深灰而非大块死黑。面部纹理清洁,不与衣物和木纹共用噪声。
|
|
90
|
+
|
|
91
|
+
| 情绪 | 同时改变的形状关系 |
|
|
92
|
+
| --- | --- |
|
|
93
|
+
| 高兴/专注 | 眼睛朝任务方向、嘴角小幅上提,头略随视线 |
|
|
94
|
+
| 惊讶 | 眼形略张开、眉抬起、嘴呈竖小圆,短暂后仰 |
|
|
95
|
+
| 困倦/难过 | 上眼睑降低或眉内端上提,嘴与头姿响应,动作节奏放缓 |
|
|
96
|
+
| 生气/用力 | 眉内端压低、口部张力上升,身体重心与施力方向一致 |
|
|
97
|
+
|
|
98
|
+
豆豆眼的视线由小幅眼点偏移与头部转向共同表达;眨眼改变眼形高度或切换为短弧,不另叠眼球或厚眼睑。只实现任务需要的情绪,不强制完整表情菜单。每个角色独立保存情绪、视线、眨眼与动作状态,眨眼结束回到当前表情;复用贴图,不能每帧创建材质。
|
|
99
|
+
|
|
100
|
+
待机可从 2.5–4 秒一轮、头偏 ±2°–4°、身体偏 ±1°–2° 开始;呼吸在绑定姿态的 ±1%–2% 内变化,并主要放在上身组。耳、尾和头的相位错开,脚与主要支点保持稳定。动作发生在肩、耳根、轮轴和叶柄,不能把整件资产当气球上下浮动。
|
|
101
|
+
|
|
102
|
+
## 色彩职责
|
|
103
|
+
|
|
104
|
+
以下为小样材质/背景输入色,不是截图取样值。晴野参考文档的薄荷背景与更橄榄的草色是另一组起点,不与这套灯光数值混作同一基准。
|
|
105
|
+
|
|
106
|
+
| 职责 | 参考输入色 | 关系 |
|
|
107
|
+
| --- | --- | --- |
|
|
108
|
+
| 空气背景 | `#85adb8` | 灰蓝留白,独立于草地材质 |
|
|
109
|
+
| 草地 / 冠层 | `#9fbd60` / `#4f803f`、`#7faa50`、`#3a6f57` | 地面更亮,树下更深;不把每棵树变成同亮度绿球 |
|
|
110
|
+
| 暖白墙 / 浅色主体 | `#f1eddf`、`#f6f6ee` | 大面积明亮中性色,受光后仍区分层次 |
|
|
111
|
+
| 砂石 / 土 | `#ddd3b9`、`#b1b6a6` / `#a17e53` | 承托结构与行走面,彩度低于主角 |
|
|
112
|
+
| 木件 | `#9d6d41`、`#c2965b`、`#694c35` | 暖色有深浅,不靠灯把全场染黄 |
|
|
113
|
+
| 屋顶 / 深色屋脊 | `#b74e43` / `#8d3d36` | 大色面分明,面积服从主体焦点 |
|
|
114
|
+
| 门窗 / 水 | `#478b82`、`#356b72` / `#4b8493` | 冷色调节暖结构;水纹少而宽 |
|
|
115
|
+
| 角色 | `#e3b990`、`#df943f`、`#4b849d`、`#354f64` | 肤色自然,服装身份色成完整色区 |
|
|
116
|
+
| 眼口 | `#39333b` | 小面积深色确保表情阅读 |
|
|
117
|
+
|
|
118
|
+
按“环境大面—角色主色—状态强调”分配颜色面积。用户要雪地、沙漠、厨房或太空时重新分配角色,而不强加草木;保留中性色留白、有限强调色与清楚明度层级。
|
|
119
|
+
|
|
120
|
+
## 材质与纹理怎样画
|
|
121
|
+
|
|
122
|
+
表面不能全部粗糙,也不能全部同一种亮塑料。先按实体用途标注材质角色,再分配颜色:同样棕色的头发、鞋、木梁要有不同响应。默认非金属,局部五金才用金属度。
|
|
123
|
+
|
|
124
|
+
| 表面 | `roughness` 起点 | 微细节方法 |
|
|
125
|
+
| --- | --- | --- |
|
|
126
|
+
| 皮肤、面部 | 0.55–0.65 | 无颗粒或近乎不可见;保留曲面的宽高光 |
|
|
127
|
+
| 毛发主体 / 发壳 | 0.75–0.85 / 0.4–0.6 | 不画逐根毛;颜色块和轮廓先说明材质 |
|
|
128
|
+
| 布料 | 约 0.86 | 经纬细织纹,近看可见、全景合成纯色;弱凹凸 |
|
|
129
|
+
| 木料 | 约 0.58–0.7 | 沿梁/柄的长轴顺纹,端面另画少量年轮;纹理在接缝处合理换向 |
|
|
130
|
+
| 灰泥、石、土 | 0.78 / 0.88 / 0.98 | 低对比宽斑叠细粒,不把颗粒画成黑点 |
|
|
131
|
+
| 涂漆 / 金属 | 约 0.32 / 0.28 | 漆面宽而克制的高光;金属度只给裸金属,可从 0.8 左右试 |
|
|
132
|
+
| 水 / 玻璃 | 0.14–0.22 / 0.09–0.18 | 反射和少量宽水纹说明光滑;不默认满面白亮或透明叠层 |
|
|
133
|
+
|
|
134
|
+
程序纹理可从可平铺 `128×128` 数据图开始。木纹以周期条带为骨架:横向坐标进入 8–19 次缓慢弯曲正弦,纵向只调制弯曲,形成顺纹;布料用两方向约 16 次周期的弱交织;石土用低频块状变化叠低对比细粒。这里的周期是每张纹理的内部结构,实际世界密度还受贴图缩放影响。
|
|
135
|
+
|
|
136
|
+
- 无 UV 的定制曲面可用局部坐标三平面投射;三个投射面按 `abs(normal)^6` 的归一权重混合。坐标和法线必须在同一空间,缩放后的纹理密度必须检查。
|
|
137
|
+
- 运动物体采用物体局部或绑定坐标,避免游动;长木柄和弯管优先用沿长轴的 UV,不能把三平面默认方向当所有材料的纹理方向。
|
|
138
|
+
- 源纹理调制为 `baseColor *= 1 + (gray - 0.5) * strength`。木纹 `strength≈0.24`、布 `≈0.12`、石土 `≈0.09–0.1`、叶 `≈0.025` 是起点,脸为 0;这表示调制系数,不能误解为 24% 不透明黑线。
|
|
139
|
+
- 色图表达颜料/花斑,粗糙度图表达反光分布,细高度或法线只表达微表面。裂缝、板缝和结构厚度按实际尺寸建模;不要把方向阴影烘在颜色图里,再叠实时光。
|
|
140
|
+
- 颜色贴图使用 sRGB;粗糙度、法线、灰度数据使用 `NoColorSpace`。开启 mipmap,远景出现摩尔纹时先降低密度、对比和凹凸,再考虑采样质量。
|
|
141
|
+
- 小样的木纹与凹凸是 WebGL shader 扩展;目标版本若采用它们,要实际编译验证替换位置。更完整的采样、尺度及缓存方法按需读 [材质与纹理](../materials-textures.md)。
|
|
142
|
+
|
|
143
|
+
## 日光、空间与接地
|
|
144
|
+
|
|
145
|
+
本风格小样用 `NeutralToneMapping`、曝光 **1.04**、sRGB 输出;白色方向主光 **3.0**,白天空/灰地面 `HemisphereLight` **1.25**,正面白补光 **0.75**,低强度环境反射 **0.24**。主光方向来自左前上方 `[-6,6,9]`。方向光位置只是方向起点;目标版本、场景尺度和材质变化后重新校准,不能在已有灯上重复叠加。
|
|
146
|
+
|
|
147
|
+
小样宿主使用 PCF 阴影;源码 `radius` 不等于在所有阴影算法中都有同一柔化效果。选择框架支持的阴影方案,先用紧贴主体范围的灯光阴影覆盖(`shadow.camera`,不是游戏相机)得到清楚接触,再按画面需要柔化。约 11 单位宽场景的 `normalBias≈0.014` 是尺寸相关起点,不是全工程常数。
|
|
148
|
+
|
|
149
|
+
调光时同框保留暖白物、肤色/木色、主色物及背光面。先固定颜色管理与材质,再调主辅光比例;浅色一起偏黄绿时查光源和环境,不给所有材质补偿性改色。环境反射的作用是让漆、金属与水有不同回应,不能把主体照成灰白。
|
|
150
|
+
|
|
151
|
+
在框架既有游戏视角下,通过角色朝向、主形比例、环境布局和遮挡关系保证脸与操作目标可读。角色背向主要阅读方向时,先修正角色姿态与布局,不靠增大五官或修改游戏相机补救。
|
|
152
|
+
|
|
153
|
+
接地使用真实承托面:脚底到地面的最小点、桥面高度、轮轴和墙基都按几何关系对齐。实时阴影负责方向,必要时弱接触暗部只补贴近脚底/根部的窄区域;它不能代替落地点,也不能是随主体漂浮的大黑椭圆。坡地和动作中重新检查足底。
|
|
154
|
+
|
|
155
|
+
界面用清楚浅底、深色文字和与场景一致的柔角;不要为了风格给每个数据项画装饰框。标签和选中环避开五官,美术布局按既有游戏画面与界面占位保留操作空间。小屏先减少边缘装饰、简化遮挡并强化主体形体和明度对比。
|
|
156
|
+
|
|
157
|
+
## 代表资产、扩展与验收
|
|
158
|
+
|
|
159
|
+
先做最能代表需求的一组关系,例如一个主要角色/物种、一件可操作物、一块环境承托;对象类别按任务取舍。用框架既有游戏视角检查轮廓、脸和光色,有角色时优先完成 [头部自检](../construction.md#头部自检),再扩展同族。资产保留根节点、足底、正面轴、头/脸锚点与部件支点,材质按角色共享、状态按实例保存。
|
|
160
|
+
|
|
161
|
+
| 现象 | 优先修正 | 可见通过依据 |
|
|
162
|
+
| --- | --- | --- |
|
|
163
|
+
| 像球串或零件拼人 | 连续额颊、肩袖、胸腹曲面和连接处 | 无纹理时主体仍有完整身份 |
|
|
164
|
+
| 柔角房屋像软面包 | 恢复墙、屋顶宽面,减小倒角 | 结构承托和方向清楚 |
|
|
165
|
+
| 亮面粉白、全场塑料 | 色彩空间、曝光、补光和粗糙度分工 | 白、肤色、木色仍不同,宽高光保留本色 |
|
|
166
|
+
| 脸悬浮或侧看露板 | 投射位置、法线与面片曲率 | 框架既有视角与独立资产侧视中眼嘴随面连续 |
|
|
167
|
+
| 眼睛像层叠塑料球 | 回到单层贴面的深色豆豆眼,移除无设计依据的眼白/虹膜球与外罩 | 正式画面表情清楚,侧看不外凸成柱 |
|
|
168
|
+
| 头发像帽盖或乱条堆 | 重建贴合发壳、发际线与顺发流大簇,接通刘海/侧发/后发 | 正侧背轮廓连贯,无意外露皮缝与悬空发根 |
|
|
169
|
+
| 树冠碎、环境抢主角 | 合并主冠、收敛小冠和大面彩度 | 缩略图先读角色,再读环境 |
|
|
170
|
+
| 纹理像污渍或印花 | 降低振幅,校正方向与世界密度 | 全景大色块干净,近景可分材料 |
|
|
171
|
+
| 动作后鞋底离地 | 支点、绑定姿态和承托高度 | 静止、迈步、交互结束都落地 |
|
|
172
|
+
|
|
173
|
+
交付前检查框架既有游戏画面、目标小屏和至少一个完整交互过程;代表资产的近景与侧面诊断在独立资产检查中完成。检查轮廓、五官与附件遮挡、材质差异、接触影、动作回位以及帧时间;报告真实检查范围。代码无报错不能替代画面验收。需要通用截面、法线与支点实现时按需读 [造型与装配](../construction.md)。
|
|
174
|
+
|
|
175
|
+
需要复核风格时按需查看 [经典卡通参考小样](../../assets/previews/cartoon.png),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# 美漫:结构夸张、墨色轮廓与印刷分色
|
|
2
|
+
|
|
3
|
+
游戏相机完全沿用整体框架;本卡只调整美术,不改投影、角度、位置、目标、距离、缩放或跟随。近景或侧视诊断仅在独立资产检查中进行,不改正式游戏镜头。
|
|
4
|
+
|
|
5
|
+
本页示例角色、比例数值与构造片段是工法起点;先按本游戏主题与玩法确定角色身份和主剪影,再依本页风格规则绘制,不把示例原样当固定成品。
|
|
6
|
+
|
|
7
|
+
默认移动角色不附展示底座,脚或设计接触部位直接落在实际地表;明确玩法/用户美术要求中的棋子底盘、滑板、载具或角色基座按设计保留。场景地台独立,不能把接地阴影或碰撞代理做成角色脚下随行的可见方块。
|
|
8
|
+
|
|
9
|
+
只在本轮选择美漫画风时读取。以下方法覆盖人物、生物、植物、建筑、道具和必要界面;新用户需求决定题材、对象与玩法。
|
|
10
|
+
默认是**季节不强调、暖色日间**。暖纸色与有限英雄色来自美术组织,不要求故事发生在屋顶,也不要求超级英雄题材。
|
|
11
|
+
先实现框架既有游戏视角中的代表主体和一段环境,查看实际画面,再扩展同族资产。
|
|
12
|
+
通用构造和纹理问题可按需选择 [构造方法](../construction.md)、[材质与纹理](../materials-textures.md);本页包含本风格成立所需的方法,不以链接代替关键实现。
|
|
13
|
+
|
|
14
|
+
## 画面目标与来源边界
|
|
15
|
+
|
|
16
|
+
目标是有明确骨架和性格的立体漫画:宽窄有力的剪影、能解释体积的大面、深墨蓝外缘、有限明暗色阶,以及方向明确的表情和动作。
|
|
17
|
+
脸、衣服和动物身体保留连续色面;墨线主要保护轮廓,不能让所有小部件都变成独立黑框。
|
|
18
|
+
环境采用退台、挑檐、斜撑和大开口,与角色的肩、腰、下颌、披挂方向形成共同的硬朗语言。
|
|
19
|
+
印刷网点、排线与拟声字是次级表达,不是识别美漫的唯一依据。
|
|
20
|
+
|
|
21
|
+
本页已对照原创小样 `previews/comic.png`,并检查 `scenes/comic.js`、`lib.js`、`app.js`。
|
|
22
|
+
截图可直接观察到暖纸背景、砖红建筑、青蓝与米白主体、粗外缘和独立的深浅脸型;源码确认使用 Toon 渐变、背面描边和局部程序纹理。
|
|
23
|
+
来源库实际为 **Three.js r186**。以下数值是该源码的可调起点,不能当作目标工程的版本锁定或截图像素值。
|
|
24
|
+
源码中的固定角色组合、84 个实体网格、屋顶设施、位置和按键不进入新需求;未进行新题材迁移试作,不宣称迁移效果已验证。
|
|
25
|
+
|
|
26
|
+
## 先组织主形,再安排墨线
|
|
27
|
+
|
|
28
|
+
人物先决定身形的主方向:肩宽与腰宽、胸腔与骨盆的反向倾斜、腿部延伸、手或工具的动作方向。
|
|
29
|
+
有力量的角色可用宽肩收腰、大手套与长腿;敏捷角色可收窄躯干、延伸前臂与下腿;厚重角色用宽胸和低重心。不要让所有人物共享一种英雄体型。
|
|
30
|
+
来源的宽肩角色躯干最宽处约为腰宽的 2.2 倍,只说明结构夸张的量级;换成儿童、老人、异形时应重新设计。
|
|
31
|
+
头脸不能只是球加眉毛:先用额、颞、颧、颊、下颌与下巴的截面宽度表达性格,再加五官。
|
|
32
|
+
宽方颌配前突下巴与粗折眉会显得有力;上宽下窄的颅形、较收的下巴与上扬眼线可形成另一种性格。这些形态不绑定性别。
|
|
33
|
+
|
|
34
|
+
### 连续截面方法
|
|
35
|
+
|
|
36
|
+
沿主轴设置少量结构截面,而不是把胸、腹、腰都堆成不同球体。
|
|
37
|
+
每一环保存高度 `y`、半宽 `rx`、半深 `rz` 和前后偏移 `cz`;同一拓扑顶点沿环相连。
|
|
38
|
+
可用八边截面:正面较宽、颞侧与背面有明确转折。头部下几环收窄或向前偏移,便能形成下颌与下巴。
|
|
39
|
+
肩、胸、腰、衣摆使用同样的结构思路,但各自拥有宽深关系;衣服不复制头的截面配方。
|
|
40
|
+
相邻环连接四边面再三角化,封口检查绕序。凸面可扇形封口,复杂凹轮廓应先三角化,不能随意连到中心。
|
|
41
|
+
脸颊和前额保留完整受光区域;鼻部是一个与面部同色的楔体或连续变形,避免堆肤色小补丁。
|
|
42
|
+
独立资产细节检查发现需要时,在结构转折处分法线;不要以随机顶点抖动制造“漫画切面”。
|
|
43
|
+
|
|
44
|
+
### 跨题材的构造分工
|
|
45
|
+
|
|
46
|
+
| 类别 | 构造方法 | 判断依据 |
|
|
47
|
+
|---|---|---|
|
|
48
|
+
| 人物或人形 | 截面躯干、独立肩肘腕支点、收放明确的靴与手套 | 去掉徽记和披风仍有体型、重心与动作 |
|
|
49
|
+
| 四足生物 | 完整胸腹与骨盆,头颅连单块口鼻,足间留负形 | 先由胸背、腿长和口鼻判断物种 |
|
|
50
|
+
| 飞禽与怪物 | 胸腹主块、整翼或主触肢,再附喙角等方向点 | 不靠羽片或刺的数量填满轮廓 |
|
|
51
|
+
| 植物 | 树干斜向分叉,冠层按主团与次团组织,叶团保留大明暗面 | 与漫画环境共用转折感,不把每片叶都描黑 |
|
|
52
|
+
| 建筑 | 墙体主块→错层或退台→厚檐与洞口→斜撑等承重件 | 开口有深度,悬挑有支撑,关闭纹理仍像建筑 |
|
|
53
|
+
| 道具 | 先用握持、受力或工作端确定轮廓,再加一个身份特征 | 工具不靠密集扣件和铭文才可辨 |
|
|
54
|
+
|
|
55
|
+
附属关系要真实:发型沿颅顶包覆,披挂从肩背发出,武器从手柄握持,桥梯与栏杆连接实际结构。
|
|
56
|
+
叶、翼、披风可用有厚度的挤出轮廓或双面薄壳;在框架既有可见范围与独立资产检查中核对侧壁与背面,不用始终面向屏幕的平片掩盖缺面。
|
|
57
|
+
身份色块尽量属于完整服装或部件,不反复叠护甲条、胸片和腰带来补造型。
|
|
58
|
+
|
|
59
|
+
## 五官、脸型与表情
|
|
60
|
+
|
|
61
|
+
先在无描边、无徽记的状态下检查脸型;两名角色不能只靠发色区别。
|
|
62
|
+
眼白采用偏暖浅色、小深瞳,眉是有方向的折线或楔形。眼睛不必做成玩具的大圆眼。
|
|
63
|
+
鼻子表达长度和朝向,嘴角表达情绪;眉眼、鼻颌和嘴角的方向应支持同一个表情。
|
|
64
|
+
来源使用歪嘴露齿和上扬眉眼作为示例,可替换为疲惫、戒备或沉思,不默认每个人都微笑。
|
|
65
|
+
脸上的眼、眉、牙和嘴等小标记不加粗黑外壳,避免黑圈挤掉眼白与肤色。
|
|
66
|
+
这些标记随头部父节点运动,按实际脸面位置贴合;侧视下不得成为悬浮纸牌。
|
|
67
|
+
不要全局关闭深度测试来确保五官可见;先修贴合、偏移和既有游戏视角中可见的模型表面。
|
|
68
|
+
|
|
69
|
+
动作以清楚的关键姿态为主:准备、发力、命中、恢复各有不同剪影。
|
|
70
|
+
胸腔、肩和手的动势连贯,脚仍支撑重量;披挂和发束稍落后主动作,不能所有部件同相摆动。
|
|
71
|
+
待机可以轻转头、呼吸、耳尾摆动,幅度小于玩法动作。
|
|
72
|
+
短拟声字或放射形仅在相关事件中出现,并避开脸和关键操作目标;用户未要求战斗,不为该风格添加攻击玩法。
|
|
73
|
+
|
|
74
|
+
## 色板与时段
|
|
75
|
+
|
|
76
|
+
默认暖色日间,没有固定季节。暖来自纸色、肤色、墙面与光照的配合;主色可以换成题材所需家族。
|
|
77
|
+
以下均为来源材质输入,经过 Toon、灯光、ACES 后不等于截图像素。
|
|
78
|
+
|
|
79
|
+
| 职责 | 来源起点 | 使用关系 |
|
|
80
|
+
|---|---|---|
|
|
81
|
+
| 纸色背景 | `#ecd99a` | 大面积低细节留白,不覆盖所有模型 |
|
|
82
|
+
| 外轮廓 | `#182335` | 比场景最深主色更稳定的墨蓝 |
|
|
83
|
+
| 环境承托 | `#62847e`、`#3c5a69` | 冷灰绿、深蓝灰让出人物焦点 |
|
|
84
|
+
| 暖建筑 | `#a85046`、`#773943`、`#e0aa75` | 主墙、暗檐、浅檐区分结构 |
|
|
85
|
+
| 主体色 | `#286887`、`#c54d46`、`#eee1ba` | 青蓝、珊瑚红、米白按身份分大区 |
|
|
86
|
+
| 脸与五官 | `#dda67b`、`#ddb18b`、`#fff0d0`、`#182b40` | 不同肤色保留,暖眼白与深瞳保持阅读 |
|
|
87
|
+
|
|
88
|
+
换夜景时重新建立亮暗分档和主体轮廓,不把整幅纸色背景简单变黑;昼夜切换不能让墨边与暗衣服完全合并。
|
|
89
|
+
暖白衣服仍需暗面,不把亮档钳成纯白。大面积背景的对比弱于角色脸和动作端。
|
|
90
|
+
植物、雪景或异星地表可采用新的语义色,但仍遵循少量主色区与受控暗色分工。
|
|
91
|
+
|
|
92
|
+
## Toon、轮廓、材质与光照一起校准
|
|
93
|
+
|
|
94
|
+
来源使用 `MeshToonMaterial`,三档 `gradientMap` 字节值为 `[70, 140, 245]`,Nearest 采样。
|
|
95
|
+
这是照明强度分档,不是三种固定模型颜色。目标项目先固定输出 sRGB、映射与曝光,再调色阶。
|
|
96
|
+
来源默认 ACESFilmic、曝光 `1.08`,PCF 阴影;环境反射强度 `0.08`,但反射并不自动使 Toon 材质获得 Standard 的粗糙度响应。
|
|
97
|
+
来源半球光:天空 `#fff1bf`、地面 `#37334e`、强度 `2.1`;暖主方向光 `#ffedc7`、强度 `3`,来自前上侧。
|
|
98
|
+
主光负责面部和躯干转折,半球光保留背光区;不要靠无限增加环境光让所有色阶落进亮档。
|
|
99
|
+
来源约十余世界单位宽的舞台使用 2048 阴影、`normalBias=0.025`、`bias=-0.0002`;目标尺度改变后按接触与自阴影重新校准。
|
|
100
|
+
|
|
101
|
+
### 轮廓的通用起点
|
|
102
|
+
|
|
103
|
+
主要实体可采用背面外壳;源码用按轴包围盒厚度补偿的扩壳,角色外扩约 `0.043` 世界单位,环境多用 `1.028` 倍缩放。
|
|
104
|
+
这不是通用笔宽:在来源的显示尺度和角色尺寸下成立,小物件和远处物体必须按屏占比调薄,内部标记可不描边。
|
|
105
|
+
以下是独立的外壳辅助函数,适合静态或同父节点刚体,不能直接用于有不同蒙皮的角色:
|
|
106
|
+
|
|
107
|
+
```js
|
|
108
|
+
import * as THREE from 'three';
|
|
109
|
+
function addInkShell(mesh, width, color = '#182335') {
|
|
110
|
+
const geometry = mesh.geometry;
|
|
111
|
+
geometry.computeBoundingBox();
|
|
112
|
+
const size = geometry.boundingBox.getSize(new THREE.Vector3());
|
|
113
|
+
const center = geometry.boundingBox.getCenter(new THREE.Vector3());
|
|
114
|
+
const shell = new THREE.Mesh(geometry,
|
|
115
|
+
new THREE.MeshBasicMaterial({ color, side: THREE.BackSide }));
|
|
116
|
+
const scale = mesh.getWorldScale(new THREE.Vector3());
|
|
117
|
+
for (const axis of ['x', 'y', 'z']) {
|
|
118
|
+
const length = Math.abs(size[axis] * scale[axis]);
|
|
119
|
+
shell.scale[axis] = 1 + 2 * width / Math.max(length, width * 2);
|
|
120
|
+
shell.position[axis] = center[axis] * (1 - shell.scale[axis]);
|
|
121
|
+
}
|
|
122
|
+
shell.castShadow = false;
|
|
123
|
+
shell.receiveShadow = false;
|
|
124
|
+
mesh.add(shell);
|
|
125
|
+
return shell;
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
包围盒扩壳在尖角、凹体和非均匀缩放下并非恒定屏幕笔宽;出现接缝或黑刺时,减少内部壳、合并连续几何或改用合适的轮廓方案。
|
|
130
|
+
宽度应在真实分辨率下检查,不能靠添加更多黑边掩盖弱剪影。针对框架既有显示状态选择稳定的轮廓方案,并验证透明物与遮挡。
|
|
131
|
+
几何和材质共享时按所有权释放,不在移除外壳时误删主体共享几何。
|
|
132
|
+
|
|
133
|
+
### 表面材料不平均化
|
|
134
|
+
|
|
135
|
+
来源 Toon 纹理只调基色,不使用 PBR 微法线;脸和墨线保持安静。
|
|
136
|
+
砖石用克制颗粒,木材用顺纹,布料用低强度织纹;原代码纹理调制强度约石 `0.19`、木 `0.27`、布 `0.12`,实际色差约为该数的一半以内。
|
|
137
|
+
三平面采样使用同一局部表面坐标与法线权重 `w=abs(n)^6 / sum(abs(n)^6)`,避免无 UV 几何拉伸。
|
|
138
|
+
纹理来自小幅度的灰度信号,色彩调制 `base *= 1 + (sample - 0.5) * strength`,不能用高对比照片盖掉色阶。
|
|
139
|
+
印刷网点放在次要背景或指定图形区,网点间距随最终屏幕尺寸检查摩尔纹,脸部不铺统一颗粒。
|
|
140
|
+
需要有光泽的金属、涂装或玻璃时可局部用 Standard 材质:金属粗糙度 `0.28`/金属度 `0.83`,涂装 `0.29`/`0`,玻璃 `0.09`/`0` 是共用材质库起点,**不是来源 Toon 对象已经具有的 PBR 设置**。
|
|
141
|
+
玻璃反光与透射是不同能力,不以低粗糙度冒充真实透射;混合材料必须保持画面分档与脸部可读性。
|
|
142
|
+
|
|
143
|
+
## 空间布局与接地
|
|
144
|
+
|
|
145
|
+
在框架既有游戏视角下,根据主要人物的完整动作和通行区组织美术布局;通过头脸比例、五官对比和遮挡控制保持眉眼与嘴角可读,不让建筑细节挤占人物阅读空间。
|
|
146
|
+
人物的面朝向接近观察方向且略错开,环境的斜线将视线引到主体,而非横穿脸部。
|
|
147
|
+
前景低结构、中景主体、后景高结构可形成层次,但场景规模和题材由当前任务决定。
|
|
148
|
+
脚底按实际几何最低点和承托面修正;动作更新后支撑脚不得穿地或整人浮起。
|
|
149
|
+
接触阴影连接脚、道具和檐底;粗外缘不能代替投影与承重关系。
|
|
150
|
+
UI 可沿用纸色面板、墨色线框和有限强调色,字体先读清;只实现当前任务所需状态,不移植来源展示页。
|
|
151
|
+
|
|
152
|
+
## 按症状修正与验收
|
|
153
|
+
|
|
154
|
+
| 现象 | 先检查 | 修正依据 |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| 有黑边却不像美漫 | 肩腰、颧颌、手脚与动作方向 | 隐藏描边仍有有力且各异的剪影 |
|
|
157
|
+
| 脸像黑色拼图 | 内部描边、五官面积、浅片层数 | 连续肤色中可读眉眼鼻口 |
|
|
158
|
+
| 衣服全白或全黑 | 曝光、半球光与渐变档位 | 亮暗大面各有颜色,身份色未被洗掉 |
|
|
159
|
+
| 轮廓粗细失控 | 实际屏占比、嵌套缩放和薄部件 | 主体外缘清楚,手指或小标记未被吞没 |
|
|
160
|
+
| 材质变成脏纸 | 纹理频率和强度、是否覆盖脸 | 先读大色面,近看才辨布木石 |
|
|
161
|
+
| 动作时脚漂浮 | 支点、支撑脚与承托高度 | 重心变化但支撑关系成立 |
|
|
162
|
+
| 拟声字遮主角 | 显示时机、位置与持续时间 | 反馈短暂明确,常态画面仍完整 |
|
|
163
|
+
|
|
164
|
+
实际检查框架既有游戏画面与一次关键动作;脸部细节与侧面诊断仅在独立资产检查中完成;隐藏描边再看一次,确认造型不是靠线条补救。
|
|
165
|
+
换成新题材后,至少核对一个生命体和一个结构件是否共享漫画语言,同时保留不同构造。
|
|
166
|
+
可见画面修改后沿项目既有 `game_visual_qa` 与构建流程验证;文档完整或参数一致不能代替渲染结果。
|
|
167
|
+
|
|
168
|
+
可选视觉参照:[美漫小样](../../assets/previews/comic.png)。只比较主形、外缘、脸型与色阶,不将图中对象数量和布局当成新项目清单。
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# 温馨治愈:夏日下午的连续形体与插画色阶
|
|
2
|
+
|
|
3
|
+
游戏相机完全沿用整体框架;本卡只调整美术,不改投影、角度、位置、目标、距离、缩放或跟随。近景或侧视诊断仅在独立资产检查中进行,不改正式游戏镜头。
|
|
4
|
+
|
|
5
|
+
本页示例角色、比例数值与构造片段是工法起点;先按本游戏主题与玩法确定角色身份和主剪影,再依本页风格规则绘制,不把示例原样当固定成品。
|
|
6
|
+
|
|
7
|
+
默认移动角色不附展示底座,脚或设计接触部位直接落在实际地表;明确玩法/用户美术要求中的棋子底盘、滑板、载具或角色基座按设计保留。场景地台独立,不能把接地阴影或碰撞代理做成角色脚下随行的可见方块。
|
|
8
|
+
|
|
9
|
+
在路由选中 `cozy` 后读取本页。把用户需要的角色、生活物件与空间画成宁静、有生活尺度的立体插画。先使用已初始化框架,按任务决定对象和功能;不要求出现公路、花圃、特定人物或日常任务。
|
|
10
|
+
|
|
11
|
+
## 画面目标与默认条件
|
|
12
|
+
|
|
13
|
+
用宽阔安静的色面承托少量有生命的主体:人物偏纤细成人比例,衣物是一件连续衣服;树林由互相咬合的蓝绿冠簇组成,草坡和浅色石面更亮。日照说明一个明确方向,有限明暗色阶沿形体展开,投影把人物、树和物件连接到地面。
|
|
14
|
+
|
|
15
|
+
温馨来自舒适尺度、材质本色、可读动势和空间留白。它不要求全场粉色、圆球头、发光轮廓或大幅呼吸动作。即使新题材是室内书店、海边车站或奇幻温室,仍使用连续形体、大色块与有限色阶。
|
|
16
|
+
|
|
17
|
+
- **默认季节与时间**:夏日、下午,源小样和视觉参考明确使用这一条件。
|
|
18
|
+
- **默认天气**:晴朗,空气清澈;局部暖色来自沙石、木材与奶油白,日光接近中性。不要把下午自动解释成金色日落。
|
|
19
|
+
- **默认色系**:蓝绿深树冠、较亮草绿、灰路面、浅沙岩与米白,少量暖粉或柔绿服装。没有相关对象时按颜色职责迁移,不新增草地或道路。
|
|
20
|
+
- **优先级**:屏幕中主体/环境面积 → 连续人物与冠层轮廓 → 有限明暗块 → 接地影与材质 → 生活细节。
|
|
21
|
+
|
|
22
|
+
方法依据已查看的原创 `cozy.png`、`scenes/cozy.js`、`lib.js` 和 `ART_DIRECTION.md`。该小样对 Summer Afternoon 参考的可见结构进行原创分析实现,并不代表原站内部模型或 shader,也不宣称像素复刻。小样 r186、目标框架 r185;下列 API 与数值是校准起点,自定义 shader 必须在目标版本实际编译。
|
|
23
|
+
|
|
24
|
+
## 连续截面如何组织角色
|
|
25
|
+
|
|
26
|
+
人物可以从 **5–6 头身**的成人比例起步,肩宽大于头宽,四肢细长但缩略图中仍可见。小样约 5.5 头身;不同年龄、物种与用户要求可改变比例,不强制所有角色一样高瘦。
|
|
27
|
+
|
|
28
|
+
先画正面、侧面的整体轮廓,再放关键截面。头脸由下颌、下颊、颧部、额部与顶盖连续连接;衣服由下摆、腰、胸、肩和领口连接。每圈使用同样数量和同样起点的顶点,按照同一方向排列,用四边带连接后再三角化,避免扭带。
|
|
29
|
+
|
|
30
|
+
| 部分 | 截面组织 | 需要保留的可见关系 |
|
|
31
|
+
| --- | --- | --- |
|
|
32
|
+
| 头颅 | 下颌窄、颊额更宽、头顶收拢;正面略平、侧面有深度 | 鼻梁可从同一正面轻微顶出,不能另贴发亮鼻片 |
|
|
33
|
+
| 衣服 | 肩部较宽,下摆轻微不齐;胸腰间平缓过渡 | 一件松软衣服,不能像球形肩接圆柱躯干 |
|
|
34
|
+
| 袖子 | 沿上臂方向建立短截面筒,袖口朝下、保留厚度或暗内口 | 肩部与衣身相接;袖口不是尖硬三角片 |
|
|
35
|
+
| 手脚 | 沿骨段逐渐收细,鞋底略宽于踝部 | 手能握物、鞋能承重;关节位置服务动作 |
|
|
36
|
+
| 头发 | 包覆头壳,前缘做少量折线;长发保留整块轮廓 | 发壳与脸明暗分开,不增加大量发丝几何 |
|
|
37
|
+
|
|
38
|
+
下面只演示连接截面的通用方法。导入后返回局部 `+Y` 向上的封闭几何;轮廓点依次围绕 `XZ` 平面逆时针排列。`w/d` 为半宽/半深,`y` 为高度,允许 `x/z` 偏移;面部默认朝 `+Z`。
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
import * as THREE from 'three';
|
|
42
|
+
|
|
43
|
+
export function connectedSections(rings) {
|
|
44
|
+
const contour = [[1,0],[0.72,0.72],[0,1],[-0.72,0.72],
|
|
45
|
+
[-1,0],[-0.72,-0.72],[0,-1],[0.72,-0.72]];
|
|
46
|
+
const n = contour.length, positions = [], indices = [];
|
|
47
|
+
for (const r of rings) for (const [cx, cz] of contour)
|
|
48
|
+
positions.push((r.x ?? 0) + cx * r.w, r.y,
|
|
49
|
+
(r.z ?? 0) + cz * r.d);
|
|
50
|
+
for (let j = 0; j < rings.length - 1; j++) {
|
|
51
|
+
for (let i = 0; i < n; i++) {
|
|
52
|
+
const a = j*n+i, b = j*n+(i+1)%n;
|
|
53
|
+
const c = b+n, d = a+n;
|
|
54
|
+
indices.push(a,d,c, a,c,b);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
for (const top of [false, true]) {
|
|
58
|
+
const row = top ? rings.length-1 : 0, r = rings[row];
|
|
59
|
+
const center = positions.length / 3;
|
|
60
|
+
positions.push(r.x ?? 0, r.y, r.z ?? 0);
|
|
61
|
+
for (let i = 0; i < n; i++) {
|
|
62
|
+
const a = row*n+i, b = row*n+(i+1)%n;
|
|
63
|
+
indices.push(...(top ? [center,b,a] : [center,a,b]));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const g = new THREE.BufferGeometry();
|
|
67
|
+
g.setAttribute('position', new THREE.Float32BufferAttribute(positions,3));
|
|
68
|
+
g.setIndex(indices); g.computeVertexNormals();
|
|
69
|
+
return g;
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
至少提供两个高度递增、正半宽/半深的截面。若领口、帽檐需要硬边,应复制边界顶点,让顶盖与侧面法线独立;不要把所有顶点打散获得全身碎三角。面片方向用单面材质验看,不能先设 `DoubleSide` 隐藏反面错误。
|
|
74
|
+
|
|
75
|
+
需要转向的肢体把局部 `+Y` 轴对齐起终点方向;弯曲长体沿主轴分段放置截面,保持截面朝向连续。衣褶只在领口、袖根、腰带受力和下摆引入少量宽变化;细密随机褶皱会破坏轻松、清洁的大色面。
|
|
76
|
+
|
|
77
|
+
## 不同题材怎样保留同一种画法
|
|
78
|
+
|
|
79
|
+
| 资产族 | 构造方法 | 不足时先改变什么 |
|
|
80
|
+
| --- | --- | --- |
|
|
81
|
+
| 动物 | 胸腹沿身体长轴做连贯收放;颈部过渡到头颅,口鼻从脸前部渐伸出;四肢细但有承托 | 头身长短、吻长、耳形、姿势;不能靠球头换颜色区分物种 |
|
|
82
|
+
| 鸟、鱼与爬行动物 | 从躯干截面建立胸腹与尾端;翼、鳍或背甲使用较宽连续片体 | 主轴方向、重心、活动部件面积与边缘厚度 |
|
|
83
|
+
| 怪物 | 先选择人形、四足、藤蔓或软体的骨架;保持可解释的连续外皮 | 用一处不寻常比例和一种辨识结构建立幻想感;细节仍服从安静色面 |
|
|
84
|
+
| 植物 | 多层高度不齐的树冠、低冠和灌木交错;每个冠簇为不规则截面体,不是均匀球 | 调整冠底、露干位置与重叠,形成连续森林而非等高树棚 |
|
|
85
|
+
| 建筑 | 直墙、宽屋面、少量门窗退进;构件按现实用途简化 | 建筑在画面中的大小、前后遮挡和尺度,装饰留在入口与使用部位 |
|
|
86
|
+
| 道具与载具 | 封闭外壳、真实开口、功能性握柄;保留少数金属/搪漆件 | 材质分工和用途轮廓,避免全都像粗糙石块 |
|
|
87
|
+
|
|
88
|
+
若任务以物件或地形为主,可不生成人物。扩展资产族时保持截面简化程度、色阶数量、纹理密度和光照方向,不强制共享相同尺寸与网格数。更复杂连接按需读 [造型与装配](../construction.md)。
|
|
89
|
+
|
|
90
|
+
## 树林、地形和空间的画法
|
|
91
|
+
|
|
92
|
+
冠簇从 4–6 圈高低错落的闭合截面开始:底部窄 → 下肩展开 → 中部最宽 → 上肩收拢 → 顶部窄。每圈约 10–16 个方向点可作为起点,在低频上改变半径、圈中心和高度。只在外轮廓有需要的位置加转折;每个内部三角都随机偏移会成为碎石团。
|
|
93
|
+
|
|
94
|
+
同一主冠使用少量大小不等、部分重叠的冠簇。上层与下层颜色属于同一家族;深蓝绿位于内凹与冠底,较亮绿在可见上缘。近树的暗冠和远树的较浅冠共同建立深度,不能用完全一致的树模型等间距排一行。
|
|
95
|
+
|
|
96
|
+
枝干在承托位置分叉。树林后方的空隙用高低不等低冠或远树补充,仍让天空从冠层上缘和若干间隙露出;不要露出一排过长、等距的裸树干。灌木与石块底部压入地表,保持有重量的接触。
|
|
97
|
+
|
|
98
|
+
地表用连续高度场或少量相接坡面,坡、路、沙径与石块基部共享同一高度函数。道路是宽安静平面,标线只需少量完整笔画;新题材的海面、广场或室内地面也可以承担同样的留白作用。不要强制复用公路横穿前景的原布局。
|
|
99
|
+
|
|
100
|
+
画面先分前景留白、中景使用区域、后景围合;按需求调整面积。生活设施要提供尺度,不能堵住重要角色或成为密集边框。构图完成后再增加成簇草叶、花、路边小物,不做全场均匀随机撒点。
|
|
101
|
+
|
|
102
|
+
## 五官、情绪与运动
|
|
103
|
+
|
|
104
|
+
眼、眉和嘴保持小而清楚的深色标记;鼻形来自连续头面。小样面部约 0.5 单位宽、眼约 0.04 单位宽,可先试眼宽为头宽的 **6%–9%**、眼间距为头宽的 **35%–42%**。这是低细节成人脸方案,不用于强制所有动物同一面貌。
|
|
105
|
+
|
|
106
|
+
- 在当前头面三角或参数面上获取位置与法线,再把眼、眉、嘴附着到同一头部组。浅几何只轻微离开表面,投影贴图需透明底并正确受光。
|
|
107
|
+
- 在框架既有游戏视角下可以使用贴合的局部浅面片;角色转身及独立资产侧视检查时确认其不悬浮、不穿入。鼻梁附近的嘴与眼不能套球面公式后直接使用。
|
|
108
|
+
- 专注通过视线、眉角和头倾表达;开心通过微笑和轻抬头;疲倦通过下垂眼睑和较慢动作。少量眉嘴变化比增加脸颊贴片更可靠。
|
|
109
|
+
- 眨眼用独立状态与可复用资源,结束回到当前情绪。按正式游戏中实际可见的表情细节决定眼白和贴图精度,不添加当前显示尺度无法辨认的高分辨率细节。
|
|
110
|
+
|
|
111
|
+
步行由髋、膝、肩、肘组成,摆幅适度,脚底在相应步态承托阶段贴地。手持物挂在手/腕支点,浇、推、扫或搬动作让工具运动路径与接触对象相符。保持任务原有玩法,不照搬来源小样的交互。
|
|
112
|
+
|
|
113
|
+
待机只轻微转头、动物耳尾或局部手势。源植被摆幅约 **0.004 rad**,非常克制;树根和主干稳定,冠簇相位错开。让模拟时间驱动动画,保存绑定姿态,暂停或速度变化时不跳位。避免人物持续全身膨胀、原地弹跳。
|
|
114
|
+
|
|
115
|
+
## 颜色与明暗色阶
|
|
116
|
+
|
|
117
|
+
下表以小样代码的颜色输入为主。`#297264/#37806e/#184a49/#b0b7ba/#e3cd9d/#faefdd` 同时来自对参考截图的可见颜色分析;这些分析值不是原站材质参数。
|
|
118
|
+
|
|
119
|
+
| 职责 | 输入起点 | 关系 |
|
|
120
|
+
| --- | --- | --- |
|
|
121
|
+
| 天空 | `#7fbbdd` | 清浅蓝,衬托冠层上缘 |
|
|
122
|
+
| 近树主冠 / 亮面 / 深凹部 | `#297264` / `#37806e` / `#184a49` | 三档之间有组织,不均匀散点染色 |
|
|
123
|
+
| 远树 | `#4b917d`、`#5b9c84`、`#6ca992` | 适度变浅,仍属蓝绿家族 |
|
|
124
|
+
| 草坡 | `#83b38a` | 高于树林明度,低于白衣和岩石 |
|
|
125
|
+
| 路 / 沙径 / 岩石 | `#b0b7ba` / `#e3cd9d` / `#fae7c4` | 宽中性色作为活动背景 |
|
|
126
|
+
| 衣物 | `#faefdd`、`#cda28e`、`#9bd68e` | 完整米白、暖粉、柔绿色区 |
|
|
127
|
+
| 肤色 / 发与眼 | `#d6ad80`、`#dcb490` / `#364039`、`#354139` | 自然受光与小面积深色标记 |
|
|
128
|
+
| 木/草帽/设备 | `#a89970`、`#e8ce91`、`#9a9a62` | 低彩度生活物件,不与角色抢焦点 |
|
|
129
|
+
|
|
130
|
+
Toon 主体使用有限、稳定的明暗带。源小样梯度为三个数据值 **82、168、255**,采用 `RedFormat`、`NearestFilter`、不生成 mipmap;它是受光响应阶梯,不是把所有表面固定画成这三种灰色。可用下面的初始化代码起步:
|
|
131
|
+
|
|
132
|
+
```js
|
|
133
|
+
import * as THREE from 'three';
|
|
134
|
+
|
|
135
|
+
export function illustrationMaterial(color) {
|
|
136
|
+
const ramp = new THREE.DataTexture(new Uint8Array([82,168,255]),
|
|
137
|
+
3, 1, THREE.RedFormat);
|
|
138
|
+
ramp.colorSpace = THREE.NoColorSpace;
|
|
139
|
+
ramp.minFilter = ramp.magFilter = THREE.NearestFilter;
|
|
140
|
+
ramp.generateMipmaps = false; ramp.needsUpdate = true;
|
|
141
|
+
return new THREE.MeshToonMaterial({ color, gradientMap: ramp });
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
生产实现把梯度纹理缓存并共享,不为每件物体重复创建。曲面的宽法线决定分界方向,若色阶被微法线切成噪点,先去掉微法线;若全场只有一档,检查光照范围与梯度配置。不要为了“治愈”把明暗对比全部抹平。
|
|
146
|
+
|
|
147
|
+
## 材质与纹理的分工
|
|
148
|
+
|
|
149
|
+
人物、树冠与主要地表保持 Toon;少量搪漆、金属、玻璃采用 PBR,让生活用品有材料区别。`MeshToonMaterial` 没有 PBR 的 roughness/metalness 反光模型;给它写这两个值不会得到相同效果。不要因此把全场替换成 Standard 材质而丢失色阶。
|
|
150
|
+
|
|
151
|
+
| 表面 | 具体画法 | 起点与检查 |
|
|
152
|
+
| --- | --- | --- |
|
|
153
|
+
| 衣服、帽子 | 低对比细织纹/草编方向,沿裁片或帽檐展开 | 源衣物颜色调制 `strength≈0.1`;不扰动 Toon 法线 |
|
|
154
|
+
| 木板、棚壁 | 顺木板长轴的疏密纹;接缝由几何/少量线条说明 | 颜色调制约 0.17;不能横竖纹随机交换 |
|
|
155
|
+
| 路面 | 很弱的粗细颗粒叠少量短碎点 | 约 0.14;全景必须读成宽灰面,不是砂纸照片 |
|
|
156
|
+
| 草、树冠 | 极弱低频色差,冠层已有大明暗块 | 草约 0.035、叶约 0.025;脸保持干净 |
|
|
157
|
+
| 石、土 | 低频轻斑与细粒,不生成黑色洞点 | 约 0.075–0.085;大切面仍承担体积 |
|
|
158
|
+
| 搪漆、设备 | 局部 Standard 材质,宽而有限的高光 | roughness 约 0.27–0.43,先用非金属底,再按真实涂层结构处理 |
|
|
159
|
+
| 裸金属、玻璃 | 金属回应环境,玻璃保留窗片高光 | 金属 roughness 约 0.27–0.57;玻璃约 0.16,反射不能盖住用途 |
|
|
160
|
+
|
|
161
|
+
程序纹理可平铺,布料经纬在约 128 像素纹理中用十余次弱交织;木纹以窄条带缓慢弯曲,石土以低频噪声叠更弱细粒。投射倍率从每单位约 1 次纹理重复附近校准;这是世界密度起点,仍需按照角色约 2.8 单位高的参考尺度换算。
|
|
162
|
+
|
|
163
|
+
定制截面无 UV 时可采用局部三平面投射;木、帽檐、衣片有方向时优先沿长轴/裁片 UV。动画角色纹理用局部绑定坐标,不能跟世界位置滑动;不均匀缩放后检查织纹是否变成宽条。颜色图、粗糙度图与微法线各做各的事,不能将颜色噪声等强度灌进全部通道。
|
|
164
|
+
|
|
165
|
+
Toon 主体只加颜色层面的弱材料信息,不加高频凹凸破坏分档;PBR 小物才有独立粗糙度与微表面。颜色贴图设 sRGB,数据图设 `NoColorSpace`,远景使用 mipmap。更具体的采样、尺度与缓存按需读 [材质与纹理](../materials-textures.md)。
|
|
166
|
+
|
|
167
|
+
## 日照、空间和接地
|
|
168
|
+
|
|
169
|
+
源小样使用 sRGB 输出、`NoToneMapping`、曝光 1;白色环境光 **0.68** 与白色方向主光 **2.46**,主光相对目标来自左前上方,低强度 PBR 环境反射约 **0.17**。这组参数与三档 Toon 一起校准;换成 ACES、提高曝光或叠加多个半球光,色阶和米白会一起改变。
|
|
170
|
+
|
|
171
|
+
主影方向统一、边界相对明确。小样约百单位地面范围、角色约 2.8 单位高,阴影图 2048、normalBias 约 0.012;新场景按主要活动区域收紧灯光阴影覆盖(`shadow.camera`,不是游戏相机)。为了避免 Toon 曲面出现脏裂影,可以先让地面和关键环境接收投影,再逐个启用主体自阴影并检查;不能把“全部不接收阴影”变成任何视角的通用要求。
|
|
172
|
+
|
|
173
|
+
在框架既有游戏视角下保持人物与活动区可读;通过人物轮廓、五官比例、环境布局及明度对比建立重点。来源画面的宽阔留白不是固定面积模板,不能让装饰与宽路面挤占交互主体的阅读空间。
|
|
174
|
+
|
|
175
|
+
起伏地表必须用实际支撑查询校准足底,斜坡上的左右脚分别检查。先把根节点对齐最低足底,再给抬脚步态和膝部动作;不要用角色中心高度代表落地点。静止时脚底影相连,步行时承重脚保持接触,工具动作期间道具仍在手中。
|
|
176
|
+
|
|
177
|
+
## 画面不对时的修正与验收
|
|
178
|
+
|
|
179
|
+
| 现象 | 先查什么 | 修正后的可见依据 |
|
|
180
|
+
| --- | --- | --- |
|
|
181
|
+
| 人像球和棍组装 | 头、衣身、袖口和口鼻截面连接 | 单色模型仍像完整人物与衣服 |
|
|
182
|
+
| 树林像一排棒棒糖 | 冠底、低冠填充、树高与遮挡差异 | 形成有深浅的森林边缘,露干不等高 |
|
|
183
|
+
| 树冠像碎石 | 半径扰动频率、法线与小冠数量 | 先读大冠簇,再读有节奏的轮廓转折 |
|
|
184
|
+
| 奶油白偏绿、暗面全黑 | 光色、环境补光、梯度与颜色管理 | 白衣自然,暗冠仍带蓝绿色 |
|
|
185
|
+
| 纹理切碎色阶 | Toon 主体的凹凸、图案振幅与尺度 | 明暗带连续,近景才看到织纹/颗粒 |
|
|
186
|
+
| 场景安静但没有重点 | 主体形体比例、前景留白和物件对比 | 用户先找到可操作主体和目标 |
|
|
187
|
+
| 看似落地但走路漂浮 | 每足支点、坡高查询和动作阶段 | 承重脚与投影贴地,工具接触合理 |
|
|
188
|
+
|
|
189
|
+
先用代表人物/物种、环境大面与一种生活物件验证比例、色阶和材质,再扩展资产。交付前检查框架既有游戏画面、目标小屏与完整动作,并在独立资产检查中诊断细节和侧面;检查冠层空隙、五官遮挡、袖口连接、地形接缝、足底与帧时间。记录实际检查结果,不能用“已采用 Toon”或无报错代替视觉证据。
|
|
190
|
+
|
|
191
|
+
需要复核风格时按需查看 [温馨治愈参考小样](../../assets/previews/cozy.png),只比较形体、材质和光色关系;不复制其中的对象数量、布局或玩法。
|