@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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"engine": "js",
|
|
4
|
+
"source_revision": "sha256:c2d0716f3476f47040fe93ba852a10da5ed07d79340d257c5ab13e0ad88974c6",
|
|
5
|
+
"contracts": {
|
|
6
|
+
"export": 1,
|
|
7
|
+
"skills": 1,
|
|
8
|
+
"mcp": 1,
|
|
9
|
+
"sdk_lifecycle": 1
|
|
10
|
+
},
|
|
11
|
+
"compatibility": {
|
|
12
|
+
"runtime_version": "1.1.0",
|
|
13
|
+
"dependency": "phaser",
|
|
14
|
+
"dependency_version": "3.90.0"
|
|
15
|
+
},
|
|
16
|
+
"files": {
|
|
17
|
+
"js/context/AGENTS.md": "39a3d9a411fc55d824d055ec24f507eeb00fcf2f0056af1127dabb883e51e8a0",
|
|
18
|
+
"js/context/hooks/hooks.json": "8becc4a05e25996fb079dcac9b7c2f7c79d719ea0d2cf20dc9b8a91a97a3261d",
|
|
19
|
+
"js/context/knowledge/AigcWiring.md": "e7220ce05664707403e8aaec14022ef164c59b5a98d7a83e75c4c463b5a5e617",
|
|
20
|
+
"js/context/knowledge/AssetUrl.md": "67632e07fa0dbecb07ff8fded24c3d17f6cdd1251cc97891f63448434402ec24",
|
|
21
|
+
"js/context/knowledge/Layout.md": "edb1f698c5dcdeed57d3a06cdff939719abaa754a39e471830eaf74627c8f53f",
|
|
22
|
+
"js/context/knowledge/Lifecycle.md": "47d6cc164953d5bbe3c06efcdad4994fbf89346f4e6c7bf15810555bc3612a18",
|
|
23
|
+
"js/context/skills/aigc-generate/SKILL.md": "92e25a53aba9ead15ecb4f3d20b5c238b09d392b64e7a898cfd74aa5709cdf35",
|
|
24
|
+
"js/context/skills/asset-search/SKILL.md": "6ac1d43b55f93f54a7ab59d6343f7cc38ab857ebc2f4da150a9b3110f523752c",
|
|
25
|
+
"js/context/skills/asset-search/references/resource-config.md": "206b3792b5c182bb5f2becf4d9c2e777b37fc5f7db220b4df9ce71530ba77642",
|
|
26
|
+
"js/context/skills/export-config/SKILL.md": "b417da9177403e3424bc4e5905537ca6401e20c9e0e734d353fe0fd0a4dc6935",
|
|
27
|
+
"js/context/skills/export-config/assets/tooling/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
28
|
+
"js/context/skills/export-config/assets/tooling/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
29
|
+
"js/context/skills/export-config/assets/tooling/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
|
|
30
|
+
"js/context/skills/export-config/assets/tooling/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
|
|
31
|
+
"js/context/skills/export-config/assets/tooling/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
|
|
32
|
+
"js/context/skills/export-config/assets/tooling/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
|
|
33
|
+
"js/context/skills/export-config/assets/tooling/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
|
|
34
|
+
"js/context/skills/export-config/scripts/export-config.mjs": "e7f3cff027cf71d90f2d14e983082a658c6100ddf5761d27e0ae7ce4c917344c",
|
|
35
|
+
"js/context/skills/export-config/scripts/install.mjs": "ef3e09680d06086b9e21f5665ce05af2962cc65e92a8e26fbac5fdf9723e6eda",
|
|
36
|
+
"js/context/skills/export-config/scripts/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
37
|
+
"js/context/skills/index.json": "b11e6603bdf0a4e6ab1f191c8492a86ca6fb23ca7a89da008b8209f1d4233874",
|
|
38
|
+
"js/context/skills/visual-qa/SKILL.md": "fe5fb19486597aecc149fac0bd91716fa585f8cef32525d5d2d3bb59c2402d6e",
|
|
39
|
+
"js/project/README.md": "7708ecdf5ff65e5565bb46c98b4388778db0e747c2d9fce778f42f73c78663f5",
|
|
40
|
+
"js/project/configs/assets.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
|
|
41
|
+
"js/project/configs/game.controls.json": "c353f210e7d63c4042cc4a58163e90cc9dc55b3bb5789547dbf913f1e553d2fa",
|
|
42
|
+
"js/project/configs/game.json": "3289dc2a6fb9a75e47e59dd95507a91a5337352a3ae5a0f7dbaf14a2ab16ad88",
|
|
43
|
+
"js/project/game-runtime.json": "9e6d4974f371478ce507ae208de580e248175a0d99941aa0d10465243fd4ad69",
|
|
44
|
+
"js/project/game.config.json": "0d50535f695a1be2c7a1649953fedd112d02a078ceda11c22391b21c05a22c0e",
|
|
45
|
+
"js/project/index.html": "6968aba482c4fb0d2c6bd0e4effe627837c1a83bf16f185c32dd7b351605c6a2",
|
|
46
|
+
"js/project/package.json": "b308908f78564b70471e7c9c762904f497778e2e5dd0512a47e9034ed7c2c8d4",
|
|
47
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/qq-ai-game-sdk.min.js": "2a2ad154f1f300f188e202100d35d866e81cba0ff603cb9abea8ab1b4f2b909a",
|
|
48
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/qq-session.mjs": "6a2716cdb7393cac0b0b231bf1b5f9886e2c876917c7af17913c57a683df2a8a",
|
|
49
|
+
"js/project/runtime/lightgame/1.1.0/platform/identity/shared.mjs": "58855d261455d390e66b8dbfccd6384a3daddcf77615490c744014c695e611b3",
|
|
50
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-capture-video.mjs": "5137bfd403c8500e1e5b5305ac7f3ca55ee68daaade624333a7c85786077713d",
|
|
51
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-service.d.mts": "1215d08eaa70c412628e6d160e10f3d1b211be8ff66da5d312684d6fe6905f11",
|
|
52
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform-service.mjs": "4c80bd843775d687d6015dcde78c3ea2a354923860d1c5d443a6035fcfce5653",
|
|
53
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform.d.mts": "27819e8b8730a6af9c84aa4b540fef010e51299f32a76739621d340046e12f11",
|
|
54
|
+
"js/project/runtime/lightgame/1.1.0/platform/platform.mjs": "d4848e892f4863003d4022178817cf3c796975f5304bd59530b6574971b4e9c9",
|
|
55
|
+
"js/project/runtime/lightgame/1.1.0/release.json": "ddd0894b196b729b9d1e592f204897655c34dc685c0397a6dee267c47d90c55e",
|
|
56
|
+
"js/project/runtime/lightgame/1.1.0/tooling/cli.mjs": "ff2a614679a8b2fc3847efe6d0d7194e8c87d8100eaff6b9168e4e3d050465c0",
|
|
57
|
+
"js/project/runtime/lightgame/1.1.0/tooling/project.d.mts": "d8272a81789094fed7090ae0cd07f597f62b2dca16834fd6b6e9ccea81968ec8",
|
|
58
|
+
"js/project/runtime/lightgame/1.1.0/tooling/project.mjs": "d1600f6a294fe0399d9d45d20cffb7416318b2bbff497c08142ce1a568c59db2",
|
|
59
|
+
"js/project/runtime/lightgame/1.1.0/tooling/vite.d.mts": "667e46bd016ef8ba368e53564b49b3fd571786c1672b3dbb14dc24833e0c293c",
|
|
60
|
+
"js/project/runtime/lightgame/1.1.0/tooling/vite.mjs": "58edccd64f94c442a313ce51f0698c081fa829ce18ed3173a6694c2a8619cd65",
|
|
61
|
+
"js/project/runtime/lightgame/1.1.0/tools/assets.d.mts": "50111c87e3c639383df7900c88540e91b564e560c4411b9d0292712de3712628",
|
|
62
|
+
"js/project/runtime/lightgame/1.1.0/tools/assets.mjs": "7608d8e7f0e7491bdd5b32581db77d7a622e08ee32a5cfb9ff992be252b32eda",
|
|
63
|
+
"js/project/runtime/lightgame/1.1.0/tools/astc.d.mts": "24416261df0bbfc9a22ec010eb6857bea6ee39703e6e62caf183c2adbe45cd86",
|
|
64
|
+
"js/project/runtime/lightgame/1.1.0/tools/astc.mjs": "661576a1d5e65d6079328c0e00348d2eeeae123b0310a8110edac4de92745a2f",
|
|
65
|
+
"js/project/scripts/config-export/assert-asset-wiring.mjs": "2d4903626e75b699e8ea9a53449f99498ae20d58f3132db9e0055eab514dee01",
|
|
66
|
+
"js/project/scripts/config-export/panel-resource-path.mjs": "70f707133498347e6295d82d8da6cc24cd9363b3bd302e1372016a5491f07ba7",
|
|
67
|
+
"js/project/scripts/config-export/sync-asset-controls.mjs": "ac2c05d52d34ff3f63cd61892db23c5ae3c622d5e6023d9a4b6f221bc4b8bc67",
|
|
68
|
+
"js/project/scripts/config-export.mjs": "2b36636fda0dac316129c354134a77e18d60a940210d870ae5ba18697c347d49",
|
|
69
|
+
"js/project/scripts/skill-modules/export-config/cli.mjs": "70c1d67b93a03e64c22a1ec20927304f6c4cbbe5d74b855dd03ed7fa103a821a",
|
|
70
|
+
"js/project/scripts/skill-modules/export-config/config.d.mts": "25066e71f44ee8b74b2285e3824536afb4cac25f63f4d4c2193da29c237d774d",
|
|
71
|
+
"js/project/scripts/skill-modules/export-config/config.mjs": "ba99f6f54d0db4fc42d5431d0792c3f5e6981474faef3a0acf924a90b27158f8",
|
|
72
|
+
"js/project/scripts/skill-modules/export-config/installed.json": "fec5c3035b0e153b78765f7d97f27acded592d8fccd07cb728fe59d3559bcc94",
|
|
73
|
+
"js/project/scripts/skill-modules/export-config/project.d.mts": "5cf22fae66b199b92080d07ea45b686502d0605f677504177b029e0d615a5e9b",
|
|
74
|
+
"js/project/scripts/skill-modules/export-config/project.mjs": "f7a1417e019cee8efea68840ca768d414fa8106e67dd60d4f300465c9a58e541",
|
|
75
|
+
"js/project/scripts/skill-modules/export-config/vite.d.mts": "70918eaafd1b4518818533232fb9fa83e7b5df0da14927b5e2ad2288347bca23",
|
|
76
|
+
"js/project/scripts/skill-modules/export-config/vite.mjs": "6da929e7d7d59f928f468a0052e1f970b992032d461968b93b713583fdbbb86a",
|
|
77
|
+
"js/project/scripts/write-preview-ready.mjs": "9ceeb1ba6b4a686b633c5ad78db6422f38603e86d502b85281e4344bd39ce978",
|
|
78
|
+
"js/project/src/display/ui-stage.ts": "c0cfd56a244cc50fb82dc4ec013e12db45840150eef85b764a412ac1f25c7913",
|
|
79
|
+
"js/project/src/display/viewport.ts": "7b335bc6789a3f9bace1e55ff75849ca553da02414045bbbe646f42700f26653",
|
|
80
|
+
"js/project/src/main.ts": "95c615c4f8296b4c5c822e32be90888586051f99bf7b68ed79941bf4cefab454",
|
|
81
|
+
"js/project/src/platform.ts": "5b3d3d1132d25d1f8f08eb1edcc6719bc5f9737c75bd3050ef09dddd1e117ad9",
|
|
82
|
+
"js/project/src/scenes/LoadScene.ts": "6a5dfef1a33275e617983ec801a55875b09837824a9791567c42278eefe73929",
|
|
83
|
+
"js/project/src/scenes/PlayScene.ts": "9a31c41b3390420bd7ac732bd6a5624a82f37219f1b95ff1b23c4add627e0b4c",
|
|
84
|
+
"js/project/src/screenUi.ts": "f2493a628630c5649a48011ef33c72c62b50780697428c98b24e6a10f8b59bc3",
|
|
85
|
+
"js/project/src/style.css": "23c2ee94511737469d5645fdcee4fd177f92589ff6415ac5776bbe9bfc2dad70",
|
|
86
|
+
"js/project/tsconfig.json": "ff460bbe00552390594da800297aa4d1bcd0c21e07ebe2794d7fc94cf5debd58",
|
|
87
|
+
"js/project/unified_data_control_config.json": "713e928403c10e069dc2d43b74da0a5ca4323f616ee84917d7df8f2e9bc48b21",
|
|
88
|
+
"js/project/vite.config.ts": "3446dbee391e5c15aa3fa1770cadf16c4214d11715881784ed879c2f317d9f8f",
|
|
89
|
+
"craft-game-maker/SKILL.md": "6f55a079aa5d4e018f5c585cc3c384667d78b3cf3928145c918794f7ea0f377a",
|
|
90
|
+
"craft-game-maker/js.md": "5c0bca137094b687a5a25ff7f60ee7c0b427cccbbb38b842ba127fdd90d00deb"
|
|
91
|
+
},
|
|
92
|
+
"id": "b38d3a1c31f71a3cd2ee6ac9cab592cd5538fba6ad71dea1462797ab3b07c4e0"
|
|
93
|
+
}
|
|
@@ -1,112 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 2D / Phaser
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
本上下文用于当前 Craft 本地游戏,Phaser 版本由项目 package.json 固定。需求、编码与工具调度由当前 AI IDE 承担。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## 开始与恢复
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
读取项目 AGENTS.md、SPEC/PROGRESS.md 和本次相关源码。通过 craft_game_info(name) 核对项目、engine=js 和上下文绑定;新项目由 craft_game_prepare 创建。已有项目沿用绑定版本,不重新初始化。
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- `${CRAFT_PROJECT_DIR}`:当前游戏工程的真实绝对目录,以工程准备或查询结果为准。
|
|
11
|
-
- `${CRAFT_SKILL_DIR}`:本次已选择技能的真实绝对目录,例如上下文目录下的 `skills/export-config`;不同技能分别解析。
|
|
9
|
+
完整上下文的实际位置来自 context.engine.directory,技能索引来自 context.engine.skills_index。索引按 description 选择本次所需技能,再读取 entrypoint;不要一次加载全部技能。文档中的 `${CRAFT_CONTEXT_DIR}`、`${CRAFT_PROJECT_DIR}`、`${CRAFT_SKILL_DIR}` 分别代表返回的上下文、工程和已选技能绝对路径;执行脚本时显式替换或传入,不假设终端已设置变量。
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
## 开发
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
- 玩法写入 src/scenes/PlayScene.ts,资源预加载放入 src/scenes/LoadScene.ts。src/main.ts 负责 Phaser 初始化、尺寸同步和预览桥;屏幕 UI 沿用 src/screenUi.ts 与 src/display/。
|
|
14
|
+
- 保留 game-runtime.json、Vite 插件和项目内配置导出模块。普通玩法修改不升级 runtime,不重写完整性清单。
|
|
15
|
+
- 玩法、胜负、操作和素材方案以用户要求为准。需求不明确时只澄清影响实现的部分;先形成最小可玩循环,再扩展。素材可用代码图形、用户资源、素材库或生成服务,按实际需求选用。
|
|
16
|
+
- 修改加载或预览接线时读 [生命周期](knowledge/Lifecycle.md);接入素材时读 [资源接线](knowledge/AigcWiring.md) 和 [地址规则](knowledge/AssetUrl.md)。配置与资源导出使用 export-config 技能。
|
|
17
|
+
- 屏幕布局按当前容器尺寸适配;坐标与 HUD 同步,保留已有输入,不把某种设备范围作为隐含需求。见 [布局与输入](knowledge/Layout.md)。
|
|
16
18
|
|
|
17
|
-
##
|
|
19
|
+
## 验收与交接
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
共用流程以 craft_game_info 返回的 context.workflow 为准。实现真实的 `globalThis.__GAME_PROBE__.snapshot()`,从 Phaser 渲染帧与玩法状态返回 ready、frameCount、game;不得用定时器或固定值替代实际状态。
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
craft_game_check 验证最终构建和真实输入,craft_game_review 提供截图审阅,craft_game_deliver 返回同一验收快照的预览启动命令。将命令放在宿主后台任务中运行,再查询 running/snapshot 并打开 URL 核实。检查成功不等于预览已经运行。
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
所有自然语言正文都给用户看,包括工具调用之间、排错时和最终回复。让用户持续了解游戏正在怎样变好:可以详细说明本轮目标、具体变化、已观察到的问题、修复状态、接下来要检查的效果与验证结果。反馈可以充分,不以字数少为目标;但不输出内部推理、排查假设、方案权衡、自我指令或逐步技术操作旁白。
|
|
26
|
-
|
|
27
|
-
1. **先开场,再开发**:授权制作或修改后,先说明本轮游戏目标与要做出的体验,再浏览工程、加载技能或执行开发工具。若当前上下文没有目标,只先静默读取设计文档的需求摘要,读完立即开场;不得等到修改文件、运行命令或派发制作任务后才开场。普通问答直接回答,尚待必要确认时不宣布开工。
|
|
28
|
-
2. **随进展持续反馈**:玩法、画面、资源接入有实际进展,发现影响体验的问题,修复进入复验,或检查获得新结果时,都可以自然播报,不限于几个固定里程碑。说清具体改变、用户能感受到的效果和当前验证状态;进入构建或画面/玩法验收前,若已有改动但还没播报,先说明已实现的内容及接下来要检查的效果。不要只说「核心玩法已写完」「主体已完成」。有新信息就讲充分;同一成果没有变化时不重复播报,也不逐个工具调用报流水账。小改动可直接交付,不凑条数,不编造进度、百分比或剩余时间。
|
|
29
|
-
3. **排错讲现象和进展**:可以说明「移动效果还需要进一步确认」「交战时出现异常中断,正在修复」「已修复,接下来复验重开后是否能继续操作」。已观察到的现象、修复状态与接下来的检查目标都属于可展示反馈;猜测原因、逐步排查路径、内部方案比较与自问自答不属于。读取、写入、加载、定位、重试本身不单独播报,也不复述工具参数或内部技能、调度、命令、文件与函数操作。用户明确询问技术细节时,可解释实现和证据,但仍不输出内部思考。检查失败若影响结论,说明哪些效果尚无法确认及当前处理状态,不反复复述工具报错。
|
|
30
|
-
4. **结论对应证据**:已修改不等于已验证,构建通过不等于玩法通过;资源已提交、已生成、已接入分别说。只把实际检查过的行为列为已验证,不能由方向键通过推断 WASD、Shift 也通过,由截图正常推断交互通过。检查失败或无有效结果时保留未验证;后续改动影响旧结论时标为待复验。截图只支持画面中实际可见的状态;行为结论须有对应操作及结果证据。模型查看截图不叫「人工验收」;没有真实人工参与时不得声称人工核对或用户已确认,也不得用模型自行看图绕过既有 QA 判定规则。
|
|
31
|
-
5. **交付说完整**:总结按上文「按需展示总结」选择展示渠道;`summary` 与回落正文均默认按「本次变化/已验证/未完成或未验证」组织,可展开具体玩法、画面变化和必要操作说明,不设固定字数上限。最后一项只列本轮需求或关键行为中确实未完成、未检查或检查无结论的内容,并写明范围;素材制作方式放变化中,检查报错不能代替未验证项。没有已知遗留可说「本轮范围内无已知遗留」,不凑问题、不宣称全功能通过。不罗列工程文件、重述整段排错经过或复制卡片全文。
|
|
32
|
-
|
|
33
|
-
播报后继续工作,不额外等确认。既有问卷、资产卡、QA、待办及验收条件照常执行;不为播报新增检查、截图或发布,不重复自动发卡,不编造新标签或工具。
|
|
34
|
-
|
|
35
|
-
## 工程约定
|
|
36
|
-
|
|
37
|
-
用户本轮明确只要求需求澄清、编写设计或等待开工设计确认时,先完成该范围并等待确认,不执行下文的首次开发步骤。已有空模板、重试/恢复、信息已充分都不等于用户确认开工;没有有效问卷答案时不虚构已选项。若当前阶段缺少所需澄清或开工确认工具,说明流程受阻,不以自写设计后直接开发代替确认,也不声称已经完成上游交接。
|
|
38
|
-
|
|
39
|
-
项目根是 `${CRAFT_PROJECT_DIR}`,使用 Phaser 3.90。开始实现或迭代前,按 `${CRAFT_CONTEXT_DIR}/knowledge/ProjectDisplayConfig.md` 读取并维护项目显示偏好。屏幕布局与取景读 `resolution-adaptation`。然后读取 `${CRAFT_PROJECT_DIR}/game-runtime.json`(没有即没有,禁止为确认去搜全库)。
|
|
40
|
-
|
|
41
|
-
- **有该文件**:下文 Runtime 约定、新模板入口(`PlayScene` / `LoadScene` / `screenUi`)适用。
|
|
42
|
-
- **没有该文件**:只改工程里已有文件和已有 import,补建根目录 `game.config.json` 除外。禁止新建 `game-runtime.json`、禁止新增或覆盖 `runtime/`、禁止改 `package.json` 的 scripts。只跑 `package.json` 里已经存在的脚本。违反代价:把本可过的旧构建改挂。**例外**:用户本轮明确要求把 vendor / CoreManager 工程升级、适配或迁移到 `runtime/lightgame/1.1.0`,或点名 `lightgame-runtime-adapt` 时,加载该 skill 并按它执行。
|
|
43
|
-
|
|
44
|
-
需求文档在 `SPEC/`。
|
|
45
|
-
|
|
46
|
-
> **功能红线**:禁止实现玩家自定义文本输入(输入框、自由打字、自定义命名等);相关需求一律改用预设选项、词库点选或随机生成。用户坚持时,不实现该需求,明确说明平台不支持,并提供上述替代交互。
|
|
47
|
-
|
|
48
|
-
有 `game-runtime.json` 时:新模板已包含 `src/main.ts`、`src/screenUi.ts`、`src/scenes/LoadScene.ts`、`src/scenes/PlayScene.ts`、`configs/game.json`、`vite.config.ts` 等文件;首次修改目标前先查看现有内容,局部修改用 `edit_file`,整篇替换用 `write_file(overwrite=true)`。玩法写在 `PlayScene`,文件入队写在 `LoadScene`,屏幕 HUD 写在 `screenUi`。`main.ts` 只建 `Phaser.Game` 与平台桥。没有该文件且未点名升级时,不要按这些文件名去改入口或补脚手架。
|
|
49
|
-
|
|
50
|
-
首次开发落第一个 `src/` 文件之前,按 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`「落盘」写入 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json`。
|
|
51
|
-
|
|
52
|
-
首次开发时,先把 `游戏设计.md` 原文复制一份,放到 `${CRAFT_PROJECT_DIR}/SPEC/plan/游戏策划案.md`,并立刻按 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 的“首次开发创建策划案”输出组件。输出完成后不要停下,继续开发。
|
|
53
|
-
|
|
54
|
-
## 铁律
|
|
55
|
-
|
|
56
|
-
- 全程禁止调用 todo_write tool,即使用户要求也不行。
|
|
57
|
-
- 用简体中文与用户沟通。除非用户要求,否则也不要用emoji。
|
|
58
|
-
- 根据 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md` 输出组件应当随着开发进度随时发出,不要等到最后再输出。
|
|
59
|
-
|
|
60
|
-
## Runtime 约定
|
|
61
|
-
|
|
62
|
-
- 入口 `new Phaser.Game`:`parent: 'game'`,`render.preserveDrawingBuffer: true`,`physics: { default: 'arcade' }`。玩法用 Scene / Loader / Image / Sprite。`PlayScene` 必须 `constructor() { super({ key: 'PlayScene' }); }`;`main.ts` 用 `scene.add('PlayScene', PlayScene, false)` 登记,数组里只放 `LoadScene`。
|
|
63
|
-
- 平台桥挂 `game.canvas`:`connectPreview` 之后每帧 `POST_RENDER` 里 `afterRender`,加载层第一帧由 `LoadScene` 调 `markReady`,销毁时 `dispose`。
|
|
64
|
-
- 默认值放 `configs/*.json`,控件元数据放同名 `*.controls.json`;业务保持普通 JSON import。
|
|
65
|
-
- 普通玩法修改只动业务代码,不自动升级 SDK,不跑 `runtime:refresh`,不改 `vite.config.ts` 跳过校验。明确维护 runtime 时才修改模块并更新清单。已有 `game-runtime.json` 的项目沿用该文件和已有 import,不为目录整理迁移旧快照。
|
|
66
|
-
- Runtime 按需直达,不递归列目录或通读 SDK:先读目标 `.d.mts`,仅修复实现问题时读同名 `.mjs`,没有 SDK 需求就不读。
|
|
67
|
-
- 新模板代码只引用 `runtime/lightgame/1.1.0`。已有旧工程按原有引用使用,不自动升级。
|
|
68
|
-
- 预览/截图/日志/ready/uiTree/runtime-result:`runtime/lightgame/1.1.0/platform/platform.d.mts`。
|
|
69
|
-
- 身份 / 排行榜 / 云存档 / 多人同步:加载 `platform-services`,只安装这次要用的模块到 `src/skill-modules/platform-services/`。`leaderboard`、`save`、`multiplayer` 各自带上身份,互不附带。不要从 `runtime/lightgame/1.0.0/platform/` 引入,也不要装进 `1.1.0` runtime。
|
|
70
|
-
- `tooling/` 保留 `vite`、`project`、校验 CLI、依赖检查与 profile 页面;`release.json` 仅为完整性清单。`game-runtime.json` 的 `cli` 在新版本只提供校验,不再导出配置。
|
|
71
|
-
- 配置能力由 `export-config` 安装到 `scripts/skill-modules/export-config`;默认已预装。`gameConfig()` 与 `lightgame()` 并列启用,`game-runtime.json` 的 `configs`、`cdnBase` 设置目录/CDN,保持普通 JSON import。
|
|
72
|
-
- URL 解析、通用加载和 ASTC 在 `runtime/lightgame/1.1.0/tools/`(`assets.mjs`、`astc.mjs`),先读随包 `.d.mts`。玩法优先 Phaser Loader。素材召回仍走 `asset-search`。
|
|
73
|
-
- 音视频、基础输入/UI、Canvas 效果及 Three 玩法由 Agent 使用引擎/浏览器 API 自行实现,不回引 `1.0.0/tools` 补能力,不创建替代大工具包。
|
|
74
|
-
|
|
75
|
-
## 交付要求
|
|
76
|
-
|
|
77
|
-
交付前通过本批终态的 `npm run build`。有 `game-runtime.json` 时当前模板的 `build` 会先 `config:export` 再做类型检查。旧项目的 `package.json` 若还没把导出放进 `build`,改资源后仍要单独跑 `npm run config:export`。不要跑 `runtime:refresh`,不要改 `vite.config.ts` 去跳过完整性校验,不要把 `release.json` 哈希写进交付说明。没有该文件时只跑已有 `build`,不补 `typecheck` / `config:export` / `runtime:verify`。`game_visual_qa` 已对当前状态构建过则复用,否则在 `${CRAFT_PROJECT_DIR}` 执行。改代码或配置会使旧构建失效,改画面会使旧视觉报告失效。
|
|
78
|
-
|
|
79
|
-
`game_visual_qa` 只在游戏做完后调用:玩法能跑;有文件资产则已把 `aigc_status` 的 `items` 写入 `@slot` 与 `configs/assets.json` 并 export。此前只 `build`。画面只由该工具判读。调用前加载 `visual-qa`:验什么、看图额度、`fail` 处置与交付说明「已验证」的写法只在该 skill。`game_visual_qa` 自动上传并展示 QA 截图;根据验收结果继续修复或交付。成功构建后平台会自动通知预览就绪;不要在正文输出 `preview_ready` 标签。
|
|
80
|
-
|
|
81
|
-
完成召回资产或 AIGC 资产的接线后,遵守 `${CRAFT_CONTEXT_DIR}/knowledge/FrontendComponents.md`,立刻按“资产展示”执行脚本并输出组件。
|
|
82
|
-
|
|
83
|
-
画面、HUD 或说明里写了哪些按键,就都要绑定:写了 WASD 或方向键时两套都绑。
|
|
84
|
-
|
|
85
|
-
## 移动端适配状态
|
|
86
|
-
|
|
87
|
-
按游戏设计中的平台范围接入移动端:clarifier 新项目默认开启并写入游戏设计,用户明确关闭时遵循,不重新询问。首次开发开工及修改输入、HUD、布局或核心玩法前,按 `${CRAFT_CONTEXT_DIR}/knowledge/MobileAdapted.md` 读取与维护 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `mobile_adapted`;首次补 `false`,适配与验证完成后才写 `true`。已有 `true` 的项目维护相关能力;旧项目缺少范围或完成状态不自动触发全量适配,普通分辨率适配也不等于移动端接入。
|
|
88
|
-
|
|
89
|
-
## 按需读取
|
|
90
|
-
|
|
91
|
-
- QA 兼容性报告、具体机型黑白屏/遮挡/触控故障或回归修复:加载 `mobile-compat-qa`,区分原始问题、修复状态与回归结果;按当前工程复用布局、输入和预览生命周期,不自动升级 SDK。
|
|
92
|
-
- 屏幕 UI 的通用约束:背景/世界/遮罩与功能 UI 分层;关键图片完整显示,按钮与展示型 HUD 都避开设备与宿主遮挡,布局 safe frame 不代表设备安全区。移动端竖屏避开顶部整带,横屏避开左上、右上宿主区域并保留顶部中间可用;制作或修改相关 UI 时读取 `${CRAFT_CONTEXT_DIR}/skills/resolution-adaptation/references/device-safe-area.md`。不另加全局缩放或逐控件设备偏移。
|
|
93
|
-
|
|
94
|
-
- 文件资产加载顺序:`${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md`。
|
|
95
|
-
- 资源 URL:`${CRAFT_CONTEXT_DIR}/knowledge/AssetUrl.md`。
|
|
96
|
-
- 屏幕按钮 / 对话选项 / 商店面板:有 `game-runtime.json` 时读 `${CRAFT_CONTEXT_DIR}/knowledge/Ui.md`(`src/screenUi.ts`);没有则按工程已有 UI 改。
|
|
97
|
-
- `SPEC/plan/游戏设计.md` 已在、准备写第一局:开关与触发表只在 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`,接线只在 `${CRAFT_CONTEXT_DIR}/knowledge/AigcWiring.md`。必须先提交 AIGC 再写玩法(`${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `aigc_enabled === false` 除外,取值规则见 `${CRAFT_CONTEXT_DIR}/knowledge/AigcEnabled.md`)。提示词与画风只读 `游戏设计.md`。已有项目上用户明确要求换图 / 换音乐时走 `aigc-generate`「迭代生成」。漏提交的代价:整轮只有程序直绘,生成要十几分钟,写完再补无法并行。
|
|
98
|
-
- 排行榜、云存档、本机存档或多人同步:有 `game-runtime.json` 时先读 `${CRAFT_CONTEXT_DIR}/knowledge/PlatformServices.md`。没有该文件时按工程已有 import 改,不要读 `PlatformServices.md`。`1.1.0` 按需加载 `platform-services`,只安装 `leaderboard`、`save`、`multiplayer` 里这次要用的那一个,入口在 `markReady()` 前显式 `init()` 同一身份服务;预览桥和 `lightgame()` 不负责身份初始化或销毁。`1.0.0` 旧工程保留原接线,不自动迁移,也不要和 skill 混用;给这类工程新增联机、以及 `src/subsystem/multiplayerManager/` 旧副本的处理,见 `${CRAFT_CONTEXT_DIR}/rules/PlatformBoundaryModules.md`。先画出画面并发 `ready`,再异步读档。`query`:`BOARD_NOT_FOUND` 当空榜;只有 `PLATFORM_UNAVAILABLE` 才显示暂不可用;不要造假在线榜。云存档看 `source`:用户要云端时,`OK` + `local` 不算云端成功。联机用法见 `${CRAFT_CONTEXT_DIR}/knowledge/Subsystems/Optional/MultiplayerManagerKnowledge.md`。
|
|
99
|
-
- 新增或改写屏幕 UI:先读 `${CRAFT_PROJECT_DIR}/SPEC/plan/dev-config.json` 的 `ui_editor_compat`,判读与写入规则见 `${CRAFT_CONTEXT_DIR}/knowledge/UiEditorCompat.md`。
|
|
100
|
-
- 新增或改写场景静态数据,或新增 / 替换 / 删除资源(含游戏资源面板交给 Agent 的换图、AIGC / 素材库换图、编辑器新增资源的后续处理),或修改场景实例的运行时状态 / 碰撞 / 交互生命周期:先读同文件 `scene_editor_compat`。为 `true` 时加载 `scene-editor-compat` 并按该 skill 执行,不等用户再次点击适配。未适配项目不因此自动接入。
|
|
101
|
-
- 实时预览由平台根据成功构建自动开启,约束见 `${CRAFT_CONTEXT_DIR}/rules/preview_ready.md`;正文不要输出预览标签。
|
|
102
|
-
|
|
103
|
-
## 技能
|
|
104
|
-
|
|
105
|
-
技能按各自 description 判断是否加载。例外:
|
|
106
|
-
|
|
107
|
-
- `aigc-generate`:按「按需读取」的 AIGC 条加载,执行该 skill 的「首轮直接生成」或「迭代生成」。
|
|
108
|
-
- `asset-search`:仅在以下情况加载:用户明确要求从素材库召回;用户消息带上传附件(`__chat_message__.attachments[]` 中 `type=resource`)或「用户本轮引用了以下资源」块;对话里出现 `https://file.craft.qq.com/...` 或 `Game/...` 资源地址。只回传 path;接线写进 `configs/assets.json` 与 `@slot`,见 `${CRAFT_CONTEXT_DIR}/knowledge/AigcWiring.md`。
|
|
109
|
-
- `optimization-suggestions`:仅在用户本轮明确索要灵感 / 优化建议,或上下文含 `[REMIX_MOTHER_SUMMARY]...[/REMIX_MOTHER_SUMMARY]` 时起 subagent;首轮制作完成不自动出卡。
|
|
110
|
-
- `ui-editor-compat`:仅在 `ui_editor_compat` 为 `true`,或用户明确要求接入界面编辑器时加载;普通 UI 开发不加载。
|
|
111
|
-
- `scene-editor-compat`:已标记 `scene_editor_compat: true` 的项目修改场景或资源时加载,即使本轮只说“换图 / 修改配置”;用户明确要求接入 / 修复场景编辑器时也加载。涉及地形绘制/不生效时读其 `docs/terrain-contract.md`,维护具体地形类型、默认属性与游戏消费,不能只显示颜色或移动原有对象就算通过。未适配项目的普通开发不加载。
|
|
112
|
-
- `lightgame-runtime-adapt`:仅在用户本轮明确要求把 vendor / CoreManager 工程升级到 `runtime/lightgame/1.1.0`,或点名本 skill 时加载。见到 CoreManager、缺少 `game-runtime.json`、普通生成/iterate/出包都不够;未点名不要迁架构。
|
|
25
|
+
在 SPEC/PROGRESS.md 记录已完成玩法、操作、关键文件、实际验收结果和下一步。只读恢复不改文件,不执行初始化、构建或导出。
|
|
@@ -1,200 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 2D / Phaser 资源接线
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
先定位实际消费者和稳定的 slot,再搜索、生成或导入。结果按工具返回的 config_file/slot 写入配置;配置更新不代表素材已被游戏使用。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
按照 [地址规则](AssetUrl.md) 加载资源。导入后核对 MIME/资源类型、透明背景、比例、朝向或骨骼信息;在游戏中实际展示或播放,再验证结算和重开时的行为。加载失败保留请求 ID 和原因,不用不存在的文件或硬编码成功状态掩盖错误。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
生成图片、音频、模型或动作的工具参数以当前 schema 为准。使用相同 request_key 恢复原请求;超时不等于失败,不更换 key 重复发起可能计费的生成。异步任务通过 craft_task_status 和 craft_assets_status 恢复,已有结果通过 craft_assets_import 导入。
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
// @slot <category> <slot_name> [<资产地址>]
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
`category` 只取 `texture-ui` / `texture-scene` / `texture-prop` / `anim2d` / `effect2d` / `audio`(`character2d` 仅用于 AIGC 序列帧;素材库召回走 `anim2d` / `effect2d`)。`slot_name` 用 snake_case,项目内唯一。第三段只在已有真实 URL **且**已经 `load` + 画/播时才写。
|
|
14
|
-
|
|
15
|
-
音频固定槽:`theme_bgm`。SFX 可标 `@slot audio <name>_sfx`,但禁止提交 AIGC。
|
|
16
|
-
|
|
17
|
-
序列帧参考立绘另标:`// @ref character2d <角色名> <URL>`,写在该角色第一个动作 `@slot` 上方。
|
|
18
|
-
|
|
19
|
-
## 配置
|
|
20
|
-
|
|
21
|
-
已标记 `scene_editor_compat: true` 的项目,换图不止改槽位配置:同时按 `${CRAFT_CONTEXT_DIR}/skills/scene-editor-compat/docs/resource-sync.md` 同步受影响的场景资产注册及消费者。面板提交给 Agent 的替换与自然对话换图走同一规则;只改 `configs/assets.json` / `@slot` 不算完成。
|
|
22
|
-
|
|
23
|
-
URL 进 `configs/assets.json`,第三段与 JSON 用同一条地址原值:AIGC 写 `result_url`(序列帧是 manifest JSON),库资源写对话块「资源地址」原值(`Game/...`);`--provide` 回传的 path 就是这条,`resolveAssetUrl` 补全域。业务 `import assets from '../configs/assets.json'`。有 URL 就加载,空字符串走直绘 / 合成兜底。透明边用本节 `fit.ts`。短报告说立绘或图标白底、色块时,先核对 JSON 仍是这条地址,加载走 `slotUrl` + `applyFit`。
|
|
24
|
-
|
|
25
|
-
素材库召回的序列帧(`anim2d` / `effect2d`)一个动作一条候选,槽值直接写候选 `sprite.sheetPath`(就是图集 `.png`,如 `/Game/资产/相关资产/2D资产/动画/人类/休闲女孩待机.png`),帧信息取同一候选的 `rows` / `cols` / `frameCount`;第三段与 JSON 用同一条地址。要拿同一角色的其它动作,用候选 `SetTag`(= 角色名)再召回一次。
|
|
26
|
-
|
|
27
|
-
入队来自同一份 import:单图 / 音频用 `slotUrl`,序列帧用 `sheetUrl`(AIGC 的 manifest JSON 槽换成同名 png;库召回槽值已是 png,等于原值)。Vite 把「游戏资源」里选中的值覆盖进同一份 import,换图才会进游戏。面板按导出后的 JSON 反查 `PaperFlipbook` 缩略图。地址归一化只有一份实现,在 `${CRAFT_CONTEXT_DIR}/skills/export-config/scripts/panel-resource-path.mjs`。
|
|
28
|
-
|
|
29
|
-
全部终态、真实 URL 已写入 `@slot` 第三段与 `assets.json` 之后跑 `npm run config:export`。脚本扫 `@slot`,只把 JSON 里已有的非空地址写成 `configs/assets.controls.json`(`type: "resource"`;`texture-*` → `asset_type: "Texture2D"`,`anim2d` / `character2d` / `effect2d` → `PaperFlipbook`,`audio` → `SoundWave`),再生成「游戏资源」面板快照。面板条目名写成中文:有 AIGC `--path` 用它,没有则把槽名译成中文。空槽不进面板。第三段有地址而 JSON 仍空时,导出脚本会把该地址写入 JSON。导出后快照 `origin` / `default` 写成 JSON 这条。`https://file.craft.qq.com` 和 `Game/`、`Glb/Game/`、`test1/` 相对路径里的百分号编码会在导出时解回中文写回 JSON,库资源仍收成 `Game/...`,其它相对路径保留原前缀;核对 JSON 以解码后的值为准,不要改回百分号或 `result_url`。`@slot` 第三段不由导出脚本改写。仅编码形态变化不会清空面板已选覆盖值。
|
|
30
|
-
|
|
31
|
-
```ts
|
|
32
|
-
import assets from '../configs/assets.json';
|
|
33
|
-
import { resolveAssetUrl } from '../runtime/lightgame/1.1.0/tools/assets.mjs';
|
|
34
|
-
|
|
35
|
-
const cdn = { cdnBaseUrl: 'https://file.craft.qq.com' };
|
|
36
|
-
|
|
37
|
-
function slotUrl(name: string): string {
|
|
38
|
-
return String((assets as Record<string, string>)[name] ?? '').trim();
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function sheetUrl(name: string): string {
|
|
42
|
-
return slotUrl(name).replace(/\.json(?=[?#]|$)/i, '.png');
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## 尺寸
|
|
47
|
-
|
|
48
|
-
禁止 `setDisplaySize(targetW, targetH)`(分别设 scaleX/scaleY,比例不同必变形)。缩放按**不透明主体框**,不要按整张 PNG 宽高(透明边会把人挤小或抬离地面)。调用 fit 之后不要再手写 `setOrigin`。
|
|
49
|
-
|
|
50
|
-
```ts
|
|
51
|
-
export type AlphaBounds = {
|
|
52
|
-
w: number; h: number; x0: number; y0: number; cw: number; ch: number;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export function measureAlphaBounds(
|
|
56
|
-
scene: Phaser.Scene, textureKey: string, frame?: string | number, alphaThreshold = 10,
|
|
57
|
-
): AlphaBounds {
|
|
58
|
-
const tex = scene.textures.get(textureKey);
|
|
59
|
-
const src = tex.getSourceImage() as HTMLImageElement | HTMLCanvasElement;
|
|
60
|
-
let sx = 0, sy = 0, cw = src.width, ch = src.height;
|
|
61
|
-
if (frame !== undefined && frame !== null) {
|
|
62
|
-
const fr = tex.get(String(frame));
|
|
63
|
-
if (fr && fr.cutWidth > 0) { sx = fr.cutX; sy = fr.cutY; cw = fr.cutWidth; ch = fr.cutHeight; }
|
|
64
|
-
}
|
|
65
|
-
const canvas = document.createElement('canvas');
|
|
66
|
-
canvas.width = cw; canvas.height = ch;
|
|
67
|
-
const ctx = canvas.getContext('2d', { willReadFrequently: true })!;
|
|
68
|
-
ctx.drawImage(src, sx, sy, cw, ch, 0, 0, cw, ch);
|
|
69
|
-
const data = ctx.getImageData(0, 0, cw, ch).data;
|
|
70
|
-
let minX = cw, minY = ch, maxX = -1, maxY = -1;
|
|
71
|
-
for (let y = 0; y < ch; y++) {
|
|
72
|
-
for (let x = 0; x < cw; x++) {
|
|
73
|
-
if (data[(y * cw + x) * 4 + 3] > alphaThreshold) {
|
|
74
|
-
if (x < minX) minX = x; if (x > maxX) maxX = x;
|
|
75
|
-
if (y < minY) minY = y; if (y > maxY) maxY = y;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
if (maxX < minX) return { w: cw, h: ch, x0: 0, y0: 0, cw, ch };
|
|
80
|
-
return { w: maxX - minX + 1, h: maxY - minY + 1, x0: minX, y0: minY, cw, ch };
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function applyFit(
|
|
84
|
-
img: Phaser.GameObjects.Image | Phaser.GameObjects.Sprite,
|
|
85
|
-
scale: number, b: AlphaBounds, ax: number, ay: number,
|
|
86
|
-
): void {
|
|
87
|
-
if (!scale) return;
|
|
88
|
-
img.setScale(scale);
|
|
89
|
-
img.setOrigin((b.x0 + ax * b.w) / b.cw, (b.y0 + ay * b.h) / b.ch);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function fitContain(img: Phaser.GameObjects.Image, targetW: number, targetH: number, b: AlphaBounds): void {
|
|
93
|
-
applyFit(img, Math.min(targetW / b.w, targetH / b.h), b, 0.5, 1);
|
|
94
|
-
}
|
|
95
|
-
export function fitCover(img: Phaser.GameObjects.Image, targetW: number, targetH: number, b: AlphaBounds): void {
|
|
96
|
-
applyFit(img, Math.max(targetW / b.w, targetH / b.h), b, 0.5, 0.5);
|
|
97
|
-
}
|
|
98
|
-
export function fitSpriteH(spr: Phaser.GameObjects.Sprite, targetH: number, b: AlphaBounds): void {
|
|
99
|
-
applyFit(spr, targetH / b.h, b, 0.5, 1);
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
悬挂 / 飞行:`applyFit(img, Math.min(targetW / b.w, targetH / b.h), b, 0.5, 0.5)`,`y` 用实体中心。落地站立用 `fitContain` / `fitSpriteH`(脚底)。
|
|
104
|
-
|
|
105
|
-
## 加载
|
|
106
|
-
|
|
107
|
-
入队、进度条、何时收起加载:只在 `${CRAFT_CONTEXT_DIR}/knowledge/Lifecycle.md`。入队写在 `src/scenes/LoadScene.ts`;`complete` 之后在 `PlayScene` 再 `add.image` / `add.sprite` / `play` BGM。`textures.exists(key)` 为假则该槽直绘。
|
|
108
|
-
|
|
109
|
-
- 单图:`const url = slotUrl(key)` 非空才 `this.load.image(key, resolveAssetUrl(url, cdn))` → `this.add.image(x, y, key)`,立刻 `const b = measureAlphaBounds(this, key)`,角色/道具/UI `fitContain`,整图背景 `fitCover`。`key` 与 JSON 字段同名。
|
|
110
|
-
- 整图背景 / 封面:目标 = **逻辑区域**(Scene 内 `this.scale.width/height`,短边恒 1080、长边随设备比例伸缩);`fitCover` 后放在画布中心。方形 `size` 与出血安全区见 `aigc-generate/SKILL.md`「构造提示词」。
|
|
111
|
-
- 落地站立:`y = GROUND_Y`(悬挂 / 飞行除外)。origin 由 fit 写入。
|
|
112
|
-
- BGM:`const url = slotUrl('theme_bgm')` 非空才 `this.load.audio('theme_bgm', resolveAssetUrl(url, cdn))`。手势里 `this.sound.unlock()`,缓存存在则 `this.sound.play('theme_bgm', { loop: true })`。无 URL 时用 oscillator 合成兜底。
|
|
113
|
-
- 加载失败或 `slotUrl` 为空:该槽保持直绘 / 合成。
|
|
114
|
-
|
|
115
|
-
大装饰的动态优先对已加载的 Image 做位移、缩放、旋转、透明度、色调,或 `this.tweens.add` 摆动。只有参数动画表达不了的逐帧形变才走 `character2d`。
|
|
116
|
-
|
|
117
|
-
## 朝向
|
|
118
|
-
|
|
119
|
-
文件资产默认朝右。世界里会水平移动的落地角色 / 立绘跟速度翻,玩家和敌人同一判定:
|
|
120
|
-
|
|
121
|
-
```ts
|
|
122
|
-
let flipX = false;
|
|
123
|
-
if (vx < 0) flipX = true;
|
|
124
|
-
else if (vx > 0) flipX = false;
|
|
125
|
-
spr.setFlipX(flipX);
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
`vx === 0` 不改 `flipX`,每一帧仍写到**当前**显示的 sprite。切动作或换图集后立刻 `next.setFlipX(flipX)`。对白 / 面板立绘不翻。
|
|
129
|
-
|
|
130
|
-
## 序列帧
|
|
131
|
-
|
|
132
|
-
槽值两种来源:AIGC 的 `result_url` / `provide` 的 path 是 PaperFlipbook **manifest JSON**(`{ type, url, rows, cols, frameCount }`);素材库召回的 `anim2d` / `effect2d` 是**图集 png**(见本文件「配置」),不读 manifest。一个动作一张图集。接线时取该动作的 `rows` / `cols` / `frameCount`:AIGC 槽读 manifest,库召回槽直接取候选 `sprite`(候选 Path 就是 png,帧信息来自 `FrameCount` / `GridLayout` / `Loop`)。再读图集 PNG IHDR(偏移 16 起 8 字节大端宽高),`frameWidth = 图宽 / cols`,`frameHeight = 图高 / rows`。把这条地址写入 `assets[slot]`,入队:
|
|
133
|
-
|
|
134
|
-
```ts
|
|
135
|
-
this.load.spritesheet(key, resolveAssetUrl(sheetUrl(key), cdn), { frameWidth, frameHeight });
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
`load.image(图集)` 会把整张表当成一帧,动画切不出去。`load.spritesheet` 吃的是该动作的图集图;slot 值留给面板按 `PaperFlipbook` 反查缩略图。
|
|
139
|
-
|
|
140
|
-
`complete` 之后建**一个** sprite,立刻播当前动作(通常 idle):
|
|
141
|
-
|
|
142
|
-
```ts
|
|
143
|
-
const FAST = new Set(['run', 'attack', 'dash', 'jump', 'hurt', 'die', 'death']);
|
|
144
|
-
const ONCE = new Set(['attack', 'dash', 'jump', 'hurt', 'die', 'death']);
|
|
145
|
-
const fps = FAST.has(role) ? 24 : 12;
|
|
146
|
-
if (!this.anims.exists(animKey)) {
|
|
147
|
-
this.anims.create({
|
|
148
|
-
key: animKey,
|
|
149
|
-
frames: this.anims.generateFrameNumbers(key, { start: 0, end: frameCount - 1 }),
|
|
150
|
-
frameRate: fps,
|
|
151
|
-
repeat: ONCE.has(role) ? 0 : -1,
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
const spr = this.add.sprite(x, GROUND_Y, key, 0);
|
|
155
|
-
fitSpriteH(spr, targetH, measureAlphaBounds(this, key, 0));
|
|
156
|
-
spr.play(animKey);
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
idle / move / walk:12fps、循环。run:24fps、循环。attack / dash / jump / hurt / die:24fps、`repeat: 0`。`end` 用该动作的 `frameCount - 1`。
|
|
160
|
-
|
|
161
|
-
切换:同一 sprite 换动作时 `setTexture(nextKey, 0)` 再 `play`,立刻 `spr.setFlipX(flipX)`。只在动作变化时 `play`。`ONCE` 内的短动作 `anims.isPlaying` 期间不被循环动作顶掉;`animationcomplete` 后再放行。受击用 `setTintFill(0xffffff)`,80ms 内 `clearTint()`。任一动作图集就绪后,拆掉该角色立绘占位。
|
|
162
|
-
|
|
163
|
-
`targetH` 首选同名立绘 `fitContain` 之后的 `displayHeight`。
|
|
164
|
-
|
|
165
|
-
## 卷轴分层
|
|
166
|
-
|
|
167
|
-
`游戏设计.md` 写明卷轴 / 视差时画 2 层背景;没写就一张整图铺满。
|
|
168
|
-
|
|
169
|
-
绘制顺序用 `setDepth`:最远层 < 中间层 < 玩法实体。
|
|
170
|
-
|
|
171
|
-
最远层:高度 = 屏高,沿滚动方向重复偶数张 `add.image`;第 2、4、6… 张 `setFlipX(true)`。该层相机位移乘比中间层更小的系数。
|
|
172
|
-
|
|
173
|
-
中间层:透明图,落地脚底对齐 `GROUND_Y`(悬挂 / 飞行除外)。
|
|
174
|
-
|
|
175
|
-
## 地块拼接
|
|
176
|
-
|
|
177
|
-
目标宽高 = 格子尺寸(横版条用条带宽高)。步进用主体框:`stepW = bounds.w * img.scaleX`(纵步用 `bounds.h * scale`)。相邻格 `x[i+1] = x[i] + stepW`,中间不加空隙。每段平台独立碰撞盒,对齐该段显示矩形。关卡缺口保持缺口。
|
|
178
|
-
|
|
179
|
-
## 显示尺寸(相对屏高)
|
|
180
|
-
|
|
181
|
-
目标高按屏高比例,不要按 PNG 原像素上屏。
|
|
182
|
-
|
|
183
|
-
- 主角:屏高 18~28%
|
|
184
|
-
- 普通敌人与主角同档(约 0.9~1.1 倍);点名的小兵 / 幼体才更小;Boss = 主角 1.5~2 倍
|
|
185
|
-
- 可点拾取物:主角 0.5~0.7 倍
|
|
186
|
-
- 投射物 / 掉落物 / 经验球:主角 0.12~0.25 倍,不要套可点拾取物档
|
|
187
|
-
- UI 图标最小 ≥ 屏高 5%
|
|
188
|
-
|
|
189
|
-
看图时只处理**明显**过大或过小(主角吞掉半屏、实体缩成豆、同角色 AIGC 与几何占位差一倍以上)。略偏本节档位不要为此再调 `game_visual_qa`。
|
|
190
|
-
|
|
191
|
-
## 地面校准
|
|
192
|
-
|
|
193
|
-
落地站立的角色 / 道具脚底对齐同一条 `GROUND_Y`(悬挂 / 飞行除外)。
|
|
194
|
-
|
|
195
|
-
初始:`GROUND_Y = Math.round(horizonRatio * height)`。`horizonRatio` 取 `游戏设计.md` 对地平线位置的描述(画面高度比例)。之后以 `game_visual_qa` 短报告 `summary` 里的地面校准为准。`groundRatioInImage` 只来自该报告的**玩法帧**:加载已收起、开始层已关掉、真图已接线、人站在场景上。标题 / 加载 / 开始层上的比例不算。
|
|
196
|
-
|
|
197
|
-
- 报告给出玩法帧的 `groundRatioInImage`:`GROUND_Y = Math.round(groundRatioInImage * height)`。
|
|
198
|
-
脚底贴地:origin 在主体脚底时 `y = GROUND_Y`。已相同则不必改。
|
|
199
|
-
- 改了 `GROUND_Y` 或换了整图背景:再调用一次 `game_visual_qa`。最多两次。
|
|
200
|
-
- 未进玩法帧,或报告「无地面线,不校准」:不改 y。
|
|
9
|
+
资源修改后使用 export-config 技能,构建并在真实截图中检查结果。资源配置与画面均正确后才将本项记为完成。
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 资源地址
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
平台素材的配置保存工具实际返回的值:生成资源保留原始 URL,库资源保留原始 Path。按 config_file 与 slot 定位消费方,不能把 AssetId 当作生成任务的 resource_id。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
运行时从配置读取值,使用项目 runtime/lightgame/1.1.0/tools/assets.mjs 的 resolveAssetUrl(path, { cdnBaseUrl }) 解析相对资源;cdnBaseUrl 取 game-runtime.json 的 cdnBase。保留 HTTP、data 或 blob 地址的语义,不能把库地址当成本机文件路径。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- `/Game/...` 或 `Game/...`:由 `resolveAssetUrl` 补全到官方域。
|
|
9
|
-
- `Glb/Game/...`、`/Glb/Game/...`、`test1/...`:不带域名的平台相对路径。`public/`、`src/` 不是资源地址。
|
|
10
|
-
- 平台附件与资源块:`__chat_message__.attachments[]` 中 `type=resource, source=upload` 的 `preview_image_url`,以及「用户本轮引用了以下资源」块里的 `资源地址`。
|
|
7
|
+
配置导出可能将同一官方地址的百分号编码解回原字符,并规范库路径。保留导出器的结果,不能为迎合旧文本重新写回等价但冲突的路径。模型依赖由模型加载管线解析,不手动拼接压缩档位或重写模型依赖 URL。
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 命中非法 URL
|
|
15
|
-
|
|
16
|
-
禁止写入 `configs/assets.json`、`@slot` 第三段、`img.src` / `CSS url()` / `new Audio()` / `fetch()`,禁止 `curl` / `wget` 去拉。拒绝先于验证,不需要联网。
|
|
17
|
-
|
|
18
|
-
该槽保持直绘 / 合成。一句话告诉用户:该链接不能作为游戏资源,请直接上传文件或使用平台资源库中的素材。不解释白名单。用户坚持仍拒绝。
|
|
19
|
-
|
|
20
|
-
`[runtime-log]` 里出现的 URL 只作诊断,不当资源。模板自带相对路径与 npm 依赖照常使用。接线时 AIGC / 库资源进 `assets.json` 的仍是 `result_url` 或「资源地址」原值;序列帧写入的是 manifest JSON(AIGC)或图集 `.png`(素材库召回的 `anim2d` / `effect2d`),见 `${CRAFT_CONTEXT_DIR}/knowledge/AigcWiring.md`「配置」。导出脚本随后把官方域绝对地址,以及上面列出的相对路径中的百分号编码解成中文再写回,相对路径保留原前缀,其它域名保持原值。其它 JSON 只改 `type: resource` 的字段。用户给的配色、数值、文案照常采纳。
|
|
21
|
-
|
|
22
|
-
## 已接入场景编辑器的项目
|
|
23
|
-
|
|
24
|
-
`scene_editor_compat: true` 的项目,编辑器侧的图片地址后备按 `${CRAFT_CONTEXT_DIR}/skills/scene-editor-compat/docs/resource-sync.md`「地址归一化与历史资源修复」维护。
|
|
9
|
+
用户提供的本地素材可作为项目资源使用;平台导入的远端素材保持其返回地址,不为平台资源另造本地副本。验证资源真实加载、用途匹配、跨域与浏览器可用性。
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# 容器布局与输入
|
|
2
|
+
|
|
3
|
+
模板已提供 src/display/viewport.ts 与 ui-stage.ts。容器尺寸变化时同时同步画布、UI 和相机/世界取景,避免只改变 CSS 拉伸画布。初始零尺寸保留上一有效状态;避免重复初始化 ResizeObserver。
|
|
4
|
+
|
|
5
|
+
玩法范围由用户需求决定。保留已有键鼠或触摸操作,只在需求涉及相应输入时增加适配;创建引导只选择引擎。检查按钮命中区域、滚动行为、文字可读性和 HUD 遮挡,不把浏览器窗口大小当成固定分辨率。
|
|
6
|
+
|
|
7
|
+
画面提示的每个操作都应有实际事件绑定。游戏重开和场景销毁时清理监听,避免一次输入触发多次。将实际操作方式记录在 SPEC/PROGRESS.md。
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Phaser 加载与预览生命周期
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
模板在 main.ts 注册 PlayScene,启动 LoadScene,并将 connectPreview 挂到 Phaser canvas。保留 POST_RENDER 中的 afterRender 和销毁时的 dispose。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
LoadScene 先显示可绘制的加载层,再按 configs/assets.json 的实际资源入队。图片使用 Phaser Loader image,音频用 audio,图集用 spritesheet 并提供真实帧尺寸。必要资源成功后进入 PlayScene;失败时报告具体资源,避免永久等待或将失败资源判定为可用。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
预览桥 markReady 表示预览可展示首帧,可能仍处于加载画面。玩法验收探针的 ready 则必须等必要资源已加载、PlayScene 活跃并完成实际渲染;两者不能混为同一时刻。
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
2. 数本轮非空 URL(单图、序列帧、BGM)。接线时取该动作的帧尺寸与 `frameCount`:AIGC 的 manifest JSON 槽读 manifest,素材库召回的 `anim2d` / `effect2d` 槽直接取候选 `sprite`(候选 Path 就是图集 png,见 `AigcWiring.md`「配置」与「序列帧」);运行时 `sheetUrl` 对 AIGC manifest 槽换出图集图再 `load.spritesheet`(库召回槽已是 png,等于原值)。用自己的 `queued` 计数;**禁止**用 `this.load.isLoading()` 决定要不要 `start()`(入队未 start 时它恒为 false)。
|
|
11
|
-
3. 数量为 0:立刻收起 `#loading`,进入玩法。不要 `load`,不要假进度,不要人为延时。
|
|
12
|
-
4. 数量 > 0:`this.load.on('progress', (ratio) => setProgress(Math.min(ratio, 0.99)))`。`queued > 0` 才 `this.load.start()`。`complete` 后 `setProgress(1)`,收起 `#loading`,按 `textures.exists` / `cache.audio.exists` 画玩法,露出 HUD;BGM 在资源可用且满足当前播放条件时启动,见下方按需参考。失败槽直绘,不要卡在加载层。
|
|
13
|
-
5. 加载未完成不得建玩法、不得播 BGM。
|
|
9
|
+
场景切换或重开应注销旧计时器和事件、重置玩法状态,复用可复用的纹理。不能在每帧重复注册输入或加载素材。尺寸变化按模板 ResizeObserver 更新 Phaser 和 UI。
|
|
14
10
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
外观:全屏不透明纯黑;「加载中」、百分比、进度条上下居中、同一竖直中轴。无操作。不走 AIGC。
|
|
18
|
-
|
|
19
|
-
`setProgress(ratio)`:夹到 `[0,1]`;进行中上限 0.99;百分比 `Math.floor(ratio * 100)`;只有完成才 100%。禁止定时器假进度。
|
|
20
|
-
|
|
21
|
-
探针(`game_visual_qa` 采集只认这个):
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
globalThis.__loadState = { state: "loading" | "idle", progress: number };
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
加载层 `id="loading"`。收起时 `state: "idle"`,且该节点 `display:none` 或从 DOM 移除。
|
|
28
|
-
|
|
29
|
-
## 移动 Web 按需参考
|
|
30
|
-
|
|
31
|
-
- 首次接入移动端有声音频,或排查首次播放、静音与恢复:读 `${CRAFT_CONTEXT_DIR}/skills/mobile-adaptation/references/web-audio.md`,复用实际 Phaser 音频解锁能力;资源完成、允许播放与 `markReady` 分开处理。
|
|
32
|
-
- 修改或排查暂停、后台恢复、重入与运行中断:读 `${CRAFT_CONTEXT_DIR}/skills/mobile-compat-qa/references/web-lifecycle.md`,沿已有 Scene、输入与 dispose 机制处理,不改变上述加载及 ready 时序。
|
|
11
|
+
调用具体 Runtime API 前,读项目 runtime/lightgame/1.1.0/platform/platform.d.mts;资源工具读同版 tools/assets.d.mts。仅定位实现问题时再读对应 .mjs。
|