nomadro/apps/minigame-cocos/docs/SCENE_SETUP.md
Eric 58a845db32 Add WeChat minigame triple-engine scaffold with Godot Chiang Mai plaza SoT.
Unity and Cocos stay as parallel schemes; apps/minigame ships the Godot 4.7 WeChat pack for DevTools.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-06 20:17:14 +08:00

881 B
Raw Permalink Blame History

Cocos 场景挂载(3.8.6)

最快路径

  1. Creator 3.8.6 打开 apps/minigame-cocos(本机:tools/CocosCreator-3.8.6,说明见 tools/README-COCOS.md)
  2. 资源管理器打开 assets/scenes/Main.scene(已挂 Game + AutoSceneSetup)
  3. 点顶部 预览(▶):运行时生成 pastel 城市 / 玩家 / 第三人称相机 / HUD
  4. 构建 → 微信小游戏 → build/wechatgame(勿覆盖 apps/minigame Unity 导出)

手动挂线(可选)

若不用 AutoSceneSetup,根节点挂 GameRoot,并拖拽:

属性 组件
player PlayerMotor
cameraFollow CameraFollow
world WorldBootstrap
hud HudView
joystick VirtualJoystick
playerNode 玩家节点

操作

  • 左半屏拖动摇杆 / WASD 移动
  • 右半屏拖动旋转相机
  • 右侧点按 / E / Space 互动