@craft_eco/craft-mcp 0.1.22 → 0.1.26
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 +28 -7
- package/bin/craft-mcp.mjs +10 -2
- package/dist-server/game-workflow/bundle-files.mjs +43 -0
- package/dist-server/game-workflow/engines.mjs +13 -6
- package/dist-server/game-workflow/project-bundles.mjs +90 -0
- package/dist-server/game-workflow/project-context.mjs +91 -0
- package/dist-server/game-workflow/projects.mjs +16 -4
- package/dist-server/integrations/config.mjs +71 -0
- package/dist-server/integrations/files.mjs +54 -0
- package/dist-server/integrations/hosts.mjs +30 -0
- package/dist-server/integrations/install.mjs +86 -0
- package/dist-server/integrations/runtime.mjs +71 -0
- package/dist-server/mcp/server.mjs +13 -9
- package/dist-server/preview/preview-launcher.mjs +9 -2
- package/dist-server/preview/preview-start.mjs +2 -2
- package/package.json +10 -1
- package/resources/craft-create/SKILL.md +14 -0
- package/resources/craft-game-maker/SKILL.md +77 -71
- package/resources/craft-game-maker/js.md +10 -10
- package/resources/craft-game-maker/js3d.md +13 -13
- package/resources/game_visual_qa.mjs +1149 -1149
- package/resources/js/bundle.json +93 -0
- package/resources/js/context/AGENTS.md +15 -102
- package/resources/js/context/knowledge/AigcWiring.md +5 -196
- package/resources/js/context/knowledge/AssetUrl.md +5 -20
- package/resources/js/context/knowledge/Layout.md +7 -0
- package/resources/js/context/knowledge/Lifecycle.md +6 -27
- package/resources/js/context/skills/aigc-generate/SKILL.md +6 -141
- package/resources/js/context/skills/asset-search/SKILL.md +5 -62
- package/resources/js/context/skills/asset-search/references/resource-config.md +9 -0
- package/resources/js/context/skills/export-config/SKILL.md +7 -19
- package/resources/js/context/skills/export-config/scripts/export-config.mjs +3 -45
- package/resources/js/context/skills/index.json +30 -0
- package/resources/js/context/skills/visual-qa/SKILL.md +6 -28
- package/resources/js/project/README.md +4 -96
- package/resources/js/project/package.json +1 -2
- package/resources/js/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +1 -37
- package/resources/js/project/scripts/config-export.mjs +10 -34
- package/resources/js3d/bundle.json +104 -0
- package/resources/js3d/context/AGENTS.md +16 -85
- package/resources/js3d/context/knowledge/AigcWiring.md +9 -0
- package/resources/js3d/context/knowledge/AssetUrl.md +9 -0
- package/resources/js3d/context/knowledge/CodingGuide/Pitfalls.md +9 -67
- package/resources/js3d/context/knowledge/Layout.md +7 -0
- package/resources/js3d/context/knowledge/Runtime.md +5 -30
- package/resources/js3d/context/skills/aigc-integration/SKILL.md +6 -164
- package/resources/js3d/context/skills/asset-search/SKILL.md +5 -171
- package/resources/js3d/context/skills/asset-search/references/resource-config.md +6 -94
- package/resources/js3d/context/skills/asset-usage-audit/SKILL.md +6 -82
- package/resources/js3d/context/skills/export-config/SKILL.md +7 -11
- package/resources/js3d/context/skills/export-config/scripts/export-config.mjs +3 -55
- package/resources/js3d/context/skills/index.json +42 -0
- package/resources/js3d/context/skills/performance-audit/SKILL.md +8 -153
- package/resources/js3d/context/skills/visual-qa/SKILL.md +14 -0
- package/resources/js3d/project/README.md +4 -103
- package/resources/js3d/project/package.json +1 -2
- package/resources/js3d/project/scripts/config-export/panel-resource-path.mjs +106 -0
- package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-scene-assets.mjs +3 -28
- package/resources/js3d/project/scripts/config-export.mjs +12 -34
- package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts +8 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.js +39 -0
- package/vendor/agent-cli/dist/src/artifacts/build-failure.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts +5 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js +45 -0
- package/vendor/agent-cli/dist/src/artifacts/dependency-toolchain.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js +71 -6
- package/vendor/agent-cli/dist/src/artifacts/preinstalled-dependencies.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts +2 -0
- package/vendor/agent-cli/dist/src/artifacts/prepare.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/prepare.js +7 -2
- package/vendor/agent-cli/dist/src/artifacts/prepare.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts +2 -0
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js +27 -16
- package/vendor/agent-cli/dist/src/artifacts/process-artifacts.js.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts +14 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js +119 -0
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-references.js.map +1 -0
- package/vendor/agent-cli/dist/src/artifacts/static.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/artifacts/static.js +20 -6
- package/vendor/agent-cli/dist/src/artifacts/static.js.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-protocol.js +24 -2
- package/vendor/agent-cli/dist/src/cli/process-protocol.js.map +1 -1
- package/vendor/agent-cli/dist/src/cli/process-steering.d.ts +21 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.js +66 -0
- package/vendor/agent-cli/dist/src/cli/process-steering.js.map +1 -0
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js +1 -1
- package/vendor/agent-cli/dist/src/context/user-skill-bundle.js.map +1 -1
- package/vendor/agent-cli/dist/src/index.d.ts +4 -1
- package/vendor/agent-cli/dist/src/index.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/index.js +3 -0
- package/vendor/agent-cli/dist/src/index.js.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts +31 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js +19 -1
- package/vendor/agent-cli/dist/src/protocol/messages/messages.gen.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.d.ts +10 -0
- package/vendor/agent-cli/dist/src/session/client.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/client.js +16 -5
- package/vendor/agent-cli/dist/src/session/client.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/link-session.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/link-session.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/link-session.js +17 -1
- package/vendor/agent-cli/dist/src/session/link-session.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts +3 -0
- package/vendor/agent-cli/dist/src/session/process-observability.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-observability.js +11 -0
- package/vendor/agent-cli/dist/src/session/process-observability.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-request.d.ts +3 -2
- package/vendor/agent-cli/dist/src/session/process-request.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/process-request.js +27 -9
- package/vendor/agent-cli/dist/src/session/process-request.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts +2 -0
- package/vendor/agent-cli/dist/src/session/run-start-body.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-start-body.js +9 -3
- package/vendor/agent-cli/dist/src/session/run-start-body.js.map +1 -1
- package/vendor/agent-cli/dist/src/session/run-steer.d.ts +42 -0
- package/vendor/agent-cli/dist/src/session/run-steer.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/session/run-steer.js +205 -0
- package/vendor/agent-cli/dist/src/session/run-steer.js.map +1 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts +10 -0
- package/vendor/agent-cli/dist/src/shared/types.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts +21 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.d.ts.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.js +102 -0
- package/vendor/agent-cli/dist/src/tools/context-program-receipt.js.map +1 -0
- package/vendor/agent-cli/dist/src/tools/context-program.d.ts.map +1 -1
- package/vendor/agent-cli/dist/src/tools/context-program.js +3 -0
- package/vendor/agent-cli/dist/src/tools/context-program.js.map +1 -1
- package/resources/js/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js/context/agents/aigc-asset.md +0 -168
- package/resources/js/context/knowledge/AigcEnabled.md +0 -49
- package/resources/js/context/knowledge/FrontendComponents.md +0 -17
- package/resources/js/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -115
- package/resources/js/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -392
- package/resources/js/context/knowledge/PlatformServices.md +0 -190
- package/resources/js/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js/context/knowledge/Ui.md +0 -11
- package/resources/js/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js/context/rules/MultiplayerCapability.md +0 -23
- package/resources/js/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js/context/rules/preview_ready.md +0 -8
- package/resources/js/context/skills/aigc-generate/knowledge/audio.md +0 -39
- package/resources/js/context/skills/aigc-generate/knowledge/batch-replace.md +0 -26
- package/resources/js/context/skills/aigc-generate/knowledge/character2d.md +0 -132
- package/resources/js/context/skills/aigc-generate/knowledge/non-stepwise-aigc.md +0 -53
- package/resources/js/context/skills/aigc-generate/knowledge/texture-prop.md +0 -52
- package/resources/js/context/skills/aigc-generate/knowledge/texture-scene.md +0 -191
- package/resources/js/context/skills/aigc-generate/knowledge/texture-ui.md +0 -55
- package/resources/js/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js/context/skills/asset-search/scripts/config.json +0 -5
- package/resources/js/context/skills/asset-search/scripts/provided_assets.mjs +0 -125
- package/resources/js/context/skills/asset-search/scripts/search.mjs +0 -760
- package/resources/js/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -657
- package/resources/js/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js/context/skills/asset-search/strategies/audio.md +0 -34
- package/resources/js/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js/context/skills/asset-search/strategies/texture-prop.md +0 -22
- package/resources/js/context/skills/asset-search/strategies/ui-common.md +0 -40
- package/resources/js/context/skills/asset-search/strategies/ui-style.md +0 -28
- package/resources/js/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js/context/skills/lightgame-runtime-adapt/SKILL.md +0 -93
- package/resources/js/context/skills/lightgame-runtime-adapt/project/game-runtime.json +0 -7
- package/resources/js/context/skills/lightgame-runtime-adapt/project/package.json +0 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs +0 -208
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts +0 -31
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform-service.mjs +0 -272
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.d.mts +0 -79
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/platform/platform.mjs +0 -29
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/release.json +0 -22
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/cli.mjs +0 -16
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.d.mts +0 -4
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/project.mjs +0 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.d.mts +0 -3
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tooling/vite.mjs +0 -72
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.d.mts +0 -24
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/assets.mjs +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.d.mts +0 -10
- package/resources/js/context/skills/lightgame-runtime-adapt/project/runtime/lightgame/1.1.0/tools/astc.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/config-export.mjs +0 -37
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/cli.mjs +0 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.d.mts +0 -19
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/config.mjs +0 -1
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/installed.json +0 -6
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.d.mts +0 -6
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/project.mjs +0 -77
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.d.mts +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/scripts/skill-modules/export-config/vite.mjs +0 -34
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/ui-stage.ts +0 -156
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/display/viewport.ts +0 -249
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/main.ts +0 -87
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/platform.ts +0 -2
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/screenUi.ts +0 -185
- package/resources/js/context/skills/lightgame-runtime-adapt/project/src/style.css +0 -294
- package/resources/js/context/skills/lightgame-runtime-adapt/project/tsconfig.json +0 -20
- package/resources/js/context/skills/lightgame-runtime-adapt/project/vite.config.ts +0 -5
- package/resources/js/context/skills/lightgame-runtime-adapt/scripts/install-template.mjs +0 -159
- package/resources/js/context/skills/mobile-adaptation/SKILL.md +0 -277
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -50
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -862
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -135
- package/resources/js/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js/context/skills/optimization-suggestions/SKILL.md +0 -89
- package/resources/js/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
- package/resources/js/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
- package/resources/js/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
- package/resources/js/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js/context/skills/resolution-adaptation/SKILL.md +0 -47
- package/resources/js/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
- package/resources/js/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -249
- package/resources/js/context/skills/resolution-adaptation/assets/example/main.ts +0 -98
- package/resources/js/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -200
- package/resources/js/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js/context/skills/resolution-adaptation/references/world-resize.md +0 -55
- package/resources/js/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js/context/skills/scene-editor-compat/SKILL.md +0 -94
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.assets.json +0 -13
- package/resources/js/context/skills/scene-editor-compat/assets/example/localcraft.scene-editor.json +0 -6
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/game/sceneAdapter.ts +0 -25
- package/resources/js/context/skills/scene-editor-compat/assets/example/src/scenes/main.scene.json +0 -18
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.d.mts +0 -42
- package/resources/js/context/skills/scene-editor-compat/assets/runtime/scene.mjs +0 -144
- package/resources/js/context/skills/scene-editor-compat/docs/contract.md +0 -330
- package/resources/js/context/skills/scene-editor-compat/docs/resource-sync.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/docs/runtime-state.md +0 -28
- package/resources/js/context/skills/scene-editor-compat/docs/terrain-contract.md +0 -47
- package/resources/js/context/skills/scene-editor-compat/docs/visual-contract.md +0 -64
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.assets.json +0 -38
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/localcraft.scene-editor.json +0 -9
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneAdapter.ts +0 -59
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneBlockers.ts +0 -30
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/game/sceneFileAssets.ts +0 -66
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/Main.Scene.ts +0 -20
- package/resources/js/context/skills/scene-editor-compat/examples/platformer-ts/src/scenes/SceneTypes.ts +0 -26
- package/resources/js/context/skills/scene-editor-compat/references/contract.md +0 -73
- package/resources/js/context/skills/scene-editor-compat/scripts/apply_scene_marker.py +0 -162
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_contract.py +0 -853
- package/resources/js/context/skills/scene-editor-compat/scripts/check_scene_resource_urls.py +0 -173
- package/resources/js/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -427
- package/resources/js/context/skills/scene-editor-compat/version.json +0 -1
- package/resources/js/context/skills/ui-editor-compat/SKILL.md +0 -48
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -74
- package/resources/js/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js/context/skills/ui-editor-compat/references/contract.md +0 -132
- package/resources/js/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js/context/skills/version-update/SKILL.md +0 -192
- package/resources/js/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js/context/version/version.json +0 -1
- 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 +0 -6
- package/resources/js/project/SPEC/res/.gitkeep +0 -0
- package/resources/js/project/SPEC/task-item/.gitkeep +0 -0
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
- package/resources/js/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
- package/resources/js/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -29
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/release.json +0 -37
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
- package/resources/js/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
- package/resources/js/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js/project/vendor/core-manager-js/package.json +0 -33
- package/resources/js/project/vendor/core-manager-js/src/.versions.json +0 -42
- package/resources/js/project/vendor/core-manager-js/src/CoreManagerPlugin.ts +0 -41
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AssetRef.ts +0 -93
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcFirstImageFile.ts +0 -203
- package/resources/js/project/vendor/core-manager-js/src/assetManager/AstcTextureLoader.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.test.ts +0 -25
- package/resources/js/project/vendor/core-manager-js/src/assetManager/resolveAssetUrl.ts +0 -21
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.test.ts +0 -65
- package/resources/js/project/vendor/core-manager-js/src/audioManager/AudioManager.ts +0 -340
- package/resources/js/project/vendor/core-manager-js/src/configManager/FeatureConfig.ts +0 -87
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.d.mts +0 -92
- package/resources/js/project/vendor/core-manager-js/src/configManager/tuneRuntime.mjs +0 -271
- package/resources/js/project/vendor/core-manager-js/src/index.ts +0 -31
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputConfig.ts +0 -81
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.test.ts +0 -43
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputManager.ts +0 -32
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.test.ts +0 -141
- package/resources/js/project/vendor/core-manager-js/src/inputManager/InputRuntime.ts +0 -20
- package/resources/js/project/vendor/core-manager-js/src/inputManager/KeyboardProvider.ts +0 -183
- package/resources/js/project/vendor/core-manager-js/src/inputManager/TouchProvider.ts +0 -304
- package/resources/js/project/vendor/core-manager-js/src/inputManager/VirtualJoystick.ts +0 -351
- package/resources/js/project/vendor/core-manager-js/src/inputManager/_internal/InputManagerImpl.ts +0 -180
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64 +0 -13
- package/resources/js/project/vendor/core-manager-js/src/inputManager/icons.b64.d.ts +0 -14
- package/resources/js/project/vendor/core-manager-js/src/inputManager/input_config.example.json +0 -68
- package/resources/js/project/vendor/core-manager-js/src/logManager/DebugConsole.ts +0 -433
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogCapture.ts +0 -118
- package/resources/js/project/vendor/core-manager-js/src/logManager/LogManager.ts +0 -444
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCapture.ts +0 -485
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.test.ts +0 -66
- package/resources/js/project/vendor/core-manager-js/src/logManager/ScreenCaptureVideo.ts +0 -149
- package/resources/js/project/vendor/core-manager-js/src/logManager/icons.b64 +0 -9
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/AssetUrlResolver.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.test.ts +0 -88
- package/resources/js/project/vendor/core-manager-js/src/resourceManager/ResourceManager.ts +0 -122
- package/resources/js/project/vendor/core-manager-js/src/runtime.ts +0 -24
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterEntity.ts +0 -318
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.test.ts +0 -151
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/CharacterPhysicsBinding.ts +0 -235
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.test.ts +0 -98
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectComposite.ts +0 -94
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/EffectEntity.ts +0 -209
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.test.ts +0 -106
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxManager.ts +0 -341
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.test.ts +0 -68
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/FxRecipe.ts +0 -236
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.test.ts +0 -22
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteAnimManager.ts +0 -29
- package/resources/js/project/vendor/core-manager-js/src/spriteAnimManager/SpriteEntity.test.ts +0 -197
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiContracts.ts +0 -9
- package/resources/js/project/vendor/core-manager-js/src/uiManager/DomUiKit.ts +0 -555
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.test.ts +0 -112
- package/resources/js/project/vendor/core-manager-js/src/uiManager/UIFacadePlugin.ts +0 -178
- package/resources/js/project/vendor/core-manager-js/src/uiManager/ui-base.css +0 -246
- package/resources/js/project/vendor/core-manager-js/src/videoManager/VideoManager.ts +0 -139
- package/resources/js/project/vendor/core-manager-js/tsconfig.json +0 -15
- package/resources/js/project/vendor/run.sh +0 -4
- package/resources/js/project/version/craft_feature_version.json +0 -42
- package/resources/js/project/version/project_feature_version.json +0 -11
- package/resources/js3d/context/.role/AGENTS_DESIGN.md +0 -9
- package/resources/js3d/context/knowledge/3D/PoseInterpolationKnowledge.md +0 -75
- package/resources/js3d/context/knowledge/CodingGuide/SceneEditableGuide.md +0 -42
- package/resources/js3d/context/knowledge/FrontendComponents.md +0 -19
- package/resources/js3d/context/knowledge/MobileAdaptation.md +0 -73
- package/resources/js3d/context/knowledge/MobileAdapted.md +0 -36
- package/resources/js3d/context/knowledge/Multiplayer/GameplaySystemKnowledge.md +0 -114
- package/resources/js3d/context/knowledge/Multiplayer/OverviewKnowledge.md +0 -117
- package/resources/js3d/context/knowledge/Multiplayer/StateSyncKnowledge.md +0 -430
- package/resources/js3d/context/knowledge/PlatformServices.md +0 -190
- package/resources/js3d/context/knowledge/ProjectDisplayConfig.md +0 -35
- package/resources/js3d/context/knowledge/SceneEditorCompat.md +0 -35
- package/resources/js3d/context/knowledge/StepByStep.md +0 -21
- package/resources/js3d/context/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md +0 -242
- package/resources/js3d/context/knowledge/UiEditorCompat.md +0 -21
- package/resources/js3d/context/rules/MultiplayerCapability.md +0 -27
- package/resources/js3d/context/rules/MultiplayerRoomEntryUX.md +0 -63
- package/resources/js3d/context/rules/PlatformBoundaryModules.md +0 -44
- package/resources/js3d/context/rules/preview_ready.md +0 -8
- package/resources/js3d/context/skills/aigc-integration/assets/sprite-sheet-player.mjs +0 -70
- package/resources/js3d/context/skills/aigc-integration/callback.md +0 -77
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/README.md +0 -23
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md +0 -38
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md +0 -72
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md +0 -33
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md +0 -36
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-scene-aigc-knowledge.md +0 -37
- package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md +0 -35
- package/resources/js3d/context/skills/asset-search/references/sprite-sheets.md +0 -58
- package/resources/js3d/context/skills/asset-search/scripts/asset_display.mjs +0 -62
- package/resources/js3d/context/skills/asset-search/scripts/config.json +0 -235
- package/resources/js3d/context/skills/asset-search/scripts/manifest_pipeline.mjs +0 -905
- package/resources/js3d/context/skills/asset-search/scripts/preflight.mjs +0 -79
- package/resources/js3d/context/skills/asset-search/scripts/provided_assets.mjs +0 -74
- package/resources/js3d/context/skills/asset-search/scripts/search.mjs +0 -637
- package/resources/js3d/context/skills/asset-search/scripts/sprite_source_materializer.mjs +0 -667
- package/resources/js3d/context/skills/asset-search/strategies/anim2d.md +0 -42
- package/resources/js3d/context/skills/asset-search/strategies/effect2d.md +0 -31
- package/resources/js3d/context/skills/asset-usage-audit/references/case-tidewater-zoo.md +0 -89
- package/resources/js3d/context/skills/asset-usage-audit/references/optimization-playbook.md +0 -143
- package/resources/js3d/context/skills/asset-usage-audit/references/usage-model.md +0 -90
- package/resources/js3d/context/skills/export-config/scripts/translate-asset-titles.mjs +0 -161
- package/resources/js3d/context/skills/game-art-style/SKILL.md +0 -60
- 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 +0 -38
- package/resources/js3d/context/skills/game-art-style/references/construction.md +0 -111
- package/resources/js3d/context/skills/game-art-style/references/materials-textures.md +0 -105
- package/resources/js3d/context/skills/game-art-style/references/sources.md +0 -25
- package/resources/js3d/context/skills/game-art-style/references/styles/cartoon.md +0 -175
- package/resources/js3d/context/skills/game-art-style/references/styles/comic.md +0 -168
- package/resources/js3d/context/skills/game-art-style/references/styles/cozy.md +0 -191
- package/resources/js3d/context/skills/game-art-style/references/styles/cyber.md +0 -165
- package/resources/js3d/context/skills/game-art-style/references/styles/horror.md +0 -173
- package/resources/js3d/context/skills/game-art-style/references/styles/lowpoly.md +0 -185
- package/resources/js3d/context/skills/game-art-style/references/styles/paper.md +0 -181
- package/resources/js3d/context/skills/game-art-style/references/styles/voxel.md +0 -189
- package/resources/js3d/context/skills/game-art-style/references/user-style-document.md +0 -88
- package/resources/js3d/context/skills/mobile-adaptation/SKILL.md +0 -301
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-config.json +0 -104
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-layer.ts +0 -933
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-platform.ts +0 -92
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/input-primitives.ts +0 -254
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/input/look-pad.ts +0 -245
- package/resources/js3d/context/skills/mobile-adaptation/assets/example/src/ui/touch-controls.css +0 -257
- package/resources/js3d/context/skills/mobile-adaptation/references/input-config.md +0 -342
- package/resources/js3d/context/skills/mobile-adaptation/references/verification.md +0 -140
- package/resources/js3d/context/skills/mobile-adaptation/references/web-audio.md +0 -11
- package/resources/js3d/context/skills/mobile-compat-qa/SKILL.md +0 -53
- package/resources/js3d/context/skills/mobile-compat-qa/references/startup-diagnosis.md +0 -23
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-form-input.md +0 -10
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-lifecycle.md +0 -20
- package/resources/js3d/context/skills/mobile-compat-qa/references/web-performance.md +0 -19
- package/resources/js3d/context/skills/optimization-suggestions/SKILL.md +0 -74
- package/resources/js3d/context/skills/performance-audit/references/case-notes.md +0 -93
- package/resources/js3d/context/skills/performance-audit/references/rules.md +0 -183
- package/resources/js3d/context/skills/platform-services/SKILL.md +0 -101
- package/resources/js3d/context/skills/platform-services/assets/modules/MultiplayerManager.ts +0 -465
- package/resources/js3d/context/skills/platform-services/assets/modules/eventBus.ts +0 -57
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-ai-game-sdk.min.js +0 -5
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/qq-session.mjs +0 -208
- package/resources/js3d/context/skills/platform-services/assets/modules/identity/shared.mjs +0 -37
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.d.mts +0 -39
- package/resources/js3d/context/skills/platform-services/assets/modules/leaderboard.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/modules/log.ts +0 -35
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/clockSync.ts +0 -61
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/dsClient.ts +0 -52
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/payloadCodec.ts +0 -30
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/roomHttp.ts +0 -89
- package/resources/js3d/context/skills/platform-services/assets/modules/multiplayer/types.ts +0 -47
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.d.mts +0 -31
- package/resources/js3d/context/skills/platform-services/assets/modules/platform-service.mjs +0 -272
- package/resources/js3d/context/skills/platform-services/assets/modules/save.d.mts +0 -49
- package/resources/js3d/context/skills/platform-services/assets/modules/save.mjs +0 -1
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/main.mjs +0 -7
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/SyncRoom.mjs +0 -264
- package/resources/js3d/context/skills/platform-services/assets/scaffold/ds/rooms/syncSchema.mjs +0 -39
- package/resources/js3d/context/skills/platform-services/references/SERVER_GUIDE.md +0 -139
- package/resources/js3d/context/skills/platform-services/references/api_reference.md +0 -18
- package/resources/js3d/context/skills/platform-services/references/leaderboard_playbook.md +0 -96
- package/resources/js3d/context/skills/platform-services/scripts/install.mjs +0 -148
- package/resources/js3d/context/skills/resolution-adaptation/SKILL.md +0 -46
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/ui-stage.ts +0 -156
- package/resources/js3d/context/skills/resolution-adaptation/assets/display/viewport.ts +0 -239
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/main.ts +0 -129
- package/resources/js3d/context/skills/resolution-adaptation/assets/example/ui-tokens.css +0 -188
- package/resources/js3d/context/skills/resolution-adaptation/references/audit.md +0 -31
- package/resources/js3d/context/skills/resolution-adaptation/references/device-safe-area.md +0 -40
- package/resources/js3d/context/skills/resolution-adaptation/references/game-ui-occlusion.md +0 -18
- package/resources/js3d/context/skills/resolution-adaptation/references/layout-rules.md +0 -15
- package/resources/js3d/context/skills/resolution-adaptation/references/troubleshooting.md +0 -34
- package/resources/js3d/context/skills/resolution-adaptation/references/viewport-api.md +0 -38
- package/resources/js3d/context/skills/resolution-adaptation/scripts/aspect_audit.mjs +0 -448
- package/resources/js3d/context/skills/scene-editor-compat/SKILL.md +0 -599
- package/resources/js3d/context/skills/scene-editor-compat/references/bundle-contract.md +0 -141
- package/resources/js3d/context/skills/scene-editor-compat/references/editor-integration.md +0 -92
- package/resources/js3d/context/skills/scene-editor-compat/references/scene-data-format.md +0 -125
- package/resources/js3d/context/skills/scene-editor-compat/references/slots-rules.md +0 -113
- package/resources/js3d/context/skills/scene-editor-compat/scripts/scene-editor.mjs +0 -1187
- package/resources/js3d/context/skills/threejs-game-quality/SKILL.md +0 -53
- package/resources/js3d/context/skills/threejs-game-quality/agents/openai.yaml +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/references/01-build.md +0 -94
- package/resources/js3d/context/skills/threejs-game-quality/references/02-avoid.md +0 -50
- package/resources/js3d/context/skills/threejs-game-quality/references/03-detect.md +0 -105
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-by-genre.md +0 -147
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-distance.md +0 -79
- package/resources/js3d/context/skills/threejs-game-quality/references/camera-sources.md +0 -56
- package/resources/js3d/context/skills/threejs-game-quality/references/character-motion-face.md +0 -51
- package/resources/js3d/context/skills/threejs-game-quality/references/parameter-contract.md +0 -55
- package/resources/js3d/context/skills/threejs-game-quality/references/refine-existing.md +0 -78
- package/resources/js3d/context/skills/threejs-game-quality/references/rendering-stability.md +0 -84
- package/resources/js3d/context/skills/threejs-game-quality/references/runtime-tools.md +0 -120
- package/resources/js3d/context/skills/threejs-game-quality/scripts/package.json +0 -4
- package/resources/js3d/context/skills/threejs-game-quality/scripts/runtime-audit.js +0 -238
- package/resources/js3d/context/skills/ui-editor-compat/SKILL.md +0 -59
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLayout_Hud.ts +0 -35
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/WidgetLogic_Hud.ts +0 -61
- package/resources/js3d/context/skills/ui-editor-compat/assets/example/hud/hud.css +0 -60
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.d.mts +0 -45
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/dom-ui.mjs +0 -265
- package/resources/js3d/context/skills/ui-editor-compat/assets/runtime/release.json +0 -7
- package/resources/js3d/context/skills/ui-editor-compat/references/contract.md +0 -110
- package/resources/js3d/context/skills/ui-editor-compat/scripts/editor-contract.mjs +0 -327
- package/resources/js3d/context/skills/ui-editor-compat/scripts/project-files.mjs +0 -80
- package/resources/js3d/context/skills/ui-editor-compat/scripts/ui-editor.mjs +0 -84
- package/resources/js3d/context/skills/version-update/SKILL.md +0 -191
- package/resources/js3d/context/skills/version-update/scripts/check_runtime_refs.mjs +0 -129
- package/resources/js3d/context/skills/version-update/scripts/feature_snapshot.mjs +0 -159
- package/resources/js3d/context/skills/version-update/scripts/update_feature_version.mjs +0 -157
- package/resources/js3d/context/skills/version-update/upgrade_diffs/.gitkeep +0 -0
- package/resources/js3d/context/version/version.json +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.d.mts +0 -19
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/config.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.d.mts +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/leaderboard.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-capture-video.mjs +0 -227
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.d.mts +0 -25
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform-service.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.d.mts +0 -79
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/platform.mjs +0 -30
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.d.mts +0 -49
- package/resources/js3d/project/runtime/lightgame/1.0.0/platform/save.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/release.json +0 -39
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/cli.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/project.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.d.mts +0 -3
- package/resources/js3d/project/runtime/lightgame/1.0.0/tooling/vite.mjs +0 -7
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.d.mts +0 -24
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/assets.mjs +0 -2
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.d.mts +0 -10
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/astc.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.d.mts +0 -20
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/audio.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.d.mts +0 -21
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/canvas.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.d.mts +0 -26
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/glb.mjs +0 -351
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.d.mts +0 -17
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/input.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.d.mts +0 -40
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/three.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.d.mts +0 -10
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/ui.mjs +0 -1
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.d.mts +0 -8
- package/resources/js3d/project/runtime/lightgame/1.0.0/tools/video.mjs +0 -1
- package/resources/js3d/project/scripts/refresh-runtime.mjs +0 -50
- package/resources/js3d/project/vendor/core-manager-three/package.json +0 -12
- package/resources/js3d/project/vendor/core-manager-three/src/index.ts +0 -2
- package/resources/js3d/project/vendor/run.sh +0 -4
- package/resources/js3d/project/version/craft_feature_version.json +0 -42
- package/resources/js3d/project/version/project_feature_version.json +0 -11
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts +0 -7
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.d.ts.map +0 -1
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js +0 -145
- package/vendor/agent-cli/dist/src/artifacts/scene-asset-delivery.js.map +0 -1
- /package/resources/js/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/assert-asset-wiring.mjs +0 -0
- /package/resources/js3d/{context/skills/export-config/scripts → project/scripts/config-export}/sync-asset-controls.mjs +0 -0
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 联机进房交互只有「创建房间 + 房间列表 + 加入房间」一套——禁止房间名 / 房间号 / 邀请码输入框,房间名用固定模板自动生成
|
|
3
|
-
always: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 联机进房交互门禁(强制)
|
|
7
|
-
|
|
8
|
-
联机进房**只允许**这一套:**创建房间** → **房间列表** → **点列表项加入**。
|
|
9
|
-
|
|
10
|
-
## 硬禁止
|
|
11
|
-
|
|
12
|
-
- **禁止任何输入框**:房间名输入框、房间号 / 房号 / 邀请码输入框、数字键盘输码页,一律不做。自由文本输入是平台功能红线,数字房号同样禁止。
|
|
13
|
-
- **禁止按名称或号码查找房间**:不做「输入房间名 → 本地 `listRooms()` 里匹配」,也不做「输入房号 → 拼 `roomId` 直接加入」。平台**不保证 `title` 唯一、不支持按 `title` 查房**。
|
|
14
|
-
- **禁止邀请码 / 邀请链接 / 好友邀请进房**。
|
|
15
|
-
- `joinRoom(roomId)` 的 `roomId` **只能来自 `listRooms()` 返回的 `RoomBrief.roomId`**,不得由玩家输入或手工拼接。
|
|
16
|
-
|
|
17
|
-
用户口头要求「输房号进房」「自己给房间起名」时:改用房间列表方案,并明确告知本版不做输码与自定义房名。
|
|
18
|
-
|
|
19
|
-
## 房间名:固定模板,自动生成
|
|
20
|
-
|
|
21
|
-
`createRoom()` **无参**,房间名在 `init()` 时就已确定——模板设计上没有「玩家输入后再创建」的位置。
|
|
22
|
-
|
|
23
|
-
用平台下发的玩家名拼固定模板:
|
|
24
|
-
|
|
25
|
-
```ts
|
|
26
|
-
// ✅ 启动时一次确定,玩家不参与
|
|
27
|
-
MultiplayerManager.init({
|
|
28
|
-
roomName: 'sync',
|
|
29
|
-
maxPlayers: 8,
|
|
30
|
-
title: `${PlatformServiceManager.getPlayerName() || '玩家'}的房间`,
|
|
31
|
-
});
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```ts
|
|
35
|
-
// ❌ 让玩家输入房名
|
|
36
|
-
const title = await showInputDialog('给你的房间起个名字');
|
|
37
|
-
MultiplayerManager.init({ title });
|
|
38
|
-
|
|
39
|
-
// ❌ 让玩家输入房号加入
|
|
40
|
-
const code = await showInputDialog('输入 4 位房间号');
|
|
41
|
-
MultiplayerManager.joinRoom(code);
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
`getPlayerName()` 为空时用 `'玩家'` 兜底,不弹输入框问名字。
|
|
45
|
-
|
|
46
|
-
## 大厅 UI 该长什么样
|
|
47
|
-
|
|
48
|
-
`listRooms()` 返回的 `RoomBrief { roomId, title, playerCount, maxPlayers, status }` 已足够渲染完整大厅,不需要任何输入控件:
|
|
49
|
-
|
|
50
|
-
- 一个「创建房间」按钮
|
|
51
|
-
- 一个房间列表,渲染 `listRooms()` 的**全部** `items`,每项显示 `title` 与 `playerCount / maxPlayers`
|
|
52
|
-
- 未满员:整项可点击加入。满员:标「已满」、不可加入。禁止 `filter(r => r.playerCount < r.maxPlayers)` 把满员房藏掉
|
|
53
|
-
- 列表**必做定时自动刷新**(大厅停留期间约每 2~3 秒;平台列表无推送);离开大厅即停止。可附带手动刷新按钮,但不能只靠手动
|
|
54
|
-
- 无可加入房间时突出「创建房间」入口,**不要**画输码页或搜索框
|
|
55
|
-
- 空列表也要更新 UI(含「暂无房间」),禁止用空签名跳过渲染、禁止把「正在连接」hint 留到握手结束之后
|
|
56
|
-
|
|
57
|
-
## 两阶段进房(强制)
|
|
58
|
-
|
|
59
|
-
HTTP `create` / `join` 只占座并拉起 DS;进对局还要 Colyseus 连上。`createRoom` / `joinRoom` 在 `CONNECT_FAILED` 时**默认已 `leaveRoom()`**。业务失败只提示,禁止只回大厅不退房。需要占座重试时显式传 `{ keepSeat: true }`。
|
|
60
|
-
|
|
61
|
-
`maxPlayers`、`ds/` 的 `maxClients`、玩法人数三者必须相同。
|
|
62
|
-
|
|
63
|
-
重连只用 `mp-disconnect` 的 `roomId` 或 `getLastRoomId()`。`onLeave` 之后 `getRoomId()` 已空,禁止拿它重连。
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: 平台边界模块的落地纪律——身份、排行榜、云存档、多人同步都由 platform-services 按需安装,模块不可用时必须停下报告阻塞,禁止手写替代实现
|
|
3
|
-
always: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# 平台边界模块门禁(强制)
|
|
7
|
-
|
|
8
|
-
平台边界模块封装的不是可从工程代码推断的逻辑,而是**平台协议边界**——连接重试节奏、`room_closed` / 断线监听、`uid` 的 uint32 值域、DS 收尾时序等。这些约束在工程代码里没有任何可参照的痕迹,Agent 无法凭代码反推。
|
|
9
|
-
|
|
10
|
-
## 落地方式
|
|
11
|
-
|
|
12
|
-
身份、排行榜、云存档、多人同步都由 `platform-services` 安装到 `src/skill-modules/platform-services/`。只装这次要用的模块:
|
|
13
|
-
|
|
14
|
-
- `identity`:身份
|
|
15
|
-
- `leaderboard`:排行榜,附带身份文件,不含云存档和联机
|
|
16
|
-
- `save`:云存档,附带身份文件,不含排行榜和联机
|
|
17
|
-
- `multiplayer`:`MultiplayerManager.ts`、`log.ts`、`eventBus.ts` 和 `multiplayer/`,附带身份文件,不含排行榜和云存档
|
|
18
|
-
|
|
19
|
-
不传 `--modules` 时只装 `identity`。装出来的文件可按玩法修改;重装会覆盖为当前版本,改过的文件备份为同目录 `.previous`,重装后按项目实际代码合入,见 `platform-services` 的「修改与重装」。不要改从 `runtime/lightgame/1.0.0/platform/` 引入。`1.0.0` 里的同名模块和 `src/subsystem/multiplayerManager/` 旧副本,只留给业务代码仍在 import 它们的旧工程。旧副本目录还在、但没有任何 import 时,删掉它再按 `multiplayer` 安装。给仍在用 `1.0.0` 身份的工程新增联机即算迁移:入口改从安装出来的 `platform-service.mjs` 导入身份;同时在用 `1.0.0` 排行榜 / 云存档的,同一步装对应模块并改 import,不两套并存。模块缺失或安装失败时停下报告,不要手抄一份。用法见 `${CRAFT_CONTEXT_DIR}/knowledge/PlatformServices.md` 与 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。`ds/` 骨架也由安装 `multiplayer` 写入:工程没有 `ds/` 时写一份,已有不覆盖,之后归工程所有。服务端约束见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/SERVER_GUIDE.md`。
|
|
20
|
-
|
|
21
|
-
## 硬约束
|
|
22
|
-
|
|
23
|
-
- 需要哪个能力就只安装哪个模块,不改动安装文件里封装的边界行为。
|
|
24
|
-
- **安装失败或 skill 缺失**(skill 缺失、沙箱镜像故障 `system skill mirror digest mismatch`、写入失败(目标是符号链接、路径越界、磁盘错误)、文件缺失等)→ **必须停下来,报告阻塞**,明确说明是哪个模块拿不到、卡在何处。**禁止手写替代实现。** 安装器报 `Unmerged backup` 不属于这一类:按「修改与重装」合入备份后重装。
|
|
25
|
-
- **禁止在报告里谎报状态**:既然没落地,就必须说"未落地/被阻塞",不得一边手写了替代件、一边声称"未创建替代模块"。
|
|
26
|
-
- 不要从旧 runtime 抄 `.mjs`、改 alias,或改去 import `runtime/lightgame/1.0.0`。不要把联机再复制到 `src/subsystem/multiplayerManager/`。
|
|
27
|
-
- **禁止手写换票或排行/存档 HTTP**(含自己调 `game-session` / `qq-game-session` / `/api/leaderboard/*` / `/api/cloudsave/*`)。只用安装出来的 `platform-service` / `LeaderboardManager` / `SaveManager`。
|
|
28
|
-
- **排行榜 `boardKey`:** `configure` / `report` / `query`(及用到的 batch、updateDisplay)必须同一常量;新代码禁止省略。详情见 `${CRAFT_CONTEXT_DIR}/skills/platform-services/references/leaderboard_playbook.md`。
|
|
29
|
-
- **装了 `leaderboard` 或 `save`:** `getPlatformService({ initTimeoutMs: 20000 }).init()`。排行身份未就绪时提供【重新加载游戏】,身份有效时查榜失败可重查;重复 `whenReady()` / `init()` 不会重新换票。云存档首次云读档及重试云读写前确认身份就绪(或 `active` 后再读);`OK` + `source === 'local'` 不是云成功。
|
|
30
|
-
|
|
31
|
-
## 为什么禁止手写(这不是保守,是手写必然缺边界)
|
|
32
|
-
|
|
33
|
-
手写替代件会缺掉一批**无法从工程代码自证**的平台边界约束。已发生的实例(js2d 工程模板故障后 Agent 手写 `multiplayerManager` / `platformServiceManager`),手写件同时缺失以下四条,且每条都零报错、正常游玩测不到:
|
|
34
|
-
|
|
35
|
-
- **无连接重试**:刚开房头一两秒 DS 还没 listen,客户端首次连接会失败,需按节奏重试——手写件直接放弃。
|
|
36
|
-
- **不监听 `room_closed` / 断线**:DS 收尾时 `broadcast("room_closed")`,客户端要据此给出关闭码;手写件不听,玩家只拿到空 `onError`。
|
|
37
|
-
- **`uid` 恒为 0**:平台在场名单要 uint32 `uid`,手写件不接 `parseJoinUid`,上报恒 0,平台解在场名单失败。
|
|
38
|
-
- **`requestClose` 未定义 / 收尾时序缺失**:空房收不了尾。
|
|
39
|
-
|
|
40
|
-
这四条 Agent 自己无从验证——所以门禁停在"禁止手写",而不是"手写时记得补齐这四条"(补的前提是知道有这四条,而这正是它推不出来的)。
|
|
41
|
-
|
|
42
|
-
## 用户坚持要继续时
|
|
43
|
-
|
|
44
|
-
若用户明确要求在模板不可用的情况下继续,**必须逐条列出无法自证的边界假设**(至少上述连接重试 / `room_closed` 与断线监听 / `uid` 值域 / 收尾时序四类),说明手写件在这些点上必然是猜测、线上大概率静默失效,再由用户决定是否承担。不得默默手写后当作正常交付。
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// Copy into the game's src/ when needed; do not import context/ at runtime.
|
|
2
|
-
// The caller loads manifest.url or recall.sprite.sheetPath and drives update(dt).
|
|
3
|
-
export function createSpriteSheetPlayer(THREE, source, manifest, { fps = manifest?.fps ?? 12, loop = manifest?.loop ?? true } = {}) {
|
|
4
|
-
const { type, rows, cols, frameCount } = manifest ?? {};
|
|
5
|
-
const url = manifest?.sheetPath ?? manifest?.url;
|
|
6
|
-
if ((type !== 'PaperFlipbook' && !(type === undefined && manifest?.sheetPath)) || typeof url !== 'string' || !url.trim() ||
|
|
7
|
-
![rows, cols, frameCount].every(n => Number.isSafeInteger(n) && n > 0) ||
|
|
8
|
-
!Number.isSafeInteger(rows * cols) || frameCount > rows * cols || typeof loop !== 'boolean') {
|
|
9
|
-
throw new TypeError('Invalid PaperFlipbook manifest');
|
|
10
|
-
}
|
|
11
|
-
const width = source.image?.width;
|
|
12
|
-
const height = source.image?.height;
|
|
13
|
-
if (!Number.isInteger(width) || !Number.isInteger(height) || width <= 0 || height <= 0 ||
|
|
14
|
-
width % cols || height % rows || !Number.isFinite(fps) || fps <= 0) {
|
|
15
|
-
throw new TypeError('Invalid sprite sheet dimensions or fps');
|
|
16
|
-
}
|
|
17
|
-
// Every instance owns its UV transform; sharing it would synchronize animations.
|
|
18
|
-
const texture = source.clone();
|
|
19
|
-
texture.flipY = true;
|
|
20
|
-
texture.colorSpace = THREE.SRGBColorSpace;
|
|
21
|
-
texture.wrapS = texture.wrapT = THREE.ClampToEdgeWrapping;
|
|
22
|
-
texture.minFilter = texture.magFilter = THREE.LinearFilter;
|
|
23
|
-
texture.generateMipmaps = false;
|
|
24
|
-
texture.repeat.set(1 / cols, 1 / rows);
|
|
25
|
-
texture.needsUpdate = true;
|
|
26
|
-
const material = new THREE.SpriteMaterial({ map: texture, transparent: true, depthWrite: false });
|
|
27
|
-
const sprite = new THREE.Sprite(material);
|
|
28
|
-
// Preserve the frame's aspect ratio; the game chooses world-space height.
|
|
29
|
-
sprite.scale.set((width / cols) / (height / rows), 1, 1);
|
|
30
|
-
let elapsed = 0;
|
|
31
|
-
let frame = 0;
|
|
32
|
-
let flipX = false;
|
|
33
|
-
let disposed = false;
|
|
34
|
-
function show(index) {
|
|
35
|
-
frame = index;
|
|
36
|
-
// Atlas rows are top-to-bottom; TextureLoader's flipped UV origin is bottom-left.
|
|
37
|
-
texture.repeat.x = (flipX ? -1 : 1) / cols;
|
|
38
|
-
texture.offset.set((frame % cols + (flipX ? 1 : 0)) / cols, 1 - (Math.floor(frame / cols) + 1) / rows);
|
|
39
|
-
}
|
|
40
|
-
show(0);
|
|
41
|
-
return {
|
|
42
|
-
sprite,
|
|
43
|
-
get frame() { return frame; },
|
|
44
|
-
get finished() { return !loop && elapsed >= frameCount / fps; },
|
|
45
|
-
setFlipX(value) {
|
|
46
|
-
if (disposed) return;
|
|
47
|
-
flipX = Boolean(value);
|
|
48
|
-
show(frame);
|
|
49
|
-
},
|
|
50
|
-
update(dt) {
|
|
51
|
-
if (disposed || !Number.isFinite(dt) || dt < 0) return;
|
|
52
|
-
const duration = frameCount / fps;
|
|
53
|
-
elapsed = loop ? (elapsed + dt) % duration : Math.min(elapsed + dt, duration);
|
|
54
|
-
show(Math.min(frameCount - 1, Math.floor(elapsed * fps)));
|
|
55
|
-
},
|
|
56
|
-
reset() {
|
|
57
|
-
if (disposed) return;
|
|
58
|
-
elapsed = 0;
|
|
59
|
-
show(0);
|
|
60
|
-
},
|
|
61
|
-
dispose() {
|
|
62
|
-
if (disposed) return;
|
|
63
|
-
disposed = true;
|
|
64
|
-
sprite.removeFromParent();
|
|
65
|
-
material.dispose();
|
|
66
|
-
texture.dispose();
|
|
67
|
-
// source and Sprite's shared geometry belong to their owners, not this player.
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# AIGC 异步回调处理
|
|
2
|
-
|
|
3
|
-
产物回来后的**定点替换**规则。`configs/**` 是回填的**主目标**(运行时真正读的是它),`SPEC/res/asset-manifest.json` 同步跟进以保持资产事实源一致。带 `game-runtime.json` 的项目按 [资源配置](../asset-search/references/resource-config.md) 修改普通 JSON 字符串字段,资源类型在同名 controls 中;旧项目沿用原配置格式。
|
|
4
|
-
|
|
5
|
-
触发条件:收到应用资源消息;用户明确要求应用已生成资源;或 `aigc_status` 返回 `delivery=await` 的 `completed + result_url`。跨轮进度查询本身不触发回填;`awaiting_preview` 须先由用户在资源中心预览确认。**绝不重新提交生成任务**。
|
|
6
|
-
|
|
7
|
-
## 1. 提取回调
|
|
8
|
-
|
|
9
|
-
平台资源回调从原始消息逐条提取;工具结果用 `name` 作下文的 `slot`、`result_url` 作资源 URL。仅处理 URL 非空的 `await` 完成项,或用户指定应用且 `backend_status=completed` 的跨轮项。保留 `task_id` 供预检比对,未带时不猜补。
|
|
10
|
-
|
|
11
|
-
- `slot`:回调里的定位字段,值就是提交时 `aigc_submit` 的 `name`,即 **config key**(带点,如 `gameScene.crate_model`)。
|
|
12
|
-
- 资源 URL:保存平台返回的真实完整 HTTPS URL;官方 CDN URL 也可保存为不带前导斜杠的相对路径,如 `test1/ai-resource/571/1000002624/xxx.glb`。不要随意删除其他来源 URL 的域名,也不要将 `/test1/...` 写成站点绝对路径。当前 Vite 配置适配会归一化资源字段。
|
|
13
|
-
- 模型 GLB 可能是一体式或拆分式,回调处理**不需要判断形态**:**不要补任何挂载前缀**,也不要手工拼档位或压缩贴图路径——加载侧(`loadGlbModel`)按需发现,手写的路径会指向不存在的文件。被覆盖的槽位如果原先是库模型,既有加载代码无需改写。
|
|
14
|
-
|
|
15
|
-
一条消息可包含多个资源。**封面条目直接跳过**(无 slot、不进 configs)。缺 `slot` 或 URL 的条目只记失败,不猜补。
|
|
16
|
-
|
|
17
|
-
## 2. 整批预检(逐条判定,合并通过项后再写文件)
|
|
18
|
-
|
|
19
|
-
1. 找任务记录:账本是 `${CRAFT_PROJECT_DIR}/.aigc-queue/results.json`,由 `aigc_submit`
|
|
20
|
-
工具自动写入。用 `items[].name` 匹配回调的 `slot`,落点信息在 `wiring.*`
|
|
21
|
-
(`wiring.config_file` / `wiring.manifest_slot` / `wiring.asset_type`)。
|
|
22
|
-
|
|
23
|
-
- 账本有当前记录且查询结果 / 回调带 `task_id` 时,两者须一致;旧任务结果跳过,避免覆盖新一轮音乐。
|
|
24
|
-
- 新账本没有该 `name` 时,兼容旧项目的 `SPEC/res/.aigc-tasks.json`:按 `tasks[].slot_id` 匹配,沿用其 `task_id`,将旧记录的 `config_file` / `manifest_slot` / `asset_type` 作为下文的 `wiring.*`。新账本已有该槽位时不回退旧记录;新旧记录都没有才走配置兜底。
|
|
25
|
-
- `wiring` 为空说明该条是本轮闭环的资产(贴图 / 角色序列帧 / 音乐),它本该在生成当轮就接线完成;
|
|
26
|
-
若此刻才拿到回调,按下一条的兜底路径处理。
|
|
27
|
-
2. 按记录中的 `wiring.config_file` 定位配置,确认文件位于项目的 `configs/` 内,且与 `slot` 的 owner 一致。余下部分定位字符串叶子;对应 `*.controls.json` 中必须有 `type: resource` 和匹配的 `asset_type`。
|
|
28
|
-
- 任务的键或消费方已被删除时跳过并报告,不凭迟到结果重建已移除的玩法。
|
|
29
|
-
- 账本缺失或该条没有 `wiring` 时,仅以 `slot` 的首段推导 `configs/<owner>.json`,并要求该字段与资源控件已经存在;无法唯一定位则跳过,不猜补。
|
|
30
|
-
3. 校验真实 URL 的 pathname(忽略查询参数)与该 key 的 `asset_type` 家族相符(`Texture2D`→图片后缀、`StaticMesh`→`.glb`/`.gltf`、`SoundWave`→音频后缀、AIGC `PaperFlipbook`→`.json`);有账本时还需与记录中的类型一致。不符则记失败,**不写入**。
|
|
31
|
-
- `PaperFlipbook` 还须读取 JSON,确认 `type === "PaperFlipbook"`、`url` 是非空图集地址,`rows` / `cols` / `frameCount` 是正整数且 `frameCount <= rows * cols`;按[序列帧接线](knowledge/aigc/character2d-aigc-knowledge.md#threejs-接线)加载图集,确认宽高可整除列数/行数。读取或校验失败保留原路径,不把整张图集作为单图回填。
|
|
32
|
-
4. 同一 `slot` 出现多条:路径相同则去重;不同则视为冲突,该条整体跳过并报告。
|
|
33
|
-
|
|
34
|
-
任一条目预检失败只跳过该条,其余正常回填;**但同一文件内的写入必须合并为一次原子写**。
|
|
35
|
-
|
|
36
|
-
## 3. 回填 configs(主目标)
|
|
37
|
-
|
|
38
|
-
1. 定点替换该 key 对应的 JSON 字符串叶子为真实资源路径,如 `gameScene.crate_model` 修改 `configs/gameScene.json` 的 `crate_model`。
|
|
39
|
-
`PaperFlipbook` 保存 `result_url` 的 manifest JSON 地址,不改成内部 PNG 地址;这样参数面板、资产展示和运行时读取的是同一个资源。
|
|
40
|
-
2. 已有键只改路径,保留同文件其他字段和 controls 元数据。不把路径包成 `{ value: ... }` 对象。
|
|
41
|
-
3. 同一配置文件的多处替换合并为一次写入,临时文件 + rename 原子写回。
|
|
42
|
-
4. 已有消费方不修改 `src/**`。
|
|
43
|
-
序列帧消费方应在提交前建立,并在资源路径变更后重新读取 manifest 与图集;不能继续复用旧资源的行列数和帧数。历史项目缺少序列帧消费方时先补齐接线,再应用,不能只改路径就报告可播放。
|
|
44
|
-
|
|
45
|
-
## 4. 同步 manifest
|
|
46
|
-
|
|
47
|
-
1. 按任务记录的 `wiring.manifest_slot` 在 manifest 根节点精确定位(留空或查不到则跳过本步,不新建槽位)。
|
|
48
|
-
2. 将该条更新为 `status=READY` + `path=<真实相对路径>`;保留 `category` / `query`,清掉已失效的旧 `meta`。
|
|
49
|
-
- manifest **只接受 `TODO` / `READY` 两种 status**,不得写入 `AIGC_PENDING` 之类的中间态。
|
|
50
|
-
3. 与 configs 同样用临时文件 + rename 原子写回。
|
|
51
|
-
|
|
52
|
-
## 5. 清理与校验
|
|
53
|
-
|
|
54
|
-
1. **跨轮资源实际应用成功后才更新账本终态,不删记录。** 仅查询不写账本;`delivery=await` 的完成结果已由后台工具写入,不重复修改。
|
|
55
|
-
`.aigc-queue/results.json` 里对应 `name` 的条目:`status` 改成 `completed`,
|
|
56
|
-
`result_url` 写入本次回调带回的真实 URL。临时文件 + rename 原子写回。
|
|
57
|
-
|
|
58
|
-
使用旧任务记录回填时,更新已有的 `.aigc-results/<task_id>.json` 为同样终态并保留其他字段,不凭空创建没有真实 ID 的条目。确认终态记录已保存后,再从 `SPEC/res/.aigc-tasks.json` 移除该 `slot_id` 且 `task_id` 一致的待回填条目;保留其他任务。新账本与旧记录都不存在时不伪造 ID,报告该资源无法计入展示。
|
|
59
|
-
|
|
60
|
-
> 这一步不能省:`asset-search --display` 只统计 `status==="completed"` **且**
|
|
61
|
-
> `result_url` 在 configs 里被实际引用的条目(见 `search.mjs` displayAssets)。
|
|
62
|
-
> 跨轮交付的资产提交时记的是 `running`,不更新就会在资产展示里整条消失。
|
|
63
|
-
|
|
64
|
-
记录本身**不删**:该账本同时是已接线资产的事实源,删了下次展示会漏掉本次生成。
|
|
65
|
-
条目带上终态 `status` 后也不会被重复回填。
|
|
66
|
-
2. manifest 存在且同步了槽位时执行 `asset-search check`;没有 manifest 时跳过,不为检查造空表:
|
|
67
|
-
|
|
68
|
-
```bash
|
|
69
|
-
node "${CRAFT_CONTEXT_DIR}/skills/asset-search/scripts/manifest_pipeline.mjs" check \
|
|
70
|
-
--project-root "${CRAFT_PROJECT_DIR}"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
3. 整批回填完成后按 `${CRAFT_CONTEXT_DIR}/AGENTS.md` 的交付要求通过构建校验,验证实际资源加载或播放;仅回填配置或音频也须检查,不逐条重复构建。消费方必须 import 对应 `configs/*.json`,不要在 `src` 写 `file.craft.qq.com` 或 `Game/` 字面量。`configs/assets.json` 的非空地址由 export-config 写入 `unified_data_control_config.json`。若参数面板另有用户显式资源覆盖,确认预览实际消费了本次目标;不静默清除无关覆盖。
|
|
74
|
-
|
|
75
|
-
## 6. 汇报
|
|
76
|
-
|
|
77
|
-
报告:成功回填的 `slot` 及其新路径、跳过的封面、失败条目及原因(缺字段 / 键创建失败 / 类型不符 / 路径冲突)。回填后按 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 调用 `asset_display` 工具。历史项目里可能还有旧脚本留下的 `.aigc-results/`,展示时仍会读它补全,**不要删**。不输出内部脚本命令与提交接口信息。
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# AIGC 生成提示词知识
|
|
2
|
-
|
|
3
|
-
> 用途:构造维度化生成 prompt,调用 AI 模型生成全新资产。
|
|
4
|
-
|
|
5
|
-
## 使用场景
|
|
6
|
-
|
|
7
|
-
- 用户要求生成新资产
|
|
8
|
-
- 已进入 `aigc-integration` 的定制资源请求;召回失败本身不自动触发生成
|
|
9
|
-
|
|
10
|
-
## 文件清单
|
|
11
|
-
|
|
12
|
-
- `audio-aigc-knowledge.md` — 音乐生成(category `audio`:BGM / 循环环境音)
|
|
13
|
-
- `texture-ui-aigc-knowledge.md` — UI 纹理生成
|
|
14
|
-
- `texture-scene-aigc-knowledge.md` — 场景纹理生成
|
|
15
|
-
- `texture-prop-aigc-knowledge.md` — 物件纹理生成
|
|
16
|
-
- `staticmesh-aigc-knowledge.md` — 静态模型生成
|
|
17
|
-
- `character2d-aigc-knowledge.md` — 角色序列帧生成、首帧依赖与 Three.js 播放接线
|
|
18
|
-
|
|
19
|
-
## 输出格式
|
|
20
|
-
|
|
21
|
-
`【维度名】内容`(多行,每维度一行)
|
|
22
|
-
|
|
23
|
-
具体维度见各文件"最终输出"段。
|
package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/audio-aigc-knowledge.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# 音频 AIGC 生成(音乐)
|
|
2
|
-
|
|
3
|
-
category `audio`,用于 BGM 与循环环境音。写法侧重**配器与情绪走向**,声音描述写段落结构与循环。
|
|
4
|
-
|
|
5
|
-
## 维度
|
|
6
|
-
|
|
7
|
-
### 【氛围】
|
|
8
|
-
听觉场景、空间感、情绪基调。常用值:
|
|
9
|
-
- 史诗宏大,庄严,管弦乐
|
|
10
|
-
- 神秘探索,空灵,回响
|
|
11
|
-
- 紧张刺激,急促,打击乐
|
|
12
|
-
- 轻松欢快,明亮,跳跃
|
|
13
|
-
- 压抑阴森,低沉,失真
|
|
14
|
-
|
|
15
|
-
### 【风格】
|
|
16
|
-
配器、乐器、音色特征。常用值:
|
|
17
|
-
- 管弦乐,交响,史诗配乐
|
|
18
|
-
- 电子,合成器,8-bit 芯片音乐
|
|
19
|
-
- 民谣,原声吉他,口琴
|
|
20
|
-
- 环境氛围,pad,drone
|
|
21
|
-
|
|
22
|
-
### 【声音描述】
|
|
23
|
-
段落结构与循环走向。尽量具体:进入方式(淡入 / 直接起)、配器层次(主旋律 / 低音 / 打击 / 铺底)、
|
|
24
|
-
速度与力度变化(渐强推向高潮、尾段回落)、是否无缝衔接循环。
|
|
25
|
-
|
|
26
|
-
### 【不要什么】
|
|
27
|
-
负面提示词。排除不想要的声音特征。
|
|
28
|
-
|
|
29
|
-
## 最终输出
|
|
30
|
-
|
|
31
|
-
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
32
|
-
|
|
33
|
-
### 示例
|
|
34
|
-
|
|
35
|
-
【氛围】神秘探索的森林遗迹,空灵悠远,带轻微回响
|
|
36
|
-
【风格】环境氛围,pad 铺底,原声笛子主旋律,中速
|
|
37
|
-
【声音描述】低频 pad 铺底 + 空灵笛声主旋律,4/4 中速稳定推进,中段弦乐渐强推向高潮,尾段力度回落并自然衔接开头,可无缝循环
|
|
38
|
-
【不要什么】不要人声,不要歌词,不要过于密集的电子鼓点,不要突然中断
|
package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/character2d-aigc-knowledge.md
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# 角色序列帧(character2d)
|
|
2
|
-
|
|
3
|
-
生成 Sprite / 平面上播放的角色动作,不生成 3D 模型或骨骼动画,不用于 `effect2d` 特效。
|
|
4
|
-
链路是「参考立绘 → 图文生视频 → 抽帧合成」,多个动作共享同一张立绘,防止角色外观漂移。
|
|
5
|
-
|
|
6
|
-
## 提交前与提示词
|
|
7
|
-
|
|
8
|
-
1. 在 `configs/<owner>.json` 建立实际消费的立绘字段(`Texture2D`)与各动作字段(`PaperFlipbook`),
|
|
9
|
-
同名 controls 设置 `type: resource`。例如 `assets.hero_portrait`、`assets.hero_idle`、`assets.hero_run`。
|
|
10
|
-
立绘用作生成期间和动作失败时的占位;没有真实地址时留空,消费方走已有占位,不加载空路径。
|
|
11
|
-
`character2d` 是 AIGC 生成类别;库召回角色动作使用 `anim2d`,特效使用 `effect2d`。AIGC 动作登记在 configs 与工具账本中,
|
|
12
|
-
不向召回 manifest 新增 `category: character2d` 条目,也不借用骨骼动画的 `sequence` 类别。
|
|
13
|
-
2. 立绘与动作放进同一次 `aigc_submit`,每条动作的 `derive_first_frame_from` 填立绘的完整 config key。
|
|
14
|
-
不传 URL,不把提交拆成多个工具调用;工具负责先出立绘,再按每批最多 3 条生成动作。
|
|
15
|
-
3. 立绘 prompt 写单个角色的静止全身形象、视角、朝向与风格。透明背景,四周留边,头脚和装备完整;
|
|
16
|
-
包含「不要文字,不要水印,不要复杂背景,不要序列帧,不要网格,不要多个姿势」。
|
|
17
|
-
动作 prompt 写单一动作、固定镜头、原地运动、主体位置和比例稳定;位移由游戏控制。
|
|
18
|
-
待机/跑动要求首尾自然衔接;攻击/死亡按玩法设置非循环。视角与朝向必须与立绘一致,不能要求镜头旋转。
|
|
19
|
-
4. 风格沿用 SKILL 的视觉风格来源。动作 `duration` 是 3–5 的整数秒(默认 3);它是生成输入,
|
|
20
|
-
不据此推算实际帧数。可选 `clip_start` / `clip_end` 指定合法裁剪区间,默认省略。
|
|
21
|
-
|
|
22
|
-
以下字段都必须先有配置与消费方;提示词中的风格按项目替换:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{ "assets": [
|
|
26
|
-
{ "name": "assets.hero_portrait", "category": "texture-ui", "display_name": "英雄参考立绘",
|
|
27
|
-
"size": "1024x1024",
|
|
28
|
-
"prompt": "【主体】单个全身骑士,静止站姿,面向画面右侧,头脚与装备完整,四周留边\n【视角】侧视固定镜头\n【风格】沿用项目角色设计与配色\n【背景】透明背景\n【不要什么】不要文字,不要水印,不要复杂背景,不要序列帧,不要网格,不要多个姿势" },
|
|
29
|
-
{ "name": "assets.hero_run", "category": "character2d", "display_name": "英雄跑动",
|
|
30
|
-
"derive_first_frame_from": "assets.hero_portrait", "duration": 3,
|
|
31
|
-
"prompt": "【动作】参考图中的角色原地跑动,面向右侧,首尾自然衔接\n【镜头】固定侧视,主体位置与比例稳定\n【外观】保持参考图的服饰、武器、轮廓与配色\n【不要什么】不要镜头移动,不要角色横向位移,不要新增背景或其他角色" }
|
|
32
|
-
] }
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
角色序列帧是 `delivery=await`,不传 `wiring`,HTTP 也不传跨轮应用用的 `slot`。
|
|
36
|
-
收尾先 `wait_for_tasks`,再 `aigc_status`,按 `name` 回填配置。失败保留旧动作或立绘占位,报告失败,不重复提交。
|
|
37
|
-
新增动作失败时动作字段仍为空;立绘 PNG 不能填进动作的 `PaperFlipbook` 字段。
|
|
38
|
-
|
|
39
|
-
## Three.js 接线
|
|
40
|
-
|
|
41
|
-
`result_url` 指向以下 **manifest JSON**,配置保存该 JSON 地址,不改成 PNG:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{ "type": "PaperFlipbook", "url": "https://file.craft.qq.com/test1/ai-resource/example.png",
|
|
45
|
-
"rows": 4, "cols": 4, "frameCount": 15 }
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
上面是结构示例,不能作为真实路径使用。`url` 是实际图集地址,不能靠把 `.json` 后缀改成 `.png` 猜出。
|
|
49
|
-
行列从左上角起,先横向后纵向;只播放 `frameCount` 帧,最后一行可能有空格。
|
|
50
|
-
当前 manifest 不含 fps,播放速率由游戏配置决定,默认可用 12 fps,循环与否按动作语义决定。
|
|
51
|
-
|
|
52
|
-
- 从普通 JSON import 的资源字段取地址,空值不请求。用 runtime `resolveAssetUrl(path, { cdnBaseUrl: 'https://file.craft.qq.com' })` 归一化。
|
|
53
|
-
- `fetch` manifest,检查 HTTP 成功、`type`、非空 `url`、正整数 `rows/cols/frameCount` 和 `frameCount <= rows * cols`。
|
|
54
|
-
再用 `THREE.TextureLoader` 加载 manifest 的真实 `url`;图集宽高必须能分别整除 `cols/rows`。
|
|
55
|
-
两步都成功才替换当前显示对象,网络或格式失败保持旧对象/立绘,不能展示整个图集作为占位。
|
|
56
|
-
- 可把 [sprite-sheet-player.mjs](../../assets/sprite-sheet-player.mjs) 复制到游戏 `src/` 后按需接入。
|
|
57
|
-
这是不含网络请求的播放示例,不是已安装的 runtime API;禁止运行时导入 `context/`。
|
|
58
|
-
`createSpriteSheetPlayer(THREE, loadedTexture, manifest, { fps, loop })` 返回 `sprite/update/reset/dispose`。
|
|
59
|
-
同一播放器也接受库召回的 PNG 帧描述,PNG 与 JSON 替换时按[统一序列帧接入](../../../asset-search/references/sprite-sheets.md)重新匹配布局。
|
|
60
|
-
源纹理由调用方持有,每个实例克隆自己的纹理 UV,避免多个角色动画互相干扰。
|
|
61
|
-
- 在已有渲染循环中调用 `player.update(dt)`,`dt` 为秒;不另开 RAF。切动作时只显示当前动作,
|
|
62
|
-
对新动作 `reset()`;重开重置播放状态。根据相机使用 Sprite billboard,或在固定平面材质上采用相同 UV 裁剪。
|
|
63
|
-
- 裁剪公式:`repeat=(1/cols, 1/rows)`,第 `i` 帧 `offset=(i%cols/cols, 1-(floor(i/cols)+1)/rows)`,
|
|
64
|
-
适用于 TextureLoader 的 `flipY=true`。透明材质关闭 `depthWrite`,按场景保留深度测试。
|
|
65
|
-
单帧宽高比是 `(图宽/cols)/(图高/rows)`,不能按整张图集比例缩放;落地角色按透明边与脚底对齐。
|
|
66
|
-
- 资源字段变化(包括面板换资源)时重新读取 manifest 与图集,不能缓存旧帧布局。
|
|
67
|
-
使用加载序号/取消标记防止旧请求覆盖新结果;销毁后到达的纹理直接释放,不再挂回场景。
|
|
68
|
-
切换成功后释放旧播放器;最终销毁时释放播放器、调用方持有的源纹理及事件,不能销毁共享几何体或他人持有的缓存纹理。
|
|
69
|
-
|
|
70
|
-
回填按 `callback.md` 预检并保留 `PaperFlipbook` controls;`config:export` 后验证面板地址仍指向 JSON。
|
|
71
|
-
验证待机/跑动切换、循环最后一帧、非循环停在末帧、重开、加载失败占位,以及换成不同帧布局资源后的播放。
|
|
72
|
-
构建通过或只写入 URL 不代表动画验证通过。
|
package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/staticmesh-aigc-knowledge.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# 静态模型 AIGC 生成
|
|
2
|
-
|
|
3
|
-
## 维度
|
|
4
|
-
|
|
5
|
-
### 【风格】
|
|
6
|
-
整体美术风格与材质渲染方向按 [视觉风格来源](../../SKILL.md#视觉风格来源) 提取。常用值:
|
|
7
|
-
- 卡通,手绘质感,饱和配色
|
|
8
|
-
- 低多边形(low-poly),扁平上色
|
|
9
|
-
- 写实,PBR 材质,高细节
|
|
10
|
-
|
|
11
|
-
### 【物件描述】
|
|
12
|
-
物件的材质、结构、颜色、功能细节、装饰。尽量具体:
|
|
13
|
-
材质(木/石/金属/布)、形状结构、磨损程度、装饰元素、功能暗示(可交互/纯装饰)、配色方案。
|
|
14
|
-
|
|
15
|
-
### 【用途与尺度】
|
|
16
|
-
物件在游戏中的角色与相对尺度参照,帮助控制面数与细节密度。常用值:
|
|
17
|
-
- 场景装饰摆件,中小体量
|
|
18
|
-
- 可交互道具,手持/单人可搬运尺度
|
|
19
|
-
- 建筑构件,玩家角色等高参照
|
|
20
|
-
|
|
21
|
-
### 【不要什么】
|
|
22
|
-
负面提示词。排除不想要的元素。
|
|
23
|
-
|
|
24
|
-
## 最终输出
|
|
25
|
-
|
|
26
|
-
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
27
|
-
|
|
28
|
-
### 示例
|
|
29
|
-
|
|
30
|
-
【风格】卡通风格,手绘质感贴图,饱和明快配色,柔和高光
|
|
31
|
-
【物件描述】中世纪木质宝箱,矩形箱体由深棕色橡木板拼接,铁质包角和铆钉装饰,前盖有铁锁扣和十字铁带加固,箱盖闭合。主色深棕+暗铁色金属,古朴魔法感,轻微卡通化
|
|
32
|
-
【用途与尺度】可交互道具,玩家角色膝盖高度,放置于地面
|
|
33
|
-
【不要什么】不要人物角色,不要复杂底座场景,不要现代材质,不要塑料感,不要霓虹色,不要打开状态
|
package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-prop-aigc-knowledge.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# 物件纹理 AIGC 生成
|
|
2
|
-
|
|
3
|
-
## 维度
|
|
4
|
-
|
|
5
|
-
### 【视角】
|
|
6
|
-
物件呈现角度。常用值:
|
|
7
|
-
- 俯视角(top-down,适合俯视游戏)
|
|
8
|
-
- 轻微俯视的正面视角(45 度,经典 RPG 道具图块)
|
|
9
|
-
- 纯平视角(side view,横版游戏)
|
|
10
|
-
|
|
11
|
-
需说明能看到哪些面。
|
|
12
|
-
|
|
13
|
-
### 【风格】
|
|
14
|
-
画风、分辨率、打光、背景等画面指令,按 [视觉风格来源](../../SKILL.md#视觉风格来源) 提取。常用值:
|
|
15
|
-
- 像素艺术,16-bit 复古,清晰像素颗粒感
|
|
16
|
-
- 卡通,手绘,扁平上色
|
|
17
|
-
- 写实,高细节
|
|
18
|
-
- 单体图标,透明背景,轻微投影
|
|
19
|
-
|
|
20
|
-
### 【物件描述】
|
|
21
|
-
物件的材质、结构、颜色、功能细节、装饰、周围小物件。
|
|
22
|
-
尽量具体:材质(木/石/金属/布)、形状结构、装饰元素、功能暗示(可交互/纯装饰)、配色方案、整体氛围。
|
|
23
|
-
|
|
24
|
-
### 【不要什么】
|
|
25
|
-
负面提示词。排除不想要的元素。
|
|
26
|
-
|
|
27
|
-
## 最终输出
|
|
28
|
-
|
|
29
|
-
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
30
|
-
|
|
31
|
-
### 示例
|
|
32
|
-
|
|
33
|
-
【视角】轻微俯视的正面视角,能看到物件顶面和正面,不显示侧面,经典 2D RPG 道具图块视角
|
|
34
|
-
【风格】像素艺术风格,16-bit 复古游戏物件素材,低分辨率点阵画,清晰像素颗粒感,单体图标,扁平均匀打光,透明背景,物件下方轻微投影
|
|
35
|
-
【物件描述】中世纪木质宝箱,矩形箱体由深棕色橡木板拼接,铁质包角和铆钉装饰,前盖有铁锁扣和十字铁带加固,箱盖微开露出内部金色光芒和珠宝轮廓。箱体两侧有铁提手环。主色深棕+暗铁色金属,辅色金色光芒,古朴魔法感,轻微卡通化
|
|
36
|
-
【不要什么】不要 3D 渲染,不要写实照片,不要等距视角,不要 isometric,不要侧面可见,不要人物角色,不要复杂背景,不要现代材质,不要塑料感,不要霓虹色
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# 场景纹理 AIGC 生成
|
|
2
|
-
|
|
3
|
-
## 维度
|
|
4
|
-
|
|
5
|
-
### 【视角】
|
|
6
|
-
摄像机角度、可见面、遮挡关系。常用值:
|
|
7
|
-
- 轻微俯视的正面视角(经典 2D RPG 建筑图块)
|
|
8
|
-
- 纯俯视角(top-down)
|
|
9
|
-
- 平视角(side view)
|
|
10
|
-
- 等距视角(isometric)
|
|
11
|
-
|
|
12
|
-
需说明能看到哪些面、不能看到哪些面。
|
|
13
|
-
|
|
14
|
-
### 【风格】
|
|
15
|
-
画风、分辨率、打光、背景、投影等画面指令,按 [视觉风格来源](../../SKILL.md#视觉风格来源) 提取。常用值:
|
|
16
|
-
- 像素艺术,16-bit 复古,低分辨率点阵画,清晰像素颗粒感
|
|
17
|
-
- 卡通风格,手绘,扁平上色
|
|
18
|
-
- 写实,高细节
|
|
19
|
-
- 单体图标,均匀打光,透明背景,轻微投影
|
|
20
|
-
|
|
21
|
-
### 【物件描述】
|
|
22
|
-
物体的材质、结构、颜色、装饰细节、周围环境、配色方案、整体风情。
|
|
23
|
-
尽量具体:材质(原木/泥土/兽皮/茅草/石/金属)、结构特征、装饰元素、地面环境、主色+点缀色、整体氛围。
|
|
24
|
-
|
|
25
|
-
### 【不要什么】
|
|
26
|
-
负面提示词。排除不想要的材质、视角、风格、元素。
|
|
27
|
-
|
|
28
|
-
## 最终输出
|
|
29
|
-
|
|
30
|
-
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
31
|
-
|
|
32
|
-
### 示例
|
|
33
|
-
|
|
34
|
-
【视角】轻微俯视的正面视角,摄像机从正前方略高处向下看,能清晰看到屋顶的水平顶面,同时完整展示建筑正面立面,不显示建筑左右两侧墙壁,类似经典 2D RPG 游戏地图的建筑图块视角
|
|
35
|
-
【风格】像素艺术风格,16-bit 复古游戏建筑素材,低分辨率点阵画,清晰像素颗粒感,单体建筑图标,扁平均匀打光,透明背景,建筑下方轻微投影
|
|
36
|
-
【物件描述】原始部落风格双层木质大屋,全部由原木、泥土、兽皮、茅草构成,没有任何现代材料。平顶结构,屋顶铺满厚实茅草形成水平平台,屋顶平面上竖着一个带弯角的兽骨骷髅图腾,屋顶边缘有粗木围栏。正面一层有兽皮帘门入口,门框用粗麻绳捆扎的圆木搭建,门框两侧挂着兽骨串。二层正面有木板窗户,墙面挂着交叉白色骨头装饰、圆形木盾、暗红色褪色兽皮旗帜。建筑右侧有外挂木梯通向二楼。四周有尖木桩栅栏围栏,栅栏上挂小骨头挂饰和羽毛。沙土地面,前方有石堆篝火和木柄石斧。暖棕色土黄色深木色为主,米白骨饰暗红兽皮旗帜点缀,古朴荒野蛮族部落风情,轻微卡通化
|
|
37
|
-
【不要什么】不要玻璃窗,不要金属材质,不要科技感,不要现代建筑元素,不要自动门,不要霓虹色,不要蓝色面板,不要三角形屋顶,不要等距视角,不要 isometric,不要斜 45 度侧面可见,不要显示建筑侧面墙壁,不要 3D 渲染,不要写实风格,不要人物角色
|
package/resources/js3d/context/skills/aigc-integration/knowledge/aigc/texture-ui-aigc-knowledge.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# UI 纹理 AIGC 生成
|
|
2
|
-
|
|
3
|
-
## 维度
|
|
4
|
-
|
|
5
|
-
### 【视角】
|
|
6
|
-
图标/面板的呈现角度。常用值:
|
|
7
|
-
- 正面平视(图标、按钮、面板标准视角)
|
|
8
|
-
- 俯视(地图、场景缩略图)
|
|
9
|
-
- 45 度俯视(技能图标带透视感)
|
|
10
|
-
|
|
11
|
-
### 【风格】
|
|
12
|
-
画风、分辨率、打光、背景等画面指令,按 [视觉风格来源](../../SKILL.md#视觉风格来源) 提取。常用值:
|
|
13
|
-
- 像素艺术,16-bit 复古,清晰像素颗粒感
|
|
14
|
-
- 扁平设计,纯色,极简
|
|
15
|
-
- 卡通,圆润描边,手绘
|
|
16
|
-
- 写实,高细节,拟真
|
|
17
|
-
- 透明背景,单体图标,居中
|
|
18
|
-
|
|
19
|
-
### 【物件描述】
|
|
20
|
-
UI 元素的内容、形态、颜色、功能、装饰细节。
|
|
21
|
-
尽量具体:元素类型(按钮/图标/面板/背景)、内容物(剑/盾/药水/金币)、主色+辅色、边框/描边特征、交互状态暗示。
|
|
22
|
-
|
|
23
|
-
### 【不要什么】
|
|
24
|
-
负面提示词。排除不想要的元素。
|
|
25
|
-
|
|
26
|
-
## 最终输出
|
|
27
|
-
|
|
28
|
-
按维度拼接,格式 `【维度名】内容`,维度间用换行分隔。
|
|
29
|
-
|
|
30
|
-
### 示例
|
|
31
|
-
|
|
32
|
-
【视角】正面平视,正方形画布居中
|
|
33
|
-
【风格】像素艺术风格,16-bit 复古游戏图标,低分辨率点阵画,清晰像素颗粒感,单体图标,透明背景,均匀打光无投影
|
|
34
|
-
【物件描述】红色生命药水瓶图标,玻璃瓶身圆润饱满,瓶口软木塞,瓶内液体深红色透亮带高光,瓶身有金色描边装饰条纹,底部圆形阴影。主色深红+金色描边,辅色棕色软木塞,游戏道具图标风格
|
|
35
|
-
【不要什么】不要文字,不要水印,不要 3D 渲染,不要写实照片,不要复杂背景,不要多个物件,不要模糊边缘,不要蓝色调
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# JS3D 序列帧:召回、提供与 AIGC
|
|
2
|
-
|
|
3
|
-
序列帧能力对齐 JS2D,运行时用 Three.js Sprite 或固定平面显示,不用 Phaser。
|
|
4
|
-
|
|
5
|
-
| 来源 | 类别 / 输入 | 配置保存的资源地址 | 帧布局来源 |
|
|
6
|
-
|---|---|---|---|
|
|
7
|
-
| 素材库角色动作 | `anim2d` → `anim_2d_js` | 候选 `sprite.sheetPath`,即 PNG | 同一候选的 `sprite` |
|
|
8
|
-
| 素材库特效 | `effect2d` → `effect_2d_js` | 候选 `sprite.sheetPath`,即 PNG | 同一候选的 `sprite` |
|
|
9
|
-
| AIGC 角色动作 | `character2d` | `result_url`,即 manifest JSON | JSON 的 `url/rows/cols/frameCount` |
|
|
10
|
-
| 用户提供 PNG | `--provide`,`anim2d/effect2d` | 返回的 PNG path | 资源块的 `FrameCount/GridLayout/Loop`,脚本返回 `sprite` |
|
|
11
|
-
| 用户提供 manifest / 多动作 | `--provide`,`character2d/effect2d`;多动作仅 `character2d` | 各动作原始 JSON path | `runtime.animations[动作名]` 或重读 JSON |
|
|
12
|
-
|
|
13
|
-
所有动作的 controls 都是 `type: resource, asset_type: PaperFlipbook`。`sequence/AnimSequence` 专指 3D 骨骼动画。
|
|
14
|
-
图集 PNG 不改成 JSON,JSON 不改成 PNG;两者都不能当普通单图直接显示。
|
|
15
|
-
|
|
16
|
-
## 配置与帧信息
|
|
17
|
-
|
|
18
|
-
推荐把每个动作放进 `configs/assets.json` 的独立字符串字段,例如 `hero_idle`、`hero_run`、`hit_effect`,
|
|
19
|
-
同名 `assets.controls.json` 声明 `PaperFlipbook`。`@slot anim2d/character2d/effect2d` 也能被导出脚本识别,
|
|
20
|
-
但只有配置中已采用的真实地址才能计入资产展示,不伪造 ID 或猜路径。
|
|
21
|
-
|
|
22
|
-
库召回 PNG 本身不带布局,需要保存采用候选的帧信息。可在 `configs/sprite-layouts.json` 的 `clips` **数组**中保存
|
|
23
|
-
`{ source: "<实际 PNG 地址>", rows, cols, frameCount, loop }`,省略候选没有返回的 loop。
|
|
24
|
-
这些记录以资源地址绑定,不只以槽名绑定;使用普通 JSON import 读取。不要用 URL 作 JSON 对象键,也不把元数据对象写进资源字符串字段。
|
|
25
|
-
manifest batch 的 `meta.rows/cols/frame_count/loop/set_tag` 可作为同一资源的记录来源;`frame_count` 接入播放器时转为 `frameCount`。
|
|
26
|
-
|
|
27
|
-
- PNG:按当前资源字段的归一化地址找对应布局;有且只有一套一致的有效布局才加载。换资源后重新匹配,不能沿用旧行列数。
|
|
28
|
-
- JSON:读取当前 manifest 的 `url` 和布局;HTTP/JSON 校验失败保持原资源/占位,不能靠替换文件后缀猜图集。
|
|
29
|
-
- 校验 `rows/cols/frameCount` 是正整数,帧数不超过容量,图片宽高分别能整除 `cols/rows`。缺字段或冲突时说明资源尚不能播放,保持已有表现。
|
|
30
|
-
- `Loop=false` 必须保留,不能用 `loop || true` 覆盖。缺 Loop 时由动作语义确定:待机/跑动通常循环,攻击/死亡/爆炸通常单次。
|
|
31
|
-
当前 AIGC manifest 不含 fps,默认可用 12;已有提供资源带合法 fps 时可沿用。不能根据视频时长猜帧数。
|
|
32
|
-
|
|
33
|
-
## Three.js 消费
|
|
34
|
-
|
|
35
|
-
可将 [sprite-sheet-player.mjs](../../aigc-integration/assets/sprite-sheet-player.mjs) 复制进游戏 `src/`,由已有渲染循环驱动。
|
|
36
|
-
源码同时接受 AIGC manifest `{ type: "PaperFlipbook", url, rows, cols, frameCount }` 和召回 `sprite: { sheetPath, rows, cols, frameCount, loop? }`,
|
|
37
|
-
也接受提供资源 `runtime.animations[name]` 的 `sheetPath` 描述。它不是预装 runtime API,不在游戏中 import `context/`。
|
|
38
|
-
|
|
39
|
-
1. 普通 JSON import 读取当前动作地址。用 runtime `resolveAssetUrl(path, { cdnBaseUrl: 'https://file.craft.qq.com' })` 归一化 PNG/JSON 地址。
|
|
40
|
-
2. 按上节取得帧描述,用 `THREE.TextureLoader` 加载实际 PNG,再调用 `createSpriteSheetPlayer(THREE, texture, descriptor, { fps, loop })`。
|
|
41
|
-
示例拥有独立 UV 克隆,保留源纹理所有权;颜色贴图用 sRGB,透明材质不写深度,图集不走模型 GLB 或 ASTC 工具。
|
|
42
|
-
3. `player.sprite` 加入现有场景,`player.update(dt)` 使用秒;`player.reset()` 从首帧重播。
|
|
43
|
-
只在动作变化时切换,同一时刻显示一个动作。单次动作期间不被待机/跑动不断打断,`player.finished` 后才恢复;一次性特效完成后移除。
|
|
44
|
-
4. 文件资产朝向以实际资源为准。相对相机的横向移动改变朝向时调用 `player.setFlipX(...)`,停下保持朝向,切动作后立即应用同一 flipX。
|
|
45
|
-
缩放按单帧比例与角色实际主体框,落地角色按脚底对齐,不能按整张图集尺寸缩放。
|
|
46
|
-
5. PNG / JSON 都先加载校验成功再替换;路径变更使用加载序号/取消标记,阻止迟到请求覆盖新结果。
|
|
47
|
-
重开重置动作;销毁释放播放器和调用方持有的源纹理,不销毁 Sprite 共用几何体或别的实例共用的缓存。
|
|
48
|
-
|
|
49
|
-
如果面板替换成 PNG,却没有该 PNG 的布局记录,应先重新召回/读取用户资源元信息补齐再接入;禁止用旧布局碰运气。
|
|
50
|
-
面板选中的是 JSON 时读新 manifest。生成失败不清空已可用的召回动作;召回失败也不自动提交付费生成。
|
|
51
|
-
|
|
52
|
-
## 验证
|
|
53
|
-
|
|
54
|
-
- 同一 SetTag 的 idle/run,按移动状态切换,保留方向和尺寸;不显示整张图集。
|
|
55
|
-
- `Loop=false` 的命中特效只播一次,到末帧后按玩法移除;循环动作跳过图集末尾空格。
|
|
56
|
-
- 多个同资源实例各自播放,不互相修改 UV;重开不叠出旧对象。
|
|
57
|
-
- PNG 与 AIGC JSON 相互替换,以及不同网格的资源替换;帧信息缺失时保留旧表现。
|
|
58
|
-
- `config:export` 后仍为 `PaperFlipbook`,配置和资产展示保留原 PNG/JSON 地址及真实资源 ID。
|