zhuda-laya-engine 0.0.0-stage → 2.1.0

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.
Files changed (740) hide show
  1. package/AGENTS.md +236 -0
  2. package/CHANGELOG.md +431 -0
  3. package/LICENSE +41 -0
  4. package/README.md +247 -2
  5. package/assets/branding/layaair-tribute-mark.svg +5 -0
  6. package/assets/branding/zhuda-layaair-mark.svg +34 -0
  7. package/assets/prefabs/CoinFountainVfx.lh +197 -0
  8. package/assets/prefabs/ConfirmActionButton.lh +87 -0
  9. package/assets/prefabs/LevelUpAuraVfx.lh +136 -0
  10. package/assets/prefabs/MineExplosionParticle.lh +352 -0
  11. package/assets/prefabs/NineSliceDialogFrame.lh +171 -0
  12. package/assets/prefabs/SwordSlashTrailVfx.lh +117 -0
  13. package/assets/prefabs/TacticalHudBar.lh +134 -0
  14. package/assets/prefabs/TelemetryDashboard.lh +87 -0
  15. package/assets/prefabs/UnityCrystalGuardian.lh +144 -0
  16. package/assets/prefabs/ZhudaSpine42Mascot.lh +183 -0
  17. package/assets/scenes/MinesweeperStage.ls +1180 -0
  18. package/dist/asset-calibration-report.json +969 -0
  19. package/dist/build-manifest.json +254 -0
  20. package/dist/sdk/zhuda-laya-csg.cjs +710 -0
  21. package/dist/sdk/zhuda-laya-csg.esm.js +683 -0
  22. package/dist/sdk/zhuda-laya-csg.min.cjs +7 -0
  23. package/dist/sdk/zhuda-laya-csg.min.esm.js +7 -0
  24. package/dist/sdk/zhuda-laya-demo.cjs +5990 -0
  25. package/dist/sdk/zhuda-laya-demo.esm.js +5956 -0
  26. package/dist/sdk/zhuda-laya-demo.min.cjs +12 -0
  27. package/dist/sdk/zhuda-laya-demo.min.esm.js +12 -0
  28. package/dist/sdk/zhuda-laya-engine.cjs +52628 -0
  29. package/dist/sdk/zhuda-laya-engine.esm.js +51848 -0
  30. package/dist/sdk/zhuda-laya-engine.min.cjs +2710 -0
  31. package/dist/sdk/zhuda-laya-engine.min.esm.js +2710 -0
  32. package/docs/3d-acceptance.md +47 -0
  33. package/docs/3d-integration.md +190 -0
  34. package/docs/README.md +112 -0
  35. package/docs/SUPPORT.md +21 -0
  36. package/docs/agent-development.md +219 -0
  37. package/docs/animation-control.md +213 -0
  38. package/docs/asset-loading.md +97 -0
  39. package/docs/assets/reference-games.jpg +0 -0
  40. package/docs/assets/solana-qr.png +0 -0
  41. package/docs/assets/sponsor-pass.svg +32 -0
  42. package/docs/audio.md +319 -0
  43. package/docs/backend-delivery.md +218 -0
  44. package/docs/basis-textures.md +94 -0
  45. package/docs/browser-sdk-releases.json +204 -0
  46. package/docs/browser-sdk.md +187 -0
  47. package/docs/cinematics.md +267 -0
  48. package/docs/cloth.md +280 -0
  49. package/docs/combat-runtime.md +82 -0
  50. package/docs/consumer-route.md +169 -0
  51. package/docs/consumer-tooling.md +518 -0
  52. package/docs/crowd-runtime.md +195 -0
  53. package/docs/developer-tooling.md +191 -0
  54. package/docs/film-scenes.md +1504 -0
  55. package/docs/filmic-rendering.md +743 -0
  56. package/docs/flythrough.md +89 -0
  57. package/docs/gpu-depth.md +207 -0
  58. package/docs/grass.md +127 -0
  59. package/docs/hdr-environment.md +76 -0
  60. package/docs/instanced-meshes.md +137 -0
  61. package/docs/layout-and-media.md +37 -0
  62. package/docs/layout-wireframe.md +80 -0
  63. package/docs/lighting-depth.md +185 -0
  64. package/docs/minigame-packaging.md +79 -0
  65. package/docs/model-editor.md +66 -0
  66. package/docs/model-lod.md +122 -0
  67. package/docs/model-pipeline.md +74 -0
  68. package/docs/model-showcase.md +365 -0
  69. package/docs/overview.md +183 -0
  70. package/docs/plans/README.md +133 -0
  71. package/docs/plans/TASK-TEMPLATE.md +64 -0
  72. package/docs/plans/TASK-spine38-isolated-topology-20261106.md +89 -0
  73. package/docs/plans/TEMPLATE.md +44 -0
  74. package/docs/plans/VERIFICATION-TEMPLATE.md +45 -0
  75. package/docs/plans/asset-packaging.md +140 -0
  76. package/docs/plans/cinematic-production/task.md +97 -0
  77. package/docs/plans/cinematic-production/verification.md +49 -0
  78. package/docs/plans/consumer-delivery-followups.md +129 -0
  79. package/docs/plans/desktop-and-agent-gates/hardening-task.md +85 -0
  80. package/docs/plans/desktop-and-agent-gates/hardening-verification.md +109 -0
  81. package/docs/plans/desktop-and-agent-gates/task.md +94 -0
  82. package/docs/plans/desktop-and-agent-gates/verification.md +60 -0
  83. package/docs/plans/prefab-toolchain.md +73 -0
  84. package/docs/plans/preview-runtime-hardening.md +68 -0
  85. package/docs/platform-adapters.md +113 -0
  86. package/docs/post-quality.md +242 -0
  87. package/docs/prefab-editor.md +194 -0
  88. package/docs/prefab-library.md +94 -0
  89. package/docs/prefab-workflow.md +75 -0
  90. package/docs/procedural-assets.md +463 -0
  91. package/docs/procedural-prefabs.md +133 -0
  92. package/docs/quality-route.md +386 -0
  93. package/docs/release-policy.md +79 -0
  94. package/docs/routes/README.md +180 -0
  95. package/docs/routes/TEMPLATE.md +54 -0
  96. package/docs/routes/action-adventure-3d-minigame.md +238 -0
  97. package/docs/routes/apocalypse-survival-3d.md +219 -0
  98. package/docs/routes/aqua-freeze-2d-minigame.md +183 -0
  99. package/docs/routes/astral-minimal-film-look.md +141 -0
  100. package/docs/routes/cascade-slot.md +93 -0
  101. package/docs/routes/clip-free-garments.md +229 -0
  102. package/docs/routes/drop-merge-2d-minigame.md +200 -0
  103. package/docs/routes/dungeon-line-slot.md +87 -0
  104. package/docs/routes/film-as-data.md +131 -0
  105. package/docs/routes/film-fight-that-lands.md +198 -0
  106. package/docs/routes/film-ink-lines.md +120 -0
  107. package/docs/routes/floating-island.md +229 -0
  108. package/docs/routes/game-2d.md +168 -0
  109. package/docs/routes/game-rules-first.md +89 -0
  110. package/docs/routes/game-to-prefabs.md +249 -0
  111. package/docs/routes/go-game-server.md +95 -0
  112. package/docs/routes/good-looking-3d-scene.md +99 -0
  113. package/docs/routes/high-quality-character.md +263 -0
  114. package/docs/routes/humanoid-from-shapes.md +97 -0
  115. package/docs/routes/hunting-action-3d.md +76 -0
  116. package/docs/routes/idle-gacha-2d.md +67 -0
  117. package/docs/routes/interactive-film-viewer.md +141 -0
  118. package/docs/routes/isometric-mystery-2d.md +217 -0
  119. package/docs/routes/key-art-to-animated-title.md +132 -0
  120. package/docs/routes/laya-ide-project-cli-web.md +125 -0
  121. package/docs/routes/layered-cloth-on-body.md +240 -0
  122. package/docs/routes/low-poly-character-from-shapes.md +475 -0
  123. package/docs/routes/match-three-2d.md +64 -0
  124. package/docs/routes/merge-2d.md +59 -0
  125. package/docs/routes/mini-game-build.md +80 -0
  126. package/docs/routes/mobile-always-landscape.md +149 -0
  127. package/docs/routes/mobile-web-fullscreen.md +255 -0
  128. package/docs/routes/model-from-dcc.md +106 -0
  129. package/docs/routes/new-game-project.md +100 -0
  130. package/docs/routes/onboarding-tutorial-2d.md +54 -0
  131. package/docs/routes/online-lockstep-match.md +473 -0
  132. package/docs/routes/outdoor-landscape.md +134 -0
  133. package/docs/routes/outfit-swap-3d.md +144 -0
  134. package/docs/routes/papercraft-diorama.md +186 -0
  135. package/docs/routes/platform-fighter-2d.md +235 -0
  136. package/docs/routes/platformer-2d.md +69 -0
  137. package/docs/routes/pole-rescue-arcade-3d.md +198 -0
  138. package/docs/routes/pose-atlas-motion.md +188 -0
  139. package/docs/routes/prototype-to-center.md +162 -0
  140. package/docs/routes/raft-brawl-3d-minigame.md +205 -0
  141. package/docs/routes/rhythm-2d.md +82 -0
  142. package/docs/routes/rigged-phone-character.md +120 -0
  143. package/docs/routes/screen-fit-game-box.md +127 -0
  144. package/docs/routes/shared-islands.md +195 -0
  145. package/docs/routes/side-view-duel.md +266 -0
  146. package/docs/routes/single-html-page.md +83 -0
  147. package/docs/routes/smooth-character-motion.md +162 -0
  148. package/docs/routes/spine-character.md +175 -0
  149. package/docs/routes/story-counting-2d.md +219 -0
  150. package/docs/routes/survivors-2d.md +60 -0
  151. package/docs/routes/third-person-town-3d.md +240 -0
  152. package/docs/routes/tower-defence-3d.md +67 -0
  153. package/docs/routes/ui-test-by-probe.md +219 -0
  154. package/docs/routes/underwater.md +138 -0
  155. package/docs/routes/visual-content-prefab.md +101 -0
  156. package/docs/runtime-hardening.md +108 -0
  157. package/docs/shader-warm-up.md +125 -0
  158. package/docs/spring-bones.md +79 -0
  159. package/docs/stylized-shading.md +171 -0
  160. package/docs/terrain-shader.md +130 -0
  161. package/docs/vrm.md +128 -0
  162. package/docs/walking.md +97 -0
  163. package/docs/webgpu.md +225 -0
  164. package/docs/white-label-themes.md +212 -0
  165. package/docs/zh-CN/README.md +130 -0
  166. package/examples/browser-sdk/2d-webgpu.html +46 -0
  167. package/examples/browser-sdk/2d.html +46 -0
  168. package/examples/browser-sdk/3d-gltf-webgpu.html +50 -0
  169. package/examples/browser-sdk/3d-gltf.html +50 -0
  170. package/examples/browser-sdk/3d-webgpu.html +46 -0
  171. package/examples/browser-sdk/3d.html +46 -0
  172. package/examples/cinematic-capture/Main.ts +294 -0
  173. package/examples/cinematic-capture/README.md +27 -0
  174. package/examples/model-inspector/README.md +15 -0
  175. package/examples/model-inspector/asset.gltf +158 -0
  176. package/examples/windows-webgpu/README.md +57 -0
  177. package/examples/windows-webgpu/bundle.mjs +122 -0
  178. package/examples/windows-webgpu/main.mjs +302 -0
  179. package/examples/windows-webgpu/package-lock.json +2353 -0
  180. package/examples/windows-webgpu/package.json +40 -0
  181. package/examples/windows-webgpu/squirrel.mjs +66 -0
  182. package/package.json +259 -4
  183. package/packages/ci-gate/export-film.mjs +347 -0
  184. package/packages/ci-gate/verify-sequence.mjs +285 -0
  185. package/packages/compiler/agent-contract.mjs +545 -0
  186. package/packages/compiler/ast-scanner.mjs +254 -0
  187. package/packages/compiler/backend-loader.mjs +62 -0
  188. package/packages/compiler/branding-assets.mjs +32 -0
  189. package/packages/compiler/branding.mjs +324 -0
  190. package/packages/compiler/browser-auto-example.mjs +31 -0
  191. package/packages/compiler/browser-model-example.mjs +53 -0
  192. package/packages/compiler/browser-process.mjs +344 -0
  193. package/packages/compiler/browser-sdk-example.mjs +50 -0
  194. package/packages/compiler/browser-sdk.mjs +342 -0
  195. package/packages/compiler/chrome-host.mjs +196 -0
  196. package/packages/compiler/cli.mjs +22 -0
  197. package/packages/compiler/compiler-runtime.mjs +41 -0
  198. package/packages/compiler/consumer-accept.mjs +89 -0
  199. package/packages/compiler/consumer-build.mjs +641 -0
  200. package/packages/compiler/consumer-guards.mjs +422 -0
  201. package/packages/compiler/consumer-publication.mjs +56 -0
  202. package/packages/compiler/consumer-scripts.mjs +134 -0
  203. package/packages/compiler/consumer-starter-2d.mjs +54 -0
  204. package/packages/compiler/consumer-starter-minigame.mjs +30 -0
  205. package/packages/compiler/editor-http.mjs +210 -0
  206. package/packages/compiler/editor-request.ts +12 -0
  207. package/packages/compiler/film-host-client.ts +249 -0
  208. package/packages/compiler/flythrough-file.mjs +144 -0
  209. package/packages/compiler/json-locate.mjs +85 -0
  210. package/packages/compiler/layout-contract.mjs +472 -0
  211. package/packages/compiler/minigame-bootstrap.mjs +24 -0
  212. package/packages/compiler/minigame-bridge.mjs +66 -0
  213. package/packages/compiler/minigame-guards.mjs +107 -0
  214. package/packages/compiler/minigame-toolchain.mjs +241 -0
  215. package/packages/compiler/model-crown.mjs +173 -0
  216. package/packages/compiler/model-editor-client.ts +809 -0
  217. package/packages/compiler/model-editor.mjs +242 -0
  218. package/packages/compiler/model-lod.mjs +547 -0
  219. package/packages/compiler/prefab-check.mjs +288 -0
  220. package/packages/compiler/prefab-checks.mjs +74 -0
  221. package/packages/compiler/prefab-dependencies.mjs +102 -0
  222. package/packages/compiler/prefab-editor-client.ts +950 -0
  223. package/packages/compiler/prefab-editor-preview.ts +89 -0
  224. package/packages/compiler/prefab-editor-server.mjs +585 -0
  225. package/packages/compiler/prefab-editor.mjs +43 -0
  226. package/packages/compiler/prefab-environment.mjs +107 -0
  227. package/packages/compiler/prefab-lifecycle.mjs +60 -0
  228. package/packages/compiler/prefab-preview.mjs +159 -0
  229. package/packages/compiler/prefab-watch.mjs +459 -0
  230. package/packages/compiler/runtime3d-types.mjs +91 -0
  231. package/packages/compiler/stage-probe.mjs +557 -0
  232. package/packages/compiler/visual-asset-audit.mjs +609 -0
  233. package/packages/compiler/visual-contract-audit.mjs +173 -0
  234. package/packages/compiler/webgpu-loader.mjs +153 -0
  235. package/packages/compiler/zhuda-build.mjs +714 -0
  236. package/packages/compiler/zhuda-doctor.mjs +186 -0
  237. package/packages/compiler/zhuda-init.mjs +353 -0
  238. package/packages/compiler/zhuda-layout.mjs +163 -0
  239. package/packages/compiler/zhuda-minigame.mjs +636 -0
  240. package/packages/core/BenchmarkEngine.ts +2 -0
  241. package/packages/core/BitmapFontContract.ts +159 -0
  242. package/packages/core/DeclarativeSDK.ts +686 -0
  243. package/packages/core/IframeSoundAdapter.ts +1824 -0
  244. package/packages/core/NoSleepAdapter.ts +302 -0
  245. package/packages/core/PixelCalibrationEngine.ts +602 -0
  246. package/packages/core/Prefab.ts +314 -0
  247. package/packages/core/RealmGuards.ts +111 -0
  248. package/packages/core/ResponsiveLayout.ts +149 -0
  249. package/packages/core/RuntimeGuards.ts +261 -0
  250. package/packages/core/SpineCharacter.ts +243 -0
  251. package/packages/core/SpineVisualContract.ts +238 -0
  252. package/packages/core/SplashSignal.ts +72 -0
  253. package/packages/core/StaticAssetPipeline.ts +3 -0
  254. package/packages/core/TopologyGraph.ts +693 -0
  255. package/packages/core/UnityBridgePipeline.ts +2 -0
  256. package/packages/core/VideoSurface.ts +75 -0
  257. package/packages/core/ViewportMatrixEngine.ts +237 -0
  258. package/packages/core/VisualFocusContract.ts +76 -0
  259. package/packages/core/VisualMigrationPipeline.ts +245 -0
  260. package/packages/core/WebViewSurface.ts +116 -0
  261. package/packages/core/audio/OfflineMix.ts +186 -0
  262. package/packages/core/audio/Spatial.ts +312 -0
  263. package/packages/core/audio/StreamVoice.ts +161 -0
  264. package/packages/core/csg/Bsp.ts +310 -0
  265. package/packages/core/csg/index.ts +589 -0
  266. package/packages/core/effects/Effect2D.ts +286 -0
  267. package/packages/core/effects/Effect3D.ts +213 -0
  268. package/packages/core/effects/EffectBudget.ts +695 -0
  269. package/packages/core/effects/EffectDirector.ts +254 -0
  270. package/packages/core/effects/EffectPresets.ts +843 -0
  271. package/packages/core/effects/EffectPresets2D.ts +1011 -0
  272. package/packages/core/effects/EffectSprites.ts +143 -0
  273. package/packages/core/effects/ParticleEventLink.ts +53 -0
  274. package/packages/core/effects/README.md +108 -0
  275. package/packages/core/effects/VfxMaterial.ts +253 -0
  276. package/packages/core/film/BakeKey.ts +21 -0
  277. package/packages/core/film/ColorValues.ts +44 -0
  278. package/packages/core/film/FilmLint.ts +353 -0
  279. package/packages/core/film/FilmPrefab.ts +82 -0
  280. package/packages/core/film/FilmReview.ts +84 -0
  281. package/packages/core/film/FilmScene.ts +3442 -0
  282. package/packages/core/film/FilmStage.ts +2148 -0
  283. package/packages/core/film/Flythrough.ts +169 -0
  284. package/packages/core/film/FlythroughReport.ts +326 -0
  285. package/packages/core/film/FrameMetrics.ts +167 -0
  286. package/packages/core/film/LiveLook.ts +242 -0
  287. package/packages/core/film/LookQuality.ts +94 -0
  288. package/packages/core/film/Projection.ts +74 -0
  289. package/packages/core/film/SceneLook.ts +363 -0
  290. package/packages/core/film/index.ts +12 -0
  291. package/packages/core/index.ts +48 -0
  292. package/packages/core/particles/EffectEnvelope.ts +52 -0
  293. package/packages/core/particles/LayaParticleRenderer.ts +182 -0
  294. package/packages/core/particles/LayaParticleRenderer3D.ts +218 -0
  295. package/packages/core/particles/ParticleExtras.ts +163 -0
  296. package/packages/core/particles/ParticleMesh3D.ts +156 -0
  297. package/packages/core/particles/ParticleSystem.ts +324 -0
  298. package/packages/core/particles/ParticleSystem3D.ts +411 -0
  299. package/packages/core/particles/ParticleTypes.ts +230 -0
  300. package/packages/core/particles/ParticleTypes3D.ts +115 -0
  301. package/packages/core/particles/README.md +181 -0
  302. package/packages/core/particles/RibbonPath3D.ts +234 -0
  303. package/packages/core/particles/RibbonTrail.ts +145 -0
  304. package/packages/core/particles/RibbonTrail3D.ts +166 -0
  305. package/packages/core/particles/index.ts +12 -0
  306. package/packages/core/prefabs/PrefabLibrary.ts +692 -0
  307. package/packages/core/prefabs/PrefabTree3D.ts +291 -0
  308. package/packages/core/prefabs/index.ts +10 -0
  309. package/packages/core/procedural/Geometry.ts +1871 -0
  310. package/packages/core/procedural/Hand.ts +1510 -0
  311. package/packages/core/procedural/Isosurface.ts +1035 -0
  312. package/packages/core/procedural/ModuleHarness.ts +180 -0
  313. package/packages/core/procedural/Noise.ts +123 -0
  314. package/packages/core/procedural/PhotoMaterial.ts +283 -0
  315. package/packages/core/procedural/ProceduralAssetProvider.ts +105 -0
  316. package/packages/core/procedural/ProceduralMaterial.ts +184 -0
  317. package/packages/core/procedural/PropFactory.ts +307 -0
  318. package/packages/core/procedural/Random.ts +70 -0
  319. package/packages/core/procedural/SynthAudio.ts +221 -0
  320. package/packages/core/procedural/TerrainMesh.ts +207 -0
  321. package/packages/core/procedural/TextureRecipe.ts +464 -0
  322. package/packages/core/procedural/TriplanarMaterial.ts +169 -0
  323. package/packages/core/procedural/Variation.ts +94 -0
  324. package/packages/core/procedural/index.ts +15 -0
  325. package/packages/core/runtime3d/ActionFrames.ts +245 -0
  326. package/packages/core/runtime3d/AnimationBlend.ts +282 -0
  327. package/packages/core/runtime3d/AnimationBlendMath.ts +98 -0
  328. package/packages/core/runtime3d/AssetProvider.ts +775 -0
  329. package/packages/core/runtime3d/AssetShowcase.ts +190 -0
  330. package/packages/core/runtime3d/Assets.ts +801 -0
  331. package/packages/core/runtime3d/AsyncDeadline.ts +53 -0
  332. package/packages/core/runtime3d/AsyncOperation.ts +39 -0
  333. package/packages/core/runtime3d/BackendChoice.ts +359 -0
  334. package/packages/core/runtime3d/BakedCrowd.ts +575 -0
  335. package/packages/core/runtime3d/BasisTexture.ts +657 -0
  336. package/packages/core/runtime3d/CameraCollision.ts +69 -0
  337. package/packages/core/runtime3d/CameraEffects.ts +752 -0
  338. package/packages/core/runtime3d/CameraRig.ts +70 -0
  339. package/packages/core/runtime3d/CharacterController.ts +272 -0
  340. package/packages/core/runtime3d/CinematicCapture.ts +457 -0
  341. package/packages/core/runtime3d/Clocks.ts +724 -0
  342. package/packages/core/runtime3d/Cloth.ts +183 -0
  343. package/packages/core/runtime3d/Clouds.ts +462 -0
  344. package/packages/core/runtime3d/ColorLut.ts +351 -0
  345. package/packages/core/runtime3d/CombatQueries.ts +240 -0
  346. package/packages/core/runtime3d/ComputePass.ts +582 -0
  347. package/packages/core/runtime3d/CrowdPresentation.ts +368 -0
  348. package/packages/core/runtime3d/DebugDraw.ts +567 -0
  349. package/packages/core/runtime3d/DebugStats.ts +35 -0
  350. package/packages/core/runtime3d/Decals.ts +309 -0
  351. package/packages/core/runtime3d/DensityVolume.ts +238 -0
  352. package/packages/core/runtime3d/DistanceBricks.ts +349 -0
  353. package/packages/core/runtime3d/Dither.ts +199 -0
  354. package/packages/core/runtime3d/DrawWarmUp.ts +217 -0
  355. package/packages/core/runtime3d/EdgeSmoothing.ts +108 -0
  356. package/packages/core/runtime3d/EnvironmentProbe.ts +656 -0
  357. package/packages/core/runtime3d/Filmic.ts +973 -0
  358. package/packages/core/runtime3d/Foliage.ts +367 -0
  359. package/packages/core/runtime3d/GltfIntake.ts +914 -0
  360. package/packages/core/runtime3d/GltfSecondUv.ts +153 -0
  361. package/packages/core/runtime3d/GraphicsGuard.ts +171 -0
  362. package/packages/core/runtime3d/Grass.ts +1080 -0
  363. package/packages/core/runtime3d/GroundTruthAO.ts +360 -0
  364. package/packages/core/runtime3d/HalfFloat.ts +44 -0
  365. package/packages/core/runtime3d/HdrEnvironment.ts +588 -0
  366. package/packages/core/runtime3d/Ik.ts +392 -0
  367. package/packages/core/runtime3d/InputBuffer.ts +165 -0
  368. package/packages/core/runtime3d/InstancedMesh.ts +460 -0
  369. package/packages/core/runtime3d/Laya342Adapters.ts +1095 -0
  370. package/packages/core/runtime3d/Laya342GltfAdapter.ts +751 -0
  371. package/packages/core/runtime3d/LensFinish.ts +153 -0
  372. package/packages/core/runtime3d/LensFlare.ts +490 -0
  373. package/packages/core/runtime3d/LightFog.ts +1008 -0
  374. package/packages/core/runtime3d/LightingDepth.ts +544 -0
  375. package/packages/core/runtime3d/Lightmap.ts +238 -0
  376. package/packages/core/runtime3d/Math3D.ts +84 -0
  377. package/packages/core/runtime3d/MeshQuery.ts +547 -0
  378. package/packages/core/runtime3d/MeshoptModelDecoder.ts +354 -0
  379. package/packages/core/runtime3d/MiniGameSplash.ts +70 -0
  380. package/packages/core/runtime3d/ModelAnimationSampler.ts +97 -0
  381. package/packages/core/runtime3d/ModelCompatibility.ts +890 -0
  382. package/packages/core/runtime3d/ModelDecoder.ts +294 -0
  383. package/packages/core/runtime3d/ModelInspector.ts +226 -0
  384. package/packages/core/runtime3d/ModelLod.ts +163 -0
  385. package/packages/core/runtime3d/ModelPlacements.ts +426 -0
  386. package/packages/core/runtime3d/ObjectMotion.ts +217 -0
  387. package/packages/core/runtime3d/PhysicalCamera.ts +190 -0
  388. package/packages/core/runtime3d/PointShadow.ts +500 -0
  389. package/packages/core/runtime3d/PointShadowSchedule.ts +201 -0
  390. package/packages/core/runtime3d/Pool.ts +120 -0
  391. package/packages/core/runtime3d/ProbeVolume.ts +695 -0
  392. package/packages/core/runtime3d/QualityGovernor.ts +385 -0
  393. package/packages/core/runtime3d/QualityMemory.ts +200 -0
  394. package/packages/core/runtime3d/RenderScale.ts +356 -0
  395. package/packages/core/runtime3d/RenderSpaces.ts +105 -0
  396. package/packages/core/runtime3d/Renderer.ts +377 -0
  397. package/packages/core/runtime3d/ResultPlayback.ts +239 -0
  398. package/packages/core/runtime3d/Runtime.ts +507 -0
  399. package/packages/core/runtime3d/RuntimeDriver.ts +127 -0
  400. package/packages/core/runtime3d/SceneLifecycle.ts +211 -0
  401. package/packages/core/runtime3d/SceneMutation.ts +107 -0
  402. package/packages/core/runtime3d/SceneQueries.ts +191 -0
  403. package/packages/core/runtime3d/ScreenReflections.ts +595 -0
  404. package/packages/core/runtime3d/SelectionOutline.ts +389 -0
  405. package/packages/core/runtime3d/ShaderErrors.ts +104 -0
  406. package/packages/core/runtime3d/ShaderRegistry.ts +34 -0
  407. package/packages/core/runtime3d/ShaderWarmUp.ts +473 -0
  408. package/packages/core/runtime3d/ShadowUpdates.ts +287 -0
  409. package/packages/core/runtime3d/SkinBinding.ts +235 -0
  410. package/packages/core/runtime3d/Smaa.ts +386 -0
  411. package/packages/core/runtime3d/SmaaTables.ts +244 -0
  412. package/packages/core/runtime3d/SpringBones.ts +184 -0
  413. package/packages/core/runtime3d/SurfaceBuffer.ts +76 -0
  414. package/packages/core/runtime3d/Surfaces.ts +1105 -0
  415. package/packages/core/runtime3d/Themes.ts +344 -0
  416. package/packages/core/runtime3d/Timeline.ts +362 -0
  417. package/packages/core/runtime3d/ToneCurves.ts +292 -0
  418. package/packages/core/runtime3d/TransformGizmo.ts +539 -0
  419. package/packages/core/runtime3d/TriangleMask.ts +250 -0
  420. package/packages/core/runtime3d/Underwater.ts +778 -0
  421. package/packages/core/runtime3d/Utf8.ts +87 -0
  422. package/packages/core/runtime3d/Vrm.ts +773 -0
  423. package/packages/core/runtime3d/VrmDocument.ts +1830 -0
  424. package/packages/core/runtime3d/WalkGrid.ts +471 -0
  425. package/packages/core/runtime3d/WebGPU342Adapters.ts +280 -0
  426. package/packages/core/runtime3d/index.ts +147 -0
  427. package/packages/core/shaders/Laya342ShaderTemplates.ts +6 -0
  428. package/packages/core/shaders/LitSurfaceMaterial.ts +1076 -0
  429. package/packages/core/shaders/LitSurfaceTemplates.ts +13 -0
  430. package/packages/core/shaders/ReflectiveSurface.ts +285 -0
  431. package/packages/core/shaders/ShaderMaterials.ts +387 -0
  432. package/packages/core/shaders/ToonMaterial.ts +559 -0
  433. package/packages/core/shaders/WaterRipples.ts +170 -0
  434. package/packages/core/shaders/WaterSurface.ts +480 -0
  435. package/packages/core/shaders/ZhudaCommon.ts +109 -0
  436. package/packages/core/shaders/index.ts +6 -0
  437. package/packages/core/simulation/Cloth.ts +1541 -0
  438. package/packages/core/simulation/ParticleCore.ts +498 -0
  439. package/packages/core/simulation/SpringBones.ts +553 -0
  440. package/packages/core/simulation/index.ts +3 -0
  441. package/packages/core/terrain/Heightfield.ts +385 -0
  442. package/packages/core/terrain/Terrain2D.ts +324 -0
  443. package/packages/core/terrain/Terrain3D.ts +452 -0
  444. package/packages/core/terrain/TerrainShell.ts +94 -0
  445. package/packages/core/terrain/index.ts +3 -0
  446. package/packages/demo/BenchmarkEngine.ts +184 -0
  447. package/packages/demo/PixelCalibrationEngine.ts +36 -0
  448. package/packages/demo/ProceduralStarter.ts +312 -0
  449. package/packages/demo/StaticAssetPipeline.ts +1631 -0
  450. package/packages/demo/UnityBridgePipeline.ts +485 -0
  451. package/packages/demo/index.ts +6 -0
  452. package/packages/mcp-server/arguments.mjs +81 -0
  453. package/packages/mcp-server/corpus.mjs +627 -0
  454. package/packages/mcp-server/film-host.mjs +627 -0
  455. package/packages/mcp-server/film-session.mjs +95 -0
  456. package/packages/mcp-server/film-tools.mjs +460 -0
  457. package/packages/mcp-server/index.mjs +931 -0
  458. package/packages/mcp-server/quality-route.mjs +332 -0
  459. package/packages/mcp-server/roots.mjs +72 -0
  460. package/packages/mcp-server/runtime.mjs +81 -0
  461. package/packages/types/BitmapFontContract.d.ts +19 -0
  462. package/packages/types/DeclarativeSDK.d.ts +137 -0
  463. package/packages/types/IframeSoundAdapter.d.ts +173 -0
  464. package/packages/types/NoSleepAdapter.d.ts +50 -0
  465. package/packages/types/PixelCalibrationEngine.d.ts +83 -0
  466. package/packages/types/Prefab.d.ts +11 -0
  467. package/packages/types/RealmGuards.d.ts +26 -0
  468. package/packages/types/ResponsiveLayout.d.ts +10 -0
  469. package/packages/types/RuntimeGuards.d.ts +55 -0
  470. package/packages/types/SpineCharacter.d.ts +94 -0
  471. package/packages/types/SpineVisualContract.d.ts +50 -0
  472. package/packages/types/SplashSignal.d.ts +27 -0
  473. package/packages/types/TopologyGraph.d.ts +76 -0
  474. package/packages/types/VideoSurface.d.ts +21 -0
  475. package/packages/types/ViewportMatrixEngine.d.ts +27 -0
  476. package/packages/types/VisualFocusContract.d.ts +32 -0
  477. package/packages/types/VisualMigrationPipeline.d.ts +53 -0
  478. package/packages/types/WebViewSurface.d.ts +26 -0
  479. package/packages/types/audio/OfflineMix.d.ts +10 -0
  480. package/packages/types/audio/Spatial.d.ts +63 -0
  481. package/packages/types/audio/StreamVoice.d.ts +31 -0
  482. package/packages/types/browser.d.ts +44 -0
  483. package/packages/types/csg/Bsp.d.ts +85 -0
  484. package/packages/types/csg/index.d.ts +81 -0
  485. package/packages/types/demo/BenchmarkEngine.d.ts +61 -0
  486. package/packages/types/demo/PixelCalibrationEngine.d.ts +13 -0
  487. package/packages/types/demo/ProceduralStarter.d.ts +11 -0
  488. package/packages/types/demo/StaticAssetPipeline.d.ts +87 -0
  489. package/packages/types/demo/UnityBridgePipeline.d.ts +49 -0
  490. package/packages/types/demo/index.d.ts +7 -0
  491. package/packages/types/editor-preview.d.ts +27 -0
  492. package/packages/types/effects/Effect2D.d.ts +65 -0
  493. package/packages/types/effects/Effect3D.d.ts +42 -0
  494. package/packages/types/effects/EffectBudget.d.ts +179 -0
  495. package/packages/types/effects/EffectDirector.d.ts +68 -0
  496. package/packages/types/effects/EffectPresets.d.ts +27 -0
  497. package/packages/types/effects/EffectPresets2D.d.ts +32 -0
  498. package/packages/types/effects/EffectSprites.d.ts +23 -0
  499. package/packages/types/effects/ParticleEventLink.d.ts +16 -0
  500. package/packages/types/effects/VfxMaterial.d.ts +52 -0
  501. package/packages/types/film/BakeKey.d.ts +9 -0
  502. package/packages/types/film/ColorValues.d.ts +25 -0
  503. package/packages/types/film/FilmLint.d.ts +40 -0
  504. package/packages/types/film/FilmPrefab.d.ts +22 -0
  505. package/packages/types/film/FilmReview.d.ts +27 -0
  506. package/packages/types/film/FilmScene.d.ts +1214 -0
  507. package/packages/types/film/FilmStage.d.ts +237 -0
  508. package/packages/types/film/Flythrough.d.ts +44 -0
  509. package/packages/types/film/FlythroughReport.d.ts +132 -0
  510. package/packages/types/film/FrameMetrics.d.ts +49 -0
  511. package/packages/types/film/LiveLook.d.ts +60 -0
  512. package/packages/types/film/LookQuality.d.ts +24 -0
  513. package/packages/types/film/Projection.d.ts +20 -0
  514. package/packages/types/film/SceneLook.d.ts +122 -0
  515. package/packages/types/film/index.d.ts +13 -0
  516. package/packages/types/index.d.ts +49 -0
  517. package/packages/types/particles/EffectEnvelope.d.ts +18 -0
  518. package/packages/types/particles/LayaParticleRenderer.d.ts +30 -0
  519. package/packages/types/particles/LayaParticleRenderer3D.d.ts +29 -0
  520. package/packages/types/particles/ParticleExtras.d.ts +50 -0
  521. package/packages/types/particles/ParticleMesh3D.d.ts +24 -0
  522. package/packages/types/particles/ParticleSystem.d.ts +52 -0
  523. package/packages/types/particles/ParticleSystem3D.d.ts +69 -0
  524. package/packages/types/particles/ParticleTypes.d.ts +89 -0
  525. package/packages/types/particles/ParticleTypes3D.d.ts +56 -0
  526. package/packages/types/particles/RibbonPath3D.d.ts +32 -0
  527. package/packages/types/particles/RibbonTrail.d.ts +38 -0
  528. package/packages/types/particles/RibbonTrail3D.d.ts +22 -0
  529. package/packages/types/particles/index.d.ts +13 -0
  530. package/packages/types/prefabs/PrefabLibrary.d.ts +176 -0
  531. package/packages/types/prefabs/PrefabTree3D.d.ts +59 -0
  532. package/packages/types/prefabs/index.d.ts +4 -0
  533. package/packages/types/procedural/Geometry.d.ts +252 -0
  534. package/packages/types/procedural/Hand.d.ts +150 -0
  535. package/packages/types/procedural/Isosurface.d.ts +181 -0
  536. package/packages/types/procedural/ModuleHarness.d.ts +90 -0
  537. package/packages/types/procedural/Noise.d.ts +15 -0
  538. package/packages/types/procedural/PhotoMaterial.d.ts +49 -0
  539. package/packages/types/procedural/ProceduralAssetProvider.d.ts +31 -0
  540. package/packages/types/procedural/ProceduralMaterial.d.ts +63 -0
  541. package/packages/types/procedural/PropFactory.d.ts +94 -0
  542. package/packages/types/procedural/Random.d.ts +26 -0
  543. package/packages/types/procedural/SynthAudio.d.ts +49 -0
  544. package/packages/types/procedural/TerrainMesh.d.ts +55 -0
  545. package/packages/types/procedural/TextureRecipe.d.ts +125 -0
  546. package/packages/types/procedural/TriplanarMaterial.d.ts +27 -0
  547. package/packages/types/procedural/Variation.d.ts +23 -0
  548. package/packages/types/procedural/index.d.ts +16 -0
  549. package/packages/types/runtime3d/ActionFrames.d.ts +62 -0
  550. package/packages/types/runtime3d/AnimationBlend.d.ts +57 -0
  551. package/packages/types/runtime3d/AnimationBlendMath.d.ts +27 -0
  552. package/packages/types/runtime3d/AssetProvider.d.ts +167 -0
  553. package/packages/types/runtime3d/AssetShowcase.d.ts +44 -0
  554. package/packages/types/runtime3d/Assets.d.ts +166 -0
  555. package/packages/types/runtime3d/AsyncDeadline.d.ts +6 -0
  556. package/packages/types/runtime3d/AsyncOperation.d.ts +3 -0
  557. package/packages/types/runtime3d/BackendChoice.d.ts +130 -0
  558. package/packages/types/runtime3d/BakedCrowd.d.ts +156 -0
  559. package/packages/types/runtime3d/BasisTexture.d.ts +169 -0
  560. package/packages/types/runtime3d/CameraCollision.d.ts +20 -0
  561. package/packages/types/runtime3d/CameraEffects.d.ts +134 -0
  562. package/packages/types/runtime3d/CameraRig.d.ts +27 -0
  563. package/packages/types/runtime3d/CharacterController.d.ts +71 -0
  564. package/packages/types/runtime3d/CinematicCapture.d.ts +103 -0
  565. package/packages/types/runtime3d/Clocks.d.ts +200 -0
  566. package/packages/types/runtime3d/Cloth.d.ts +57 -0
  567. package/packages/types/runtime3d/Clouds.d.ts +69 -0
  568. package/packages/types/runtime3d/ColorLut.d.ts +73 -0
  569. package/packages/types/runtime3d/CombatQueries.d.ts +50 -0
  570. package/packages/types/runtime3d/ComputePass.d.ts +134 -0
  571. package/packages/types/runtime3d/CrowdPresentation.d.ts +104 -0
  572. package/packages/types/runtime3d/DebugDraw.d.ts +161 -0
  573. package/packages/types/runtime3d/DebugStats.d.ts +24 -0
  574. package/packages/types/runtime3d/Decals.d.ts +65 -0
  575. package/packages/types/runtime3d/DensityVolume.d.ts +39 -0
  576. package/packages/types/runtime3d/DistanceBricks.d.ts +97 -0
  577. package/packages/types/runtime3d/Dither.d.ts +78 -0
  578. package/packages/types/runtime3d/DrawWarmUp.d.ts +93 -0
  579. package/packages/types/runtime3d/EdgeSmoothing.d.ts +10 -0
  580. package/packages/types/runtime3d/EnvironmentProbe.d.ts +139 -0
  581. package/packages/types/runtime3d/Filmic.d.ts +243 -0
  582. package/packages/types/runtime3d/Foliage.d.ts +95 -0
  583. package/packages/types/runtime3d/GltfIntake.d.ts +236 -0
  584. package/packages/types/runtime3d/GltfSecondUv.d.ts +54 -0
  585. package/packages/types/runtime3d/GraphicsGuard.d.ts +18 -0
  586. package/packages/types/runtime3d/Grass.d.ts +226 -0
  587. package/packages/types/runtime3d/GroundTruthAO.d.ts +64 -0
  588. package/packages/types/runtime3d/HalfFloat.d.ts +13 -0
  589. package/packages/types/runtime3d/HdrEnvironment.d.ts +144 -0
  590. package/packages/types/runtime3d/Ik.d.ts +123 -0
  591. package/packages/types/runtime3d/InputBuffer.d.ts +49 -0
  592. package/packages/types/runtime3d/InstancedMesh.d.ts +116 -0
  593. package/packages/types/runtime3d/Laya342Adapters.d.ts +306 -0
  594. package/packages/types/runtime3d/Laya342GltfAdapter.d.ts +105 -0
  595. package/packages/types/runtime3d/LensFinish.d.ts +38 -0
  596. package/packages/types/runtime3d/LensFlare.d.ts +114 -0
  597. package/packages/types/runtime3d/LightFog.d.ts +190 -0
  598. package/packages/types/runtime3d/LightingDepth.d.ts +128 -0
  599. package/packages/types/runtime3d/Lightmap.d.ts +55 -0
  600. package/packages/types/runtime3d/Math3D.d.ts +19 -0
  601. package/packages/types/runtime3d/MeshQuery.d.ts +107 -0
  602. package/packages/types/runtime3d/MeshoptModelDecoder.d.ts +34 -0
  603. package/packages/types/runtime3d/MiniGameSplash.d.ts +4 -0
  604. package/packages/types/runtime3d/ModelAnimationSampler.d.ts +26 -0
  605. package/packages/types/runtime3d/ModelCompatibility.d.ts +169 -0
  606. package/packages/types/runtime3d/ModelDecoder.d.ts +66 -0
  607. package/packages/types/runtime3d/ModelInspector.d.ts +77 -0
  608. package/packages/types/runtime3d/ModelLod.d.ts +61 -0
  609. package/packages/types/runtime3d/ModelPlacements.d.ts +77 -0
  610. package/packages/types/runtime3d/ObjectMotion.d.ts +43 -0
  611. package/packages/types/runtime3d/PhysicalCamera.d.ts +51 -0
  612. package/packages/types/runtime3d/PointShadow.d.ts +71 -0
  613. package/packages/types/runtime3d/PointShadowSchedule.d.ts +74 -0
  614. package/packages/types/runtime3d/Pool.d.ts +33 -0
  615. package/packages/types/runtime3d/ProbeVolume.d.ts +123 -0
  616. package/packages/types/runtime3d/QualityGovernor.d.ts +201 -0
  617. package/packages/types/runtime3d/QualityMemory.d.ts +83 -0
  618. package/packages/types/runtime3d/RenderScale.d.ts +69 -0
  619. package/packages/types/runtime3d/RenderSpaces.d.ts +44 -0
  620. package/packages/types/runtime3d/Renderer.d.ts +62 -0
  621. package/packages/types/runtime3d/ResultPlayback.d.ts +70 -0
  622. package/packages/types/runtime3d/Runtime.d.ts +136 -0
  623. package/packages/types/runtime3d/RuntimeDriver.d.ts +42 -0
  624. package/packages/types/runtime3d/SceneLifecycle.d.ts +84 -0
  625. package/packages/types/runtime3d/SceneMutation.d.ts +34 -0
  626. package/packages/types/runtime3d/SceneQueries.d.ts +71 -0
  627. package/packages/types/runtime3d/ScreenReflections.d.ts +78 -0
  628. package/packages/types/runtime3d/SelectionOutline.d.ts +68 -0
  629. package/packages/types/runtime3d/ShaderErrors.d.ts +27 -0
  630. package/packages/types/runtime3d/ShaderRegistry.d.ts +10 -0
  631. package/packages/types/runtime3d/ShaderWarmUp.d.ts +162 -0
  632. package/packages/types/runtime3d/ShadowUpdates.d.ts +125 -0
  633. package/packages/types/runtime3d/SkinBinding.d.ts +53 -0
  634. package/packages/types/runtime3d/Smaa.d.ts +60 -0
  635. package/packages/types/runtime3d/SmaaTables.d.ts +12 -0
  636. package/packages/types/runtime3d/SpringBones.d.ts +69 -0
  637. package/packages/types/runtime3d/SurfaceBuffer.d.ts +28 -0
  638. package/packages/types/runtime3d/Surfaces.d.ts +326 -0
  639. package/packages/types/runtime3d/Themes.d.ts +70 -0
  640. package/packages/types/runtime3d/Timeline.d.ts +88 -0
  641. package/packages/types/runtime3d/ToneCurves.d.ts +59 -0
  642. package/packages/types/runtime3d/TransformGizmo.d.ts +139 -0
  643. package/packages/types/runtime3d/TriangleMask.d.ts +84 -0
  644. package/packages/types/runtime3d/Underwater.d.ts +120 -0
  645. package/packages/types/runtime3d/Utf8.d.ts +12 -0
  646. package/packages/types/runtime3d/Vrm.d.ts +120 -0
  647. package/packages/types/runtime3d/VrmDocument.d.ts +381 -0
  648. package/packages/types/runtime3d/WalkGrid.d.ts +94 -0
  649. package/packages/types/runtime3d/WebGPU342Adapters.d.ts +27 -0
  650. package/packages/types/runtime3d/index.d.ts +102 -0
  651. package/packages/types/shaders/Laya342ShaderTemplates.d.ts +3 -0
  652. package/packages/types/shaders/LitSurfaceMaterial.d.ts +257 -0
  653. package/packages/types/shaders/LitSurfaceTemplates.d.ts +7 -0
  654. package/packages/types/shaders/ReflectiveSurface.d.ts +58 -0
  655. package/packages/types/shaders/ShaderMaterials.d.ts +60 -0
  656. package/packages/types/shaders/ToonMaterial.d.ts +176 -0
  657. package/packages/types/shaders/WaterRipples.d.ts +48 -0
  658. package/packages/types/shaders/WaterSurface.d.ts +110 -0
  659. package/packages/types/shaders/ZhudaCommon.d.ts +31 -0
  660. package/packages/types/shaders/index.d.ts +7 -0
  661. package/packages/types/simulation/Cloth.d.ts +381 -0
  662. package/packages/types/simulation/ParticleCore.d.ts +125 -0
  663. package/packages/types/simulation/SpringBones.d.ts +107 -0
  664. package/packages/types/simulation/index.d.ts +4 -0
  665. package/packages/types/terrain/Heightfield.d.ts +67 -0
  666. package/packages/types/terrain/Terrain2D.d.ts +81 -0
  667. package/packages/types/terrain/Terrain3D.d.ts +80 -0
  668. package/packages/types/terrain/TerrainShell.d.ts +8 -0
  669. package/packages/types/terrain/index.d.ts +4 -0
  670. package/packages/types/vendor/LayaAir.runtime.d.ts +97440 -0
  671. package/packages/types/vendor/REPAIRS.md +30 -0
  672. package/packages/types/vendor/restored-3.4.2.json +142 -0
  673. package/packages/types/vendor/spine.runtime.d.ts +1507 -0
  674. package/packages/types/vendor/wechat-media.d.ts +877 -0
  675. package/packages/types/zhuda-2d-ui.d.ts +244 -0
  676. package/packages/types/zhuda-3d-physics.d.ts +34 -0
  677. package/packages/types/zhuda-audio.d.ts +128 -0
  678. package/packages/types/zhuda-bootstrap.d.ts +100 -0
  679. package/packages/types/zhuda-branding.d.ts +6 -0
  680. package/packages/types/zhuda-core.d.ts +46 -0
  681. package/packages/types/zhuda-declarative.d.ts +81 -0
  682. package/packages/types/zhuda-effects.d.ts +302 -0
  683. package/packages/types/zhuda-layout.d.ts +96 -0
  684. package/packages/types/zhuda-particles.d.ts +477 -0
  685. package/packages/types/zhuda-spine42.d.ts +23 -0
  686. package/packages/types/zhuda-static-assets.d.ts +389 -0
  687. package/packages/types/zhuda-video.d.ts +24 -0
  688. package/packages/types/zhuda-visual-contract.d.ts +52 -0
  689. package/packages/types/zhuda-webview.d.ts +43 -0
  690. package/vendor/basis/LICENSE.txt +55 -0
  691. package/vendor/basis/README.md +25 -0
  692. package/vendor/basis/basis_transcoder.js +19 -0
  693. package/vendor/basis/basis_transcoder.wasm +0 -0
  694. package/vendor/laya-3.4.2/WEBGPU-LICENSES.txt +1259 -0
  695. package/vendor/laya-3.4.2/libs/laya.ani.js +1 -0
  696. package/vendor/laya-3.4.2/libs/laya.box2D.js +1209 -0
  697. package/vendor/laya-3.4.2/libs/laya.bridge.js +2273 -0
  698. package/vendor/laya-3.4.2/libs/laya.bullet.js +1 -0
  699. package/vendor/laya-3.4.2/libs/laya.core.js +1 -0
  700. package/vendor/laya-3.4.2/libs/laya.d3.js +1 -0
  701. package/vendor/laya-3.4.2/libs/laya.device.js +1 -0
  702. package/vendor/laya-3.4.2/libs/laya.gltf.js +1 -0
  703. package/vendor/laya-3.4.2/libs/laya.ik.js +1 -0
  704. package/vendor/laya-3.4.2/libs/laya.light2D.js +1 -0
  705. package/vendor/laya-3.4.2/libs/laya.line2D.js +1 -0
  706. package/vendor/laya-3.4.2/libs/laya.native-spine42.js +7672 -0
  707. package/vendor/laya-3.4.2/libs/laya.navMesh2d.js +1 -0
  708. package/vendor/laya-3.4.2/libs/laya.navMesh3d.js +1 -0
  709. package/vendor/laya-3.4.2/libs/laya.navMeshCommon.js +1 -0
  710. package/vendor/laya-3.4.2/libs/laya.particle.js +1 -0
  711. package/vendor/laya-3.4.2/libs/laya.particle3D.js +1 -0
  712. package/vendor/laya-3.4.2/libs/laya.particleCommon.js +1 -0
  713. package/vendor/laya-3.4.2/libs/laya.physics2D.js +3774 -0
  714. package/vendor/laya-3.4.2/libs/laya.physics3D.js +1 -0
  715. package/vendor/laya-3.4.2/libs/laya.postProcess.js +1 -0
  716. package/vendor/laya-3.4.2/libs/laya.spine.js +1 -0
  717. package/vendor/laya-3.4.2/libs/laya.spine3D.js +1 -0
  718. package/vendor/laya-3.4.2/libs/laya.tilemap.js +1 -0
  719. package/vendor/laya-3.4.2/libs/laya.trail2D.js +1 -0
  720. package/vendor/laya-3.4.2/libs/laya.trail3D.js +1 -0
  721. package/vendor/laya-3.4.2/libs/laya.trailCommon.js +1 -0
  722. package/vendor/laya-3.4.2/libs/laya.ui.js +1 -0
  723. package/vendor/laya-3.4.2/libs/laya.ui2.js +9904 -0
  724. package/vendor/laya-3.4.2/libs/laya.vfx.js +6754 -0
  725. package/vendor/laya-3.4.2/libs/laya.webgl_2D.js +1 -0
  726. package/vendor/laya-3.4.2/libs/laya.webgl_3D.js +1 -0
  727. package/vendor/laya-3.4.2/libs/laya.webgpu_2D.js +18576 -0
  728. package/vendor/laya-3.4.2/libs/laya.webgpu_3D.js +6729 -0
  729. package/vendor/laya-3.4.2/libs/nagabind.js +395 -0
  730. package/vendor/laya-3.4.2/libs/nagabind_bg.wasm +0 -0
  731. package/vendor/laya-3.4.2/libs/shader_compiler_web.js +22 -0
  732. package/vendor/laya-3.4.2/libs/shader_compiler_web.wasm +0 -0
  733. package/vendor/laya-3.4.2/libs/spine-core-3.8.js +1 -0
  734. package/vendor/laya-3.4.2/libs/spine-core-4.2.js +10216 -0
  735. package/vendor/laya-3.4.2/webgpu-provenance.json +41 -0
  736. package/vendor/meshoptimizer/LICENSE.txt +21 -0
  737. package/vendor/meshoptimizer/README.md +13 -0
  738. package/vendor/threejs-post/LICENSE.txt +53 -0
  739. package/vendor/threejs-post/README.md +54 -0
  740. package/zhuda.config.json +22 -0
