Adds level prefabs, theme assets, audio, extensions, and deployment scripts for the Unity WebGL migration. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
816 B
Plaintext
17 lines
816 B
Plaintext
在 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 后点按钮,勿再使用勾选框。
|