Files
cocos/assets/scenes/场景搭建说明.txt
刘宇飞 d393302388 Complete Cocos Creator port with level bundles, themes, and tooling.
Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 15:30:58 +08:00

17 lines
816 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
在 Cocos Creator 3.8.8 中:
1. 新建场景 → 保存为 main.scene与本目录同级
2. 创建空节点 AppRoot添加组件 AppBootstrap脚本路径 assets/scripts/AppBootstrap.ts
3. 项目设置中将 main 设为启动场景
4. 点击播放即可
在 AppRoot 上可同时挂 GameController、GameManager也可由 AppBootstrap 自动添加)。
预览运行时:
1) 画面顶部有「切换关卡」按钮(最可靠);
2) 选中 AppRoot
- 展开 GameController → 填 inputLevel原生字段
- 展开 AppBootstrap → 预览 ▶ 后点底部 SwitchLevel
或菜单:扩展 → SwitchLevel当前选中 AppRoot
须启用 game-controller-inspector v3.1;改版本后请重启 Cocos 再刷新扩展。
填写 inputLevel 后点按钮,勿再使用勾选框。