@@ -0,0 +1,180 @@
1
+ # Implementation routes
2
+
3
+ Every way of building something on this engine that has been done end to end is a
4
+ **route**: one page in this folder, `docs/routes/<id>.md`, in one format. Read the
5
+ route for your task **before** researching or designing: the point is to start where
6
+ the last agent stopped, not where it started.
7
+
8
+ ```sh
9
+ node packages/mcp-server/index.mjs --tool list_routes # every route, one line each
10
+ node packages/mcp-server/index.mjs --tool get_route --args '{"id":"film-as-data"}'
11
+ ```
12
+
13
+ Over MCP the same two tools are `list_routes` and `get_route`; `get_agent_contract`
14
+ carries the list as `routes`. From an installed package the pages are under
15
+ `node_modules/zhuda-laya-engine/docs/routes/`.
16
+
17
+ ## The modules and the assets a route names
18
+
19
+ A route names modules of the prefab library and kinds of asset. Neither is in this repository.
20
+
21
+ - **Modules** (`ui/dialog`, `3d/sky-island`, …; a path written `zhuda-engine-prefabs/<path>` is a
22
+ path in that repository): [zhuda-engine-prefabs](https://github.com/zhudaandzhuer/zhuda-engine-prefabs).
23
+ In a game: `npm install -D git+https://github.com/zhudaandzhuer/zhuda-engine-prefabs.git#<tag or commit>`,
24
+ then `npx zhuda-prefabs-sync . <module …>`. [How it works](../prefab-library.md).
25
+ - **Assets** (textures, pictures, reference pictures to turn into models):
26
+ [zhuda-engine-assets](https://github.com/zhudaandzhuer/zhuda-engine-assets). Read its
27
+ `catalog/kinds.json`, then the slice of the kind, then fetch single files by address.
28
+
29
+ ## The format
30
+
31
+ Every page has the same header and the same sections, in the same order
32
+ ([TEMPLATE.md](TEMPLATE.md)); the audit behind `npm run verify` and the Doctor
33
+ refuses a page that lacks one.
34
+
35
+ | Part | What it tells you |
36
+ | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
37
+ | Header: `Id`, `Kind`, `For`, `Checked on`, `Status`, `Reference consumer`, `Engine version` | Whether the route fits, and on which devices it was really checked |
38
+ | When to take this route | What it fits, what it does not, and which route to take instead |
39
+ | Tools | Commands, MCP tools and outside tools with their versions |
40
+ | Steps | The order, the public API or tool of each step, the values that worked, the check |
41
+ | Pitfalls | What cost a previous agent hours: what was seen, the cause, the fix |
42
+ | Engine gaps and their workarounds | What the engine does not do yet, and what to do meanwhile |
43
+ | Checks | The commands and device steps that show the result works |
44
+ | Not checked | Everything the route does not claim |
45
+ | Boundaries | What stays in the consumer and what belongs to the engine |
46
+
47
+ Since 2.0.0 the folder also holds the routes the game centre workspace kept beside the engine
48
+ (their modules are in [`zhuda-engine-prefabs/`](../prefab-library.md)) and one route written from each game of
49
+ the workspace's `games/` folder; those games are outside this repository, and their routes say
50
+ what the games' own records show, with dates.
51
+
52
+ Two kinds. A **workflow** is a path every project of its kind takes, whatever the
53
+ scene. A **scene** route is one kind of scene built end to end by a reference
54
+ consumer. Most tasks take one or two workflows and, when one fits, a scene route.
55
+
56
+ ## Workflows
57
+
58
+ | Id | For | Checked on |
59
+ | --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
60
+ | [new-game-project](new-game-project.md) | Starting any game or app on the engine: project shape, engine pin, build, Doctor | desktop CI; no phone |
61
+ | [game-2d](game-2d.md) | A 2D game or a game's 2D interface: scaffold, layout, time, input, prefabs, Spine, tile maps, ready 2D effects, audio | desktop WebGL; no phone |
62
+ | [good-looking-3d-scene](good-looking-3d-scene.md) | Any 3D scene that must look good: look settings in order, each with its check | desktop WebGL and WebGPU |
63
+ | [film-as-data](film-as-data.md) | A scene, still or film as JSON through the MCP film tools: nodes, materials, terrain, grass, queries, packs, render | desktop WebGL and WebGPU |
64
+ | [interactive-film-viewer](interactive-film-viewer.md) | A film scene shown live on a page (an architecture walk-round, a product viewer): the three calls a frame, the lens, views, quality levels, mounting again | desktop WebGL and WebGPU; no phone |
65
+ | [papercraft-diorama](papercraft-diorama.md) | A pop-up book or paper diorama scene made of code alone: the marks of the look, six paper structures, folding without clipping, rules against flicker, light presets (from an outside skill; not built here) | nothing drawn here |
66
+ | [film-fight-that-lands](film-fight-that-lands.md) | A fight film as data where every hit touches: contact measured on the rig, aimed punches, spacing solved per shot, strike-frame boards, hit-stop, a library track cut to the story | desktop WebGPU; no phone |
67
+ | [film-ink-lines](film-ink-lines.md) | Thin storybook ink lines on a film render: flat-colour line passes, edges drawn on the beauty, no lines along shadows, faded on motion and with distance | desktop WebGPU; no phone |
68
+ | [model-from-dcc](model-from-dcc.md) | A model from Blender or another DCC tool: export, inspection, skins, levels of detail, mounting | desktop WebGL and WebGPU |
69
+ | [visual-content-prefab](visual-content-prefab.md) | Anything a player sees in a game: prefab first, checked alone, then composed | desktop WebGL |
70
+ | [single-html-page](single-html-page.md) | A prototype or embed that must be one HTML file | desktop WebGL and WebGPU |
71
+ | [mini-game-build](mini-game-build.md) | Packaging for WeChat, Douyin and other mini-game hosts | macOS static builds; no host |
72
+ | [laya-ide-project-cli-web](laya-ide-project-cli-web.md) | Running someone else's LayaAir IDE project in the browser with the official CLI, without the IDE window | desktop WebGL; no phone |
73
+ | [smooth-character-motion](smooth-character-motion.md) | A 3D character that must move as smoothly as a commercial game's showcase: clips, helper bones, clock order, cross-fades, props, cloth timing | desktop WebGL; no phone |
74
+ | [high-quality-character](high-quality-character.md) | A 3D character that is looked at closely: what its rig and clips must hold, raising one with Blender and the repository's tools, the measured bar, what a person judges | desktop WebGPU; Blender headless; no phone |
75
+ | [game-rules-first](game-rules-first.md) | Any small game: rules as tested TypeScript, bots for balance, a thin view, a recorded run with real input | desktop WebGL in software; no phone |
76
+ | [ui-test-by-probe](ui-test-by-probe.md) | A regression test of an interface as JSON: clicks on controls found by name or label through a probe of the Laya stage, an expectation after every step, the same result every run on a virtual clock | desktop headless Chrome at three shapes; no phone |
77
+ | [onboarding-tutorial-2d](onboarding-tutorial-2d.md) | Interactive spotlight onboarding tutorial on the Laya 2D stage: four-quadrant touch-passthrough cutout, animated tap/double-tap/drag hand cues, mistake-safe nudges, and mini-game compatibility | Node tests; desktop headless Chrome; no physical phone |
78
+ | [hunting-action-3d](hunting-action-3d.md) | Third-person melee against one large monster: frame-data moves, dodge frames, part breaks, crafting | desktop WebGL in software; no phone |
79
+ | [tower-defence-3d](tower-defence-3d.md) | Tower defence on a path through a 3D place: pooled models, DOM markers tied to world positions | desktop WebGL in software; no phone |
80
+ | [idle-gacha-2d](idle-gacha-2d.md) | A portrait idle game with summons at published rates, offline earnings and an upgrade economy | desktop WebGL in software; no phone |
81
+ | [survivors-2d](survivors-2d.md) | A 2D game with hundreds of moving things at a steady draw count: one sprite redrawn from one atlas | desktop WebGL in software; no phone |
82
+ | [merge-2d](merge-2d.md) | A drag-and-merge board with item chains, orders, energy and levels | desktop WebGL in software; no phone |
83
+ | [platformer-2d](platformer-2d.md) | A tile platformer: `ZhudaTerrain2D` levels, variable jump, coyote time, jump buffering | desktop WebGL in software; no phone |
84
+ | [match-three-2d](match-three-2d.md) | A swap-and-match board with cascades and special pieces, played back round by round | desktop WebGL in software; no phone |
85
+ | [rhythm-2d](rhythm-2d.md) | Anything judged against music: a song mixed in the page, one clock, tap windows, calibration | desktop WebGL in software; no phone |
86
+ | [rigged-phone-character](rigged-phone-character.md) | A skinned, animated character as one textured GLB with two levels of detail | desktop WebGL in software; no phone |
87
+ | [humanoid-from-shapes](humanoid-from-shapes.md) | A human figure and what it wears made from code: shapes on a skeleton, meshed, cut into parts, skinned, animated by poses | desktop WebGL in software; no phone |
88
+ | [outfit-swap-3d](outfit-swap-3d.md) | A character dressed at run time: parts bound to the body's skeleton, covered regions hidden, colours by tint | desktop WebGL in software; no phone |
89
+ | [clip-free-garments](clip-free-garments.md) | Garments and objects made in number from a few numbers each, hidden skin under them, and two measures that nothing comes through | measured in Node; drawn in software WebGL |
90
+ | [game-to-prefabs](game-to-prefabs.md) | Retiring a game: its scenes, characters, systems and assets become prefab modules, proved pixel for pixel, before the game is removed | desktop WebGPU; no phone |
91
+ | [prototype-to-center](prototype-to-center.md) | Bringing a prototype from outside into the workspace as a game pinned to the engine, its pictures through the prefab gates first | desktop WebGL; no phone |
92
+ | [go-game-server](go-game-server.md) | A Go authoritative server for a round game: replaceable randomness, a wallet seam, JWT, an HTTP API, replay, an RTP simulator, a round format shared with the client | local Go; not deployed |
93
+ | [online-lockstep-match](online-lockstep-match.md) | The server of a two-player real-time versus mode: Go matchmaking and input relay, room codes, delay from round-trip time, hash comparison, bots, going live | local Go; live behind a tunnel; two headless Chromes; no phone |
94
+ | [pose-atlas-motion](pose-atlas-motion.md) | A realistic 2D character from a key-pose atlas made continuous without a skeleton: pins, a timetable, baked in-betweens, mesh warp | desktop WebGL; no phone |
95
+ | [low-poly-character-from-shapes](low-poly-character-from-shapes.md) | A low-poly rigged character GLB from one reference picture: shapes on bones, clips that cross-fade | desktop headless Chrome; no phone |
96
+ | [mobile-always-landscape](mobile-always-landscape.md) | A landscape web game that is landscape on a phone held upright, without a turn-your-phone prompt | phone emulation in headless Chrome; no real phone |
97
+ | [mobile-web-fullscreen](mobile-web-fullscreen.md) | Any web game on a phone or in WeChat: no zoom on a double tap or a pinch, full screen on Android, the iPhone's limits | phone emulation in headless Chrome; no real phone |
98
+ | [screen-fit-game-box](screen-fit-game-box.md) | Making a landscape web game fit every window and screen shape without cutting off or overflowing anything: the box, the units, the bars, touch coordinates, a check over twelve shapes | desktop headless Chrome at twelve shapes; phone emulation; no real phone |
99
+ | [key-art-to-animated-title](key-art-to-animated-title.md) | Turning a flat key art into a layered title screen that fits 4:3 to ultra-wide and moves: cutting the characters out, an empty background plate, placing the layers, entrance and idle animation | desktop headless Chrome; no real phone |
100
+ | [apocalypse-survival-3d](apocalypse-survival-3d.md) | A single-player 3D survival shooter on WebGPU from heavy GLB assets: prefab gate, particles, voiced story shots, a Go session service, an Electron package | desktop WebGPU; no Windows GPU, no phone |
101
+ | [story-counting-2d](story-counting-2d.md) | A 2D web game that opens and closes as a voiced visual novel and plays as an idle counting game, in three languages, packed for several portals | desktop WebGL; vivo V40 |
102
+ | [action-adventure-3d-minigame](action-adventure-3d-minigame.md) | A landscape 3D action adventure as a WeChat mini-game: bosses as data, story scenes, rigged characters with cloth, the package limits | WeChat host on an iPhone 14, a vivo V40 and cloud phones; desktop WebGL |
103
+ | [drop-merge-2d-minigame](drop-merge-2d-minigame.md) | A portrait drop-and-merge game on circle physics for WeChat, several skins from one code base | desktop headless Chrome at phone sizes; no host run, no phone |
104
+ | [raft-brawl-3d-minigame](raft-brawl-3d-minigame.md) | A landscape 3D WeChat mini game where characters knock each other off a shrinking raft: seeded rules with bots, a 4 MB main package | Node rule tests; an iPhone in WeChat (load and title only) |
105
+ | [isometric-mystery-2d](isometric-mystery-2d.md) | A short isometric investigation game: a baked multi-level map, a torch that relights it, characters from one atlas, clues and an accusation as data | desktop WebGL; vivo V40 |
106
+ | [platform-fighter-2d](platform-fighter-2d.md) | A two-player fighting game identical on two machines: an integer simulation, moves as frame data, a computer opponent, the client side of lockstep | desktop WebGL; phone emulation; no real phone |
107
+ | [pole-rescue-arcade-3d](pole-rescue-arcade-3d.md) | A one-screen 3D arcade game: a pointer moves a tool's tip over a plane, targets are taken in a short window and carried to a goal | desktop WebGPU and WebGL; phone emulation; no phone |
108
+ | [aqua-freeze-2d-minigame](aqua-freeze-2d-minigame.md) | A 2D game with an HTML interface moved into a WeChat mini game: the interface drawn on the stage, the stage fitted to tall phones, prefab textures, sound and saving without browser APIs | desktop headless Chrome at three shapes; a WeChat simulator in the browser; no phone |
109
+
110
+ ## Scenes
111
+
112
+ | Id | For | Checked on |
113
+ | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------- |
114
+ | [floating-island](floating-island.md) | A small island above a sea of cloud: grass a body presses down, pond, weather, a passing day, a character that is picked up and thrown; a frame budget | desktop WebGL and WebGPU |
115
+ | [layered-cloth-on-body](layered-cloth-on-body.md) | A realistic modelled body in layered clothing that is pulled and torn: sheer stockings, trousers, skirts as cloth | desktop WebGL and WebGPU; vivo V40 |
116
+ | [spine-character](spine-character.md) | A 2D Spine character from generated art that the hand changes: IK, Spine physics, tearing by attachment swaps | desktop WebGL and WebGPU |
117
+ | [underwater](underwater.md) | A camera under water: sea floor, fading view, caustics, sunbeams, the surface from below | desktop WebGL and WebGPU |
118
+ | [outdoor-landscape](outdoor-landscape.md) | A mountain, ridge or dune landscape on terrain nodes, with rock by slope, grass and things placed by query | desktop WebGL in software; no phone |
119
+ | [astral-minimal-film-look](astral-minimal-film-look.md) | A minimalist sunset set (孤旅大氣分層風): flat colour fields, a low sun behind the cameras, shadow bands from off-camera slabs, a painted dusk panorama, fog equal to the horizon | desktop WebGPU; no phone |
120
+ | [shared-islands](shared-islands.md) | A game, a picture or a film on one of the three finished islands of the prefab library | desktop WebGPU; no phone |
121
+ | [dungeon-line-slot](dungeon-line-slot.md) | A portrait payline slot that plays each round as a dungeon fight, every picture through the prefab gate | desktop WebGL; no phone |
122
+ | [cascade-slot](cascade-slot.md) | A pay-anywhere slot with cascades, multipliers and free games: a client and a Go authoritative server | desktop WebGL, local Go; no phone |
123
+ | [side-view-duel](side-view-duel.md) | A realistic side-view one-on-one duel: a key-pose atlas, footwork by distance, hits along the blade, a 120 Hz simulation | desktop WebGL; phone emulation |
124
+ | [third-person-town-3d](third-person-town-3d.md) | A town walked on foot from behind the player: the place as a model prefab, walking rules, a camera that stays out of walls, people to inspect, a passing day | desktop headless Chrome; vivo V40 (frame rate only) |
125
+
126
+ ## Which route for which task
127
+
128
+ | The task | Read, in this order |
129
+ | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
130
+ | A new 3D game | `new-game-project`, `good-looking-3d-scene`, `visual-content-prefab`, then a scene route if one fits |
131
+ | A new 2D game or UI | `new-game-project`, `game-2d`, `visual-content-prefab`; `spine-character` for a rigged character |
132
+ | A film, a still, or a level laid out as data | `film-as-data`, `good-looking-3d-scene` |
133
+ | A film scene a visitor looks round on a page (a building, a room, a product) | `film-as-data` for the scene, then `interactive-film-viewer` |
134
+ | A pop-up book, a papercraft world, a paper diorama, or a 3D scene with no asset files | `papercraft-diorama` for the style, then `film-as-data` and `good-looking-3d-scene` |
135
+ | A fight or action film where every hit must touch (打到, not 隔空打) | `film-as-data`, `film-fight-that-lands`; for a drawn look `film-ink-lines` (細墨線) and `astral-minimal-film-look` (極簡黃昏) |
136
+ | A character, prop or building model | `model-from-dcc`, then `film-as-data` or `visual-content-prefab` to show it |
137
+ | An outdoor scene with hills and grass | `film-as-data` (terrain, grass, triplanar), `good-looking-3d-scene`, `floating-island` for grass a body moves |
138
+ | A game of a kind someone already built | `new-game-project`, `game-rules-first`, then the genre: `platformer-2d`, `match-three-2d`, `rhythm-2d`, `merge-2d`, `idle-gacha-2d`, `survivors-2d`, `tower-defence-3d`, `hunting-action-3d` |
139
+ | A character that changes clothes | `humanoid-from-shapes` (or `model-from-dcc`) for the parts, `clip-free-garments` for clothes that cannot clip, then `outfit-swap-3d` |
140
+ | A quick prototype in one file | `single-html-page` |
141
+ | A LayaAir IDE project someone handed over (`.laya`, `.ls`, regClass scripts) to build and look at | `laya-ide-project-cli-web` |
142
+ | A character that looks stiff or jitters, or must look as smooth as a commercial game's (流暢) | `smooth-character-motion`, then `model-from-dcc` for the rig and clips |
143
+ | A character that must be high quality (高品質角色): a hero, a showcase, anything the camera comes near | `high-quality-character` (the bar and the tools), with `smooth-character-motion` for why |
144
+ | A mini-game release | `new-game-project`, `mini-game-build` |
145
+ | A game that is retired, or a prototype brought into the workspace | `game-to-prefabs`, `prototype-to-center` |
146
+ | Anything on one of the finished islands | `shared-islands`, then `floating-island` for how the island is made |
147
+ | A slot, or another game of one button and one round | `new-game-project`, `game-2d`, then `cascade-slot` or `dungeon-line-slot`; with a server that decides the result, `go-game-server` |
148
+ | Two players in real time over the network | `platform-fighter-2d` (the simulation and the client), `online-lockstep-match` (the server) |
149
+ | A web game that will be opened on a phone | `mobile-web-fullscreen` always; `mobile-always-landscape` and `screen-fit-game-box` for a landscape game |
150
+ | A game that must fit any window or screen shape (適配: tall desktop windows, tablets, ultra-wide, fold phones) | `screen-fit-game-box` |
151
+ | A title screen from one flat picture that must fit other shapes or move (動態) | `screen-fit-game-box`, then `key-art-to-animated-title` |
152
+ | A realistic 2D character without Spine, or a side-view fight | `pose-atlas-motion`, `side-view-duel` |
153
+ | A low-poly rigged character without a modelling tool | `low-poly-character-from-shapes`; a dressed human figure: `humanoid-from-shapes` |
154
+ | A WeChat mini-game | `new-game-project`, `mini-game-build`, then the one nearest: `drop-merge-2d-minigame` (2D), `raft-brawl-3d-minigame` (3D, small), `action-adventure-3d-minigame` (3D, large); a game whose interface is HTML: `aqua-freeze-2d-minigame` |
155
+ | A game like one the workspace already shipped | Its route: `isometric-mystery-2d`, `story-counting-2d`, `third-person-town-3d`, `apocalypse-survival-3d`, `pole-rescue-arcade-3d`, `platform-fighter-2d`, and the three mini-games above |
156
+ | A test of an interface that clicks named controls and asserts each step, without a model | `ui-test-by-probe` |
157
+ | Something several games will share | [The prefab library](../prefab-library.md): look in `zhuda-engine-prefabs/catalog.json` first, add a module there, not in a game |
158
+ | Changing the engine itself | Not a route: `AGENTS.md`, then [agent development](../agent-development.md) |
159
+
160
+ A route is not a plan (see [plans](../plans/README.md)) and not an API reference:
161
+ each guide in `docs/` owns its API, and a route links to it for detail and adds the
162
+ order, the values and what went wrong.
163
+
164
+ ## Adding or changing a route
165
+
166
+ Write a route when you have built something end to end and checked it on the
167
+ devices you name, so the next agent can repeat it. Copy [TEMPLATE.md](TEMPLATE.md) to
168
+ `docs/routes/<id>.md`.
169
+
170
+ - The `Id` line is the file name. `Kind` is `scene` or `workflow`.
171
+ - Name only what was run. A step that was not checked goes under **Not checked**.
172
+ - Numbers keep their device, browser, backend and date.
173
+ - Link the engine guide for each API instead of restating it; restate only the
174
+ values and the order that worked.
175
+ - The consumer's own files (models, textures, game rules) stay in the consumer;
176
+ point to them, never copy them here.
177
+ - When an engine change makes a pitfall or a workaround obsolete, update the route
178
+ in the same change.
179
+ - Add its row to the table above. `npm run verify` fails on a page that is not
180
+ listed, lacks a header line or a section, or whose id is not its file name.
@@ -0,0 +1,54 @@
1
+ # Route: <what is built, in a few words>
2
+
3
+ One paragraph: what the result is, who drives it (mouse, touch, data), and on which
4
+ devices it was checked.
5
+
6
+ - **Id:** `<the file name without .md: lowercase words joined by dashes>`
7
+ - **Kind:** <scene | workflow>
8
+ - **For:** <one sentence an agent matches its task against: what gets built>
9
+ - **Checked on:** <desktop WebGL; desktop WebGPU; a named phone; or "no phone">
10
+ - **Status:** <what was checked, where and when, in a sentence>
11
+ - **Reference consumer:** <path or repository outside this one; or the engine fixture>
12
+ - **Engine version:** <package version and commit the route was checked against>
13
+
14
+ `scene` is one kind of scene built end to end by a reference consumer. `workflow` is
15
+ a path every project of its kind takes (a new game, a model from a DCC tool, a film
16
+ as data), whatever the scene. The header lines are read by `list_routes` and by the
17
+ route audit: keep their names and their order. Every section below is required, in
18
+ this order; write "None." under one that has nothing.
19
+
20
+ ## When to take this route
21
+
22
+ What it fits, and what it does not fit (and which route to take instead).
23
+
24
+ ## Tools
25
+
26
+ External tools with exact versions, where they come from, their licence, and what
27
+ may and may not be committed where. Engine commands and MCP tools the route uses.
28
+
29
+ ## Steps
30
+
31
+ 1. **<Step>.** The public API or tool, the values that worked, the file in the
32
+ reference consumer that does it, and the check that says it worked.
33
+ 2. ...
34
+
35
+ ## Pitfalls
36
+
37
+ Each: what was seen, the cause, the fix. Most costly first.
38
+
39
+ ## Engine gaps and their workarounds
40
+
41
+ Each gap with the engine plan item that will close it (if any) and the workaround the
42
+ reference consumer uses until then. Remove the row when the engine closes the gap.
43
+
44
+ ## Checks
45
+
46
+ The commands and the device steps that show the result works, and what each measured.
47
+
48
+ ## Not checked
49
+
50
+ Everything the route does not claim.
51
+
52
+ ## Boundaries
53
+
54
+ What stays in the consumer and what belongs to the engine.
@@ -0,0 +1,238 @@
1
+ # Route: A 3D action adventure as a WeChat mini-game
2
+
3
+ A landscape, third-person action adventure for the WeChat mini-game host ("末日僵尸觉醒 之 猪大修行"): a hub, a village, one dungeon at
4
+ rising difficulty with a three-bar boss, voiced scenes, two playable characters with cloth, and a package cut into subpackages.
5
+ Rules are TypeScript tested in Node; the view is LayaAir through the engine. Touch, or keyboard and mouse. Checked in headless
6
+ desktop Chrome, and in the host on an iPhone 14, a vivo V40 and WeChat's cloud test between 2026-11-19 and 2026-11-21.
7
+
8
+ - **Id:** `action-adventure-3d-minigame`
9
+ - **Kind:** workflow
10
+ - **For:** building a landscape 3D action adventure (bosses as data, story scenes, rigged characters with cloth, touch controls)
11
+ that ships as a WeChat mini-game inside the host's package limits
12
+ - **Checked on:** WeChat mini-game host (WebGL) on an iPhone 14, a vivo V40 and a cloud test of 10 phones, 2026-11-19 to
13
+ 2026-11-21; desktop WebGL (headless Chrome) since; no phone after 2026-11-21
14
+ - **Status:** from the game's HANDOFF: `npm run verify` passed with 125 of 125 tests on 2026-11-26; version 12.0.1 (about 29 MB)
15
+ was uploaded and sent to review on 2026-11-21; what came later (village, second character, cloth skirt) was seen only in desktop
16
+ Chrome, and the tree measured 37.1 MB on 2026-11-25, over the host's 30 MB, so it has not been packaged again
17
+ - **Reference consumer:** ZhudaGameCenter `games/zhuda-dao` (outside this repository; the workspace is not under version control)
18
+ - **Engine version:** zhuda-laya-engine 1.18.0 at `def94aae9e7ebf5f9f35b915b54dbb4c3e5fe43c` (the game's `package.json`; its
19
+ `README.md` still names the earlier pin `a5dfc6b…`: trust `package.json`). Moved to 2.0.0 (`91d21f79`) on 2026-11-26: `npm run verify` 125 of 125 before and after, `roll-check` 7 of 7 and `aim-check` 8 of 8 on the web build; the mini-game package was not rebuilt (the game's own code of 2026-11-25 is refused by the mini-game build for a browser API, and its main package is over the limit: neither comes from the engine)
20
+
21
+ ## When to take this route
22
+
23
+ Real-time 3D action for a mini-game host, where package size, fill rate and memory on a phone shape the design as much as the
24
+ rules do. Read [new-game-project](new-game-project.md), [game-rules-first](game-rules-first.md),
25
+ [mini-game-build](mini-game-build.md) and [good-looking-3d-scene](good-looking-3d-scene.md) first.
26
+
27
+ Not for one large monster with frame-data moves ([hunting-action-3d](hunting-action-3d.md)), a 2D game ([game-2d](game-2d.md)),
28
+ realistic layered clothing ([layered-cloth-on-body](layered-cloth-on-body.md)) or a character made from nothing
29
+ ([rigged-phone-character](rigged-phone-character.md), [model-from-dcc](model-from-dcc.md)). Nothing here is networked
30
+ (`online-lockstep-match`); for the mobile web rather than a host, see `mobile-always-landscape`.
31
+
32
+ ## Tools
33
+
34
+ - Engine pin as above. Node 24 or later, TypeScript 5.9.3, `@gltf-transform/*` ^4.1.1, `meshoptimizer` ^0.22.0, `sharp` ^0.34.4;
35
+ LayaAir 3.4.2 command line through `zhuda-laya-minigame` ([mini-game packaging](../minigame-packaging.md)).
36
+ - WeChat developer tools by its command line (`preview`, `upload`; version not recorded) and the owner's `wxgame` helper (`lower`,
37
+ `subpack`, `check-pkg`) from the workspace's WeChat skill: not part of the game or the engine.
38
+ - Blender, headless (5.2 with the VRM add-on is named once), Cycles for baking. Pictures come from an image model the records call
39
+ gpt-image-2.6, meshes from an image-to-3D tool they call Pixal3D (preset `balanced`). The second character is a VRoid avatar
40
+ whose own VRM meta states its licence: read it before any reuse.
41
+ - Voice and music from the owner's local skills; sounds are CC0 recordings (`art/sfx-candidates/SOURCES.tsv`); the brush font is
42
+ Ma Shan Zheng (SIL OFL 1.1). `art/` (3.6 GB of sources) never ships; `public/assets/` (34 MB) is what a package is cut from.
43
+
44
+ ## Steps
45
+
46
+ ### Project, build, package
47
+
48
+ 1. **Configure and boot.** `zhuda.config.json`: `renderer: "webgl"`, features `core, 3d, gltf, postProcess`, viewport 1334 × 750
49
+ `fixedheight`; `ZhudaEngine.boot({ …, dprCap: 2 })` in `src/Main.ts`. `enableHighPerformanceMode` and
50
+ `enableHighPerformanceModePlus` under `minigame.targets.wxgame` reach `game.json` (seen 2026-11-21).
51
+ 2. **Read files through the host.** `src/assets.ts PlatformAssetProvider` ([asset loading](../asset-loading.md)) reads with
52
+ `wx.getFileSystemManager().readFile` in the host and `fetch` in a browser; give it to `new ZhudaModelLibrary({ provider })`.
53
+ Import `src/polyfills.ts` first.
54
+ 3. **One folder per subpackage** under `public/assets/`: `ui-main` (the font; main package), `sub` (scenery, UI art, sounds),
55
+ `hero`, `zhuer`, `mobs`, `allies`, `bosses`, `dragon`, `drift`, `bgm1`, `bgm2`, `voice`, `sticker`.
56
+ `platform.ts loadSubpackage` loads `sub` and `hero` under the boot screen, monsters in the background, the rest when wanted.
57
+ Nothing is downloaded: every asset rides in the package.
58
+ 4. **Build, lower, cut, measure.**
59
+ ```sh
60
+ npm run build:minigame -- --platform wxgame
61
+ wxgame lower dist/minigames/wxgame/game --appid <app id> --name zhuda-dao --orientation landscape # syntax for the host
62
+ for p in sub hero mobs allies bosses dragon bgm1 bgm2 voice drift sticker zhuer; do
63
+ wxgame subpack dist/minigames/wxgame/game assets/$p --name $p; done # then the helper's check-pkg
64
+ ```
65
+ The host's limits in the records: main package 4096 KB, each subpackage 4 MB, 30720 KB in all. The server counts the main
66
+ package about 4% above the local files (3,788,152 bytes were 3,939,619 there, 2026-11-19): keep `check-pkg`'s main `bytes`
67
+ under about 4,000,000. `maxMainPackageBytes` is 30 MB because the engine's gate runs before the cut. `subpack` reports "main
68
+ still over" part-way: no `set -e`.
69
+ 5. **Preview on a phone**: the developer tools' `preview --project <dir> --qr-format image --qr-output <png>` in the background
70
+ with no timeout; `upload` under `timeout 1200`. Record the sizes the server prints.
71
+
72
+ ### Characters
73
+
74
+ 6. **Monsters and bosses from pictures.** Picture → image-to-3D → `tools/slim-model.mjs` (`RATIO` 0.25–0.3 with 1024 px textures;
75
+ 0.1 with 512 px read as faceted lumps) → `blender -b -P tools/blender-bake-rig.py -- <high> <low> <out> <kind>` (bakes a normal
76
+ map and AO from high to low; fits a skeleton by shape: `serpent`, `quadruped`, `golem`, `robed`; its own nearest-two-bones
77
+ weights; clips Idle, a move, Attack, Hit, Die) → `tools/quantize-model.mjs` (`KHR_mesh_quantization`, about half the download).
78
+ See [model pipeline](../model-pipeline.md).
79
+ 7. **The hero's robe on spring bones.** `tools/blender-robe.py` builds the robe on the body and adds 26 cloth bones no clip
80
+ drives; `DROP_ANIM='^(skirt|sash|sleeve)\.' node tools/quantize-model.mjs` drops the keys Blender writes for them.
81
+ `src/cloth.ts ClothSwing` runs `ZhudaSpringBones` ([spring bones](../spring-bones.md)) after `anim.update`: skirt stiffness 9 /
82
+ drag 5, sash 4 / 2.5, sleeves 7 / 4, sphere colliders on legs and belly; `reset()` when the model jumps more than 1.5 m.
83
+ 8. **A VRM avatar as a playable character.** `bash tools/zhuer-build.sh <source.vrm>` (about a minute): `blender-zhuer-rig.py`
84
+ (40,600 → 17,000 triangles), `blender-zhuer-clips.py` (29 clips keyed in code; `--analyze` and `tools/zhuer-clipcheck.py`
85
+ measure jerks and limbs inside the body), `quantize-model.mjs`, then `tools/zhuer-vrm.mjs` writes `VRMC_vrm` and
86
+ `VRMC_springBone` back by bone name, so `new ZhudaVrm(model, { mtoon: false })` applies them ([VRM](../vrm.md)). VRoid's
87
+ springs suit a standing avatar: retuned in `TUNE` (twin tails gravity 0.25, drag 0.5; skirt flaps stiffness 4.4, drag 0.6,
88
+ gravity 0.3). Drawn with `ZhudaToonMaterial` (`src/toon-hero.ts`, [stylized shading](../stylized-shading.md)): lit as the world
89
+ is, her skin was plaster grey.
90
+ 9. **A skirt as cloth.** `src/skirt-cloth.ts`: `createZhudaClothTube` and `ZhudaCloth` ([cloth](../cloth.md)), 40 × 13 particles
91
+ in the skirt's measured profile, waistband sewn to hips, spine and chest, kind of cloth from `zhuda-engine-prefabs/systems/cloth-presets`.
92
+ `SKIRT_TUNE`: feels 0.2 of her motion and 0.45 of her turning, strays 2 cm (waist) to 17 cm (hem) from its skinned shape,
93
+ backstop 0.5–1.2 cm, bend `1e-5`, gravity 8, step 1/240 s. Check: `node tools/zhuer-skirt.mjs <url> <dir>` (longest stretch
94
+ 39%, nothing over 1 cm inside the body, 2026-11-25).
95
+ 10. **Fewer triangles at the low setting.** `node tools/make-lod.mjs` writes `<model>.lod.bin` (meshoptimizer
96
+ `simplifyWithAttributes`, error limit 5%: hero 57,874 → 20,255 triangles); `src/lod.ts` writes that list over the mesh's own.
97
+ For levels by distance use `zhuda-laya-lod` ([model LOD](../model-lod.md)).
98
+ 11. **Clips.** `src/animated.ts` on `ZhudaAnimationBlend` ([animation control](../animation-control.md)): 0.1 s cross-fades into
99
+ attacks, gaits swapped in step and played at the feet's measured ground speed, `STANDS_IN` for clips a model lacks.
100
+
101
+ ### Rules, bosses, story
102
+
103
+ 12. **Rules first, shared rules synced.**
104
+ `node node_modules/zhuda-engine-prefabs/scripts/sync.mjs . systems/pig-combat systems/cloth-presets` copies them to
105
+ `src/common/systems/`. `src/combat.ts` (no LayaAir, seeded randomness) builds on `pig-combat`'s `JOBS`, `pressAttack`,
106
+ `stepCombat`, `REACH` and `struck`: `createBattle(…)`, then `step(battle, dt)` returns `BattleEvent[]`. The view decides
107
+ nothing: `Main.ts` steps the battle each frame and turns events into `vfx.ts` effects and sounds; `actors.ts` draws each
108
+ `Enemy` from a pool of rigged copies and stretches its Attack clip to the wind-up. What only this game wants is changed on its
109
+ in-memory `JOBS` at load, never in the synced file. The engine's [combat runtime](../combat-runtime.md) is not used.
110
+ 13. **Enemies, bosses and stages as tables** in `combat.ts`: `STATS`, `BARS` and `PHASES` (three health bars, each a way of
111
+ fighting: damage 0.8 / 1.0 / 1.3, pause after a blow 1.6 / 1.0 / 0.6), `tierAt` (realms scaling life and damage), `ELITE`,
112
+ `AFFIX`, `KING`; arenas and walkable land in `world.ts`. Every enemy attack is a ground shape (circle, line, cone) filling
113
+ over its wind-up; `fairWindup(shape)` keeps each at least 0.25 s of reaction plus the walk out at 5 m/s, and a test checks
114
+ every move. Balance with scripted players in `tests/` first.
115
+ 14. **Story as data.** `story.ts LINES` (id, speaker, text, emotion) and `SCENES`; the voice batch is generated from `LINES` and
116
+ shipped as 40 kbit/s mono mp3, `public/assets/voice/<id>.mp3`. `staging.ts STAGED` directs a boss scene beat by beat: a camera
117
+ for each line (`close`, `over`, `low`, `two`, `wide`), a clip, a head gesture on the `head` bone, cues at a share of the line.
118
+ `sound.ts` ducks music to 28% under a line ([audio](../audio.md)).
119
+
120
+ ### Scene, camera, touch
121
+
122
+ 15. **World.** `ZhudaTerrain3D` ([terrain](../terrain-shader.md)), `ZhudaInstancedMesh` for trees
123
+ ([instanced meshes](../instanced-meshes.md)), one `ZhudaSceneLook` a scene with `quality`, `scale`, and `cameraPasses` only
124
+ where there is water ([quality route](../quality-route.md)). Build only the land the stage uses and close it with rising
125
+ ground and trees, not an unseen wall.
126
+ 16. **Camera.** `ZhudaCameraRig` ([3D integration](../3d-integration.md)) in `orbit` mode (2.5–12 m), lowest pitch 13°, the sight
127
+ line kept above `World.heightAt`; pulled to 0.45 m before the first blocker (`World.cameraClear`: trunks, pillars, monsters,
128
+ roofs), in at once and out slowly.
129
+ 17. **Touch in landscape** (`Main.ts`, `skill-bar.ts`). A fixed stick bottom-left (safe-area left + 170, bottom − 170 design px,
130
+ radius 86; a press within 150 px walks); a drag anywhere else turns the camera. Four round skill buttons bottom-right (radius
131
+ 64 under the thumb, 50 for the rest). A tap casts where the player aims: stick direction or facing, the nearest enemy within
132
+ 60° either side and 12 m, else 2 m ahead. Hold and drag opens an aim wheel of 230 px centred on the finger (dead zone 16 px,
133
+ reach `u^1.6`, a cancel zone). A press in the last 0.3 s of a cooldown is kept. Close buttons keep 72 design px clear of the
134
+ host's capsule (`platform.ts clearOfCapsule`).
135
+
136
+ ### Performance, memory, saving, host
137
+
138
+ 18. **Quality levels** (`settings.ts`). Low, the host's default: look 0, `renderScale` 0.7, 1024 shadow map, no particles in
139
+ fights, LOD, blob shadows. High: look 2, full scale. `platform.ts setFrameRate` (`wx.setPreferredFramesPerSecond`): 30 outside
140
+ fights, 60 in fights and while loading (at low, 30 again if a 4 s mean is under 42).
141
+ 19. **Loading.** Build the scene in steps under an opaque screen with `camera.enableRender = false`, yield a frame only when 45 ms
142
+ have passed, then switch things on in batches while shaders compile ([shader warm-up](../shader-warm-up.md)).
143
+ 20. **Between scenes.** `src/resources.ts`: `markBaseline()` once the title is up, `sweepScene()` after `scene.destroy(true)`;
144
+ anything cached across scenes sets `lock = true`.
145
+ 21. **Saving.** One JSON under a versioned key through `platform.ts loadJson` / `saveJson` (`wx.setStorageSync` or
146
+ `localStorage`), `skills.ts migrate()` on every load, the place saved every 10 s and on hide.
147
+ 22. **Host manners** (`platform.ts`). `onHide` / `onShow` release the stick and keys; music is restarted when an ad closes, an
148
+ audio interruption ends, and on show; a rewarded video only from a button that says so, shown only when one has loaded. A
149
+ diagnostics line (five taps on the settings title, or `?debug`) shows load timings, safe area, capsule, and whether iOS
150
+ high-performance mode is on. Test hooks are installed only outside the host.
151
+
152
+ ## Pitfalls
153
+
154
+ - **Every quantized model failed on the iPhone** (the hero was missing, 2026-11-19). The engine's GLB intake turns
155
+ `KHR_mesh_quantization` back into floats with `TextEncoder`, which WeChat iOS lacks; `src/polyfills.ts` supplies it and
156
+ `TextDecoder`. Reproduce in Chrome by deleting `TextEncoder` before boot. Print load failures on screen.
157
+ - **Main package over the limit on the server, under it locally.** A full upload took 5–10 minutes and the tool's upload process
158
+ ends after exactly 10. Probe with a copy whose subpackage folders hold only `game.js`. Keep the font in the main package.
159
+ - **Killed for memory on the fourth dungeon visit** (iPhone, 2026-11-20). Destroying a `Scene3D` leaves its meshes, materials and
160
+ textures: about 580 a visit. Step 20. Also `renderer.materials` clones on every read (use `sharedMaterials`), and an unlocked
161
+ mesh cache swept away broke the way back to the village.
162
+ - **16–28 fps on a vivo V40 at low** (2026-11-20): fill rate, not script (about 0.3 ms a frame) nor shadows. `renderScale` 0.7
163
+ fixed it; LOD triangles and blob shadows came after a mid-range Android phone showed 22 fps.
164
+ - **12–15 s to enter the dungeon on the V40.** The time went to waiting for frames (99 under a 30 fps cap) with the 3D scene drawn
165
+ behind an opaque screen. With step 19 the V40 showed 2.3 s. Earlier, a portal check ran `enterWorld` three times over.
166
+ - **Effects that never showed.** Particles were simulated and never drawn (`renderer.render(camera)` was not called).
167
+ `UnlitMaterial.albedoIntensity` takes effect only when `albedoColor` is next set, so 32 fades did nothing (`vfx.ts liven()`). A
168
+ particle mesh kept its first draw count until the engine's `025dc21`; the game's own line for it in `fx.ts` can go.
169
+ - **HUD and markers misplaced on phones.** WeChat iOS gives a landscape game's `safeArea`, and at times its window size, in
170
+ portrait coordinates (`platform.ts safeArea()` turns them). LayaAir's `worldToViewportPoint` divides by `stage.clientScaleX`:
171
+ health bars sat at two thirds of their place. Project with `camera.projectionViewMatrix`, or the engine's `stage.worldToScreen`.
172
+ - **The brush font silently replaced on phones.** The host's canvas takes one family name, not a list and not one with a space,
173
+ while `wx.loadFont` reports success (`tools/font-rename.py`). The font is subset to the characters used: re-subset for new text.
174
+ - **Rigging.** IK hinge signs reversed turned each thigh half round its length and put skirt flaps between the legs; a collider
175
+ enclosing a spring's root never lets it settle; springs too stiff buzz (`tools/zhuer-springs.mjs` measures it); a root scaled
176
+ 1.25 needs its collider offsets and radii scaled too; `prune()` stripped UVs from untextured parts and they were not drawn; a
177
+ LOD index list must be reversed as LayaAir's glTF loader reverses its own.
178
+ - **Image-to-3D output.** Meshes are not closed (heat weights fail); the unseen back is invented (`--keep-front` cuts it off);
179
+ buildings came out crooked and were rebuilt in code (`src/village-build.ts`).
180
+ - **Two clocks.** The runtime pauses when the page loses focus ([platform adapters](../platform-adapters.md)), but LayaAir's own
181
+ `Animator` on cloned models plays on: set its speed to 0. A page started in a hidden pane has a 2 × 2 canvas and its shadows
182
+ stay broken: wait for 64 × 64.
183
+ - **Tool traps.** `auto-preview` hangs; repeated previews from one folder end in `compile_start` error 10 (copy the build
184
+ elsewhere); a screenshot stalls the page clock; saves are per origin, so serve `dist/web` on another port than the player's.
185
+
186
+ ## Engine gaps and their workarounds
187
+
188
+ No engine plan item is named for any of these in the game's records.
189
+
190
+ | Gap | Workaround in the game |
191
+ | --- | --- |
192
+ | GLB intake needs `TextDecoder` and `TextEncoder` (`packages/core/runtime3d/GltfIntake.ts`), absent on WeChat iOS | `src/polyfills.ts` **After 2.0.0:** the engine reads and writes that text itself where the host has neither (`zhudaUtf8Decode`, `zhudaUtf8Encode`); the polyfill is no longer needed for it. |
193
+ | `zhuda-laya-minigame` has no subpackage cut, orientation or syntax lowering; its size gate sees the whole output | the owner's `wxgame` helper; gate raised to 30 MB **After 2.0.0:** `minigame.syntaxTarget` (down to `es2017`) and `minigame.orientation` (written to `game.json`; refused for the signed quick-game targets). Subpackages and a size gate per package are still open. |
194
+ | `DirectoryAssetProvider` is refused in a mini-game build | `src/assets.ts` |
195
+ | No host bridge: safe area, capsule, frame rate, storage, ads, audio resume | `src/platform.ts` |
196
+ | Nothing releases what a destroyed scene leaves | `src/resources.ts` |
197
+ | No level of detail by quality setting on one mesh | `tools/make-lod.mjs`, `src/lod.ts` (private `_setIndexRange`, `_updateRenderParams`) |
198
+ | `ZhudaAnimationBlend` takes at most 32 clips a model | `STANDS_IN` in `src/animated.ts` |
199
+ | Compressed textures did not fit: ASTC grew the package about 5 MB; Basis ([basis textures](../basis-textures.md)) needs WASM, off in this build | smaller JPEG and PNG (`tools/glb-shrink-texture.py`) |
200
+ | WeChat's engine plugin: the build refuses dropped pinned libraries, and WeChat had no LayaAir 3.4.2 plugin (2026-11-21) | not used; patch kept in `tools/patches/` |
201
+
202
+ ## Checks
203
+
204
+ All from the game's HANDOFF; none was re-run for this page.
205
+
206
+ - `npm run verify` (build, `tsc --noEmit`, Doctor, `node --test`): 125 of 125 tests on 2026-11-26. No pixel is measured.
207
+ - In-game checks, headless, `node tools/<name>.mjs <url> <dir>`: `roll-check` 7 of 7 (2026-11-26); `aim-check` 8 of 8,
208
+ `enchant-check` 7 of 7, `sprint-check`, `zhuer-skirt` (2026-11-25); `zhuer-check`, `training-check` (2026-11-24, after the
209
+ engine upgrade); `village-reach` (2026-11-22). Some were edited later and not run again; `battle-check.mjs`, a bot playing the
210
+ whole loop, last passed on 2026-11-21 and is out of date.
211
+ - Memory, `node tools/mem-report.mjs <url> <dir> low` (its own estimate, as `Resource.gpuMemory` leaves out most textures;
212
+ 2026-11-21, desktop Chrome): textures about 148 MB (82 MB inside models), script heap 95–129 MB.
213
+ - In the host: iPhone 14, low, 2026-11-19: menu 55 fps, hub 57–59, dungeon 55–57; high: 21–23 in the dungeon. vivo V40, low,
214
+ 2026-11-21: dungeon entry 2.3 s, fights 29–34 fps under a 30 cap; high: 12–22.
215
+ - WeChat cloud test of 12.0.1 (2026-11-21; 2 iPhones, 8 Android phones): no failed device, no script error; start 2.2–6.9 s;
216
+ 28 fps average under the 30 cap; Android memory 730–1146 MB on average, peak 1296 MB; 78–141 draw calls. Report under `art/qa/`.
217
+ - Sizes from the server (2026-11-21): main 3955 KB of 4096, all 29063 KB of 30720. On 2026-11-22 it refused a main of 4103 KB.
218
+
219
+ ## Not checked
220
+
221
+ - On a phone, anything after 2026-11-21: the village, the second character, VRM springs (93 bones), the cloth skirt (1.25 ms a
222
+ frame on the development Mac only), sprint, roll, and low at a 60 fps target with LOD.
223
+ - The present tree as a package: 37.1 MB with a 12.9 MB `sub` folder (2026-11-25). It must be split and slimmed.
224
+ - The outcome of the review of 12.0.1, any release, and whether iOS high-performance mode was switched on in the account's backend
225
+ (the `game.json` flags alone do not do it).
226
+ - Remote (downloaded) assets, compressed textures in a package, WebGPU, any host but WeChat, engine 2.0.0; the second and third
227
+ bosses and the ending in play (their art is parked in `art/later/`); timings as felt by other players.
228
+
229
+ ## Boundaries
230
+
231
+ - **Game:** its rules above the shared ones (`combat.ts`, `skills.ts`), story and staging tables, world, UI, `platform.ts`, the
232
+ asset tools under `tools/` (some hold paths of the machine they were written on: pass paths explicitly) and all art.
233
+ - **Prefab library:** `zhuda-engine-prefabs/systems/pig-combat` (rounds, reach, hits) and `zhuda-engine-prefabs/systems/cloth-presets` (kinds of cloth,
234
+ wind). Change them there and sync; `sync.mjs . --check` says whether a copy has drifted.
235
+ - **Engine:** boot, scene look, model library, clip blending, spring bones, cloth, VRM, toon material, terrain, instancing and the
236
+ mini-game build. The game imports only the package's public entries (Doctor checks it).
237
+ - **Owner:** the account, app id, ad units, review and release; each is asked first. Where the game is published is recorded in
238
+ the owner's portals (see `PORTALS.md` in the workspace).