Loading.scene:
- LaunchFlow_Node 挂 LaunchFlow.ts
- start(): 显示「Loading...」 → 1s 后 director.loadScene('Login')
Login.scene:
- 实例化 Login_Layer.prefab(微信/手机/游客登录按钮)
- LoginFlow_Node 挂 LoginFlow.ts
- start(): 2s 后假装登录成功 → director.loadScene('MainMenu')
MainMenu.scene:
- 实例化 PlayerInfoView.prefab + SceneStart_Node
- SceneStart.bindTo(mockSession) → 控制台输出响应式链路验证
已实证:[SceneStart] bindTo 已触发 + [SceneStart] 改变 playerState
游戏启动流程与原 gameabc 工程对齐:
1. Loading 资源加载 → 2. Login 登录场景 → 3. MainMenu 大厅
Cocos build settings 需要手动把 3 个 scene 加到 scenes list,
MCP 暂不支持直接修改 build settings(已开 build panel)。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
664 lines
12 KiB
Plaintext
664 lines
12 KiB
Plaintext
[
|
|
{
|
|
"__type__": "cc.SceneAsset",
|
|
"_name": "MainMenu",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_native": "",
|
|
"scene": {
|
|
"__id__": 1
|
|
}
|
|
},
|
|
{
|
|
"__type__": "cc.Scene",
|
|
"_name": "MainMenu",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": null,
|
|
"_children": [
|
|
{
|
|
"__id__": 2
|
|
},
|
|
{
|
|
"__id__": 4
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [],
|
|
"_prefab": {
|
|
"__id__": 19
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"autoReleaseAssets": false,
|
|
"_globals": {
|
|
"__id__": 20
|
|
},
|
|
"_id": "01dad306-a70d-4860-91b4-043edbbafbb2"
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "Camera",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 3
|
|
}
|
|
],
|
|
"_prefab": null,
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 800,
|
|
"y": 360,
|
|
"z": 1000
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 33554432,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": "7djcrlBGZEcITPf3KQGAWx"
|
|
},
|
|
{
|
|
"__type__": "cc.Camera",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"_projection": 0,
|
|
"_priority": 0,
|
|
"_fov": 45,
|
|
"_fovAxis": 0,
|
|
"_orthoHeight": 360,
|
|
"_near": 1,
|
|
"_far": 2000,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 51,
|
|
"g": 51,
|
|
"b": 51,
|
|
"a": 255
|
|
},
|
|
"_depth": 1,
|
|
"_stencil": 0,
|
|
"_clearFlags": 7,
|
|
"_rect": {
|
|
"__type__": "cc.Rect",
|
|
"x": 0,
|
|
"y": 0,
|
|
"width": 1,
|
|
"height": 1
|
|
},
|
|
"_aperture": 19,
|
|
"_shutter": 7,
|
|
"_iso": 0,
|
|
"_screenScale": 1,
|
|
"_visibility": 1117782015,
|
|
"_targetTexture": null,
|
|
"_postProcess": null,
|
|
"_usePostProcess": false,
|
|
"_cameraType": -1,
|
|
"_trackingType": 0,
|
|
"_id": "07GGke2thALIz/TA33yXTc"
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "Canvas",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [
|
|
{
|
|
"__id__": 5
|
|
},
|
|
{
|
|
"__id__": 13
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 16
|
|
},
|
|
{
|
|
"__id__": 17
|
|
},
|
|
{
|
|
"__id__": 18
|
|
}
|
|
],
|
|
"_prefab": null,
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 800,
|
|
"y": 360,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 33554432,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": "d0OZuAFOdPN4yNmWUNfH4/"
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_objFlags": 0,
|
|
"_parent": {
|
|
"__id__": 4
|
|
},
|
|
"_prefab": {
|
|
"__id__": 6
|
|
},
|
|
"__editorExtras__": {}
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 5
|
|
},
|
|
"asset": {
|
|
"__uuid__": "9dd8661c-f764-4e33-b5be-47e02a7d6f41",
|
|
"__expectedType__": "cc.Prefab"
|
|
},
|
|
"fileId": "dflMFKQ9RAybmIkPF8a3Q5",
|
|
"instance": {
|
|
"__id__": 7
|
|
},
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInstance",
|
|
"fileId": "6c4l8+giRIHozt3w35/Mqa",
|
|
"prefabRootNode": null,
|
|
"mountedChildren": [],
|
|
"mountedComponents": [],
|
|
"propertyOverrides": [
|
|
{
|
|
"__id__": 8
|
|
},
|
|
{
|
|
"__id__": 10
|
|
},
|
|
{
|
|
"__id__": 11
|
|
},
|
|
{
|
|
"__id__": 12
|
|
}
|
|
],
|
|
"removedComponents": []
|
|
},
|
|
{
|
|
"__type__": "CCPropertyOverrideInfo",
|
|
"targetInfo": {
|
|
"__id__": 9
|
|
},
|
|
"propertyPath": [
|
|
"_name"
|
|
],
|
|
"value": "PlayerInfoView"
|
|
},
|
|
{
|
|
"__type__": "cc.TargetInfo",
|
|
"localID": [
|
|
"dflMFKQ9RAybmIkPF8a3Q5"
|
|
]
|
|
},
|
|
{
|
|
"__type__": "CCPropertyOverrideInfo",
|
|
"targetInfo": {
|
|
"__id__": 9
|
|
},
|
|
"propertyPath": [
|
|
"_lpos"
|
|
],
|
|
"value": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 100,
|
|
"z": 0
|
|
}
|
|
},
|
|
{
|
|
"__type__": "CCPropertyOverrideInfo",
|
|
"targetInfo": {
|
|
"__id__": 9
|
|
},
|
|
"propertyPath": [
|
|
"_lrot"
|
|
],
|
|
"value": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
}
|
|
},
|
|
{
|
|
"__type__": "CCPropertyOverrideInfo",
|
|
"targetInfo": {
|
|
"__id__": 9
|
|
},
|
|
"propertyPath": [
|
|
"_euler"
|
|
],
|
|
"value": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
}
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "SceneStart_Node",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 4
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 14
|
|
},
|
|
{
|
|
"__id__": 15
|
|
}
|
|
],
|
|
"_prefab": null,
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_lrot": {
|
|
"__type__": "cc.Quat",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0,
|
|
"w": 1
|
|
},
|
|
"_lscale": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1,
|
|
"y": 1,
|
|
"z": 1
|
|
},
|
|
"_mobility": 0,
|
|
"_layer": 33554432,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": "059BX4TmBCbJGuOMADN04x"
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 13
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 100,
|
|
"height": 100
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": "ad6zw9H8xCgYtFX6YPi2hc"
|
|
},
|
|
{
|
|
"__type__": "c9dc3Tde6BMC7Mls6KOasWP",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 13
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"playerInfoView": {
|
|
"__id__": 5
|
|
},
|
|
"_id": "71sC3fRo9AlJB8e0yO9EEd"
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 4
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 1600,
|
|
"height": 720
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": "6274b4Z/9IXYDp9Clna4RX"
|
|
},
|
|
{
|
|
"__type__": "cc.Canvas",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 4
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"_cameraComponent": null,
|
|
"_alignCanvasWithScreen": true,
|
|
"_id": "b1/h1c5fhHpZ4e5sqyQErQ"
|
|
},
|
|
{
|
|
"__type__": "cc.Widget",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 4
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": null,
|
|
"_alignFlags": 45,
|
|
"_target": null,
|
|
"_left": 0,
|
|
"_right": 0,
|
|
"_top": 0,
|
|
"_bottom": 0,
|
|
"_horizontalCenter": 0,
|
|
"_verticalCenter": 0,
|
|
"_isAbsLeft": true,
|
|
"_isAbsRight": true,
|
|
"_isAbsTop": true,
|
|
"_isAbsBottom": true,
|
|
"_isAbsHorizontalCenter": true,
|
|
"_isAbsVerticalCenter": true,
|
|
"_originalWidth": 1600,
|
|
"_originalHeight": 720,
|
|
"_alignMode": 1,
|
|
"_lockFlags": 0,
|
|
"_id": "ddhGTSZv1A16Z7oa16BAcY"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": null,
|
|
"asset": null,
|
|
"fileId": "01dad306-a70d-4860-91b4-043edbbafbb2",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": [
|
|
{
|
|
"__id__": 5
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"__type__": "cc.SceneGlobals",
|
|
"ambient": {
|
|
"__id__": 21
|
|
},
|
|
"shadows": {
|
|
"__id__": 22
|
|
},
|
|
"_skybox": {
|
|
"__id__": 23
|
|
},
|
|
"fog": {
|
|
"__id__": 24
|
|
},
|
|
"octree": {
|
|
"__id__": 25
|
|
},
|
|
"skin": {
|
|
"__id__": 26
|
|
},
|
|
"lightProbeInfo": {
|
|
"__id__": 27
|
|
},
|
|
"postSettings": {
|
|
"__id__": 28
|
|
},
|
|
"bakedWithStationaryMainLight": false,
|
|
"bakedWithHighpLightmap": false
|
|
},
|
|
{
|
|
"__type__": "cc.AmbientInfo",
|
|
"_skyColorHDR": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.5,
|
|
"z": 0.8,
|
|
"w": 0.520833125
|
|
},
|
|
"_skyColor": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.5,
|
|
"z": 0.8,
|
|
"w": 0.520833125
|
|
},
|
|
"_skyIllumHDR": 20000,
|
|
"_skyIllum": 20000,
|
|
"_groundAlbedoHDR": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.2,
|
|
"z": 0.2,
|
|
"w": 1
|
|
},
|
|
"_groundAlbedo": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.2,
|
|
"z": 0.2,
|
|
"w": 1
|
|
},
|
|
"_skyColorLDR": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.5,
|
|
"z": 0.8,
|
|
"w": 1
|
|
},
|
|
"_skyIllumLDR": 20000,
|
|
"_groundAlbedoLDR": {
|
|
"__type__": "cc.Vec4",
|
|
"x": 0.2,
|
|
"y": 0.2,
|
|
"z": 0.2,
|
|
"w": 1
|
|
}
|
|
},
|
|
{
|
|
"__type__": "cc.ShadowsInfo",
|
|
"_enabled": false,
|
|
"_type": 0,
|
|
"_normal": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 1,
|
|
"z": 0
|
|
},
|
|
"_distance": 0,
|
|
"_planeBias": 1,
|
|
"_shadowColor": {
|
|
"__type__": "cc.Color",
|
|
"r": 0,
|
|
"g": 0,
|
|
"b": 0,
|
|
"a": 76
|
|
},
|
|
"_maxReceived": 4,
|
|
"_size": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 1024,
|
|
"y": 1024
|
|
}
|
|
},
|
|
{
|
|
"__type__": "cc.SkyboxInfo",
|
|
"_envLightingType": 0,
|
|
"_envmapHDR": null,
|
|
"_envmap": null,
|
|
"_envmapLDR": null,
|
|
"_diffuseMapHDR": null,
|
|
"_diffuseMapLDR": null,
|
|
"_enabled": false,
|
|
"_useHDR": true,
|
|
"_editableMaterial": null,
|
|
"_reflectionHDR": null,
|
|
"_reflectionLDR": null,
|
|
"_rotationAngle": 0
|
|
},
|
|
{
|
|
"__type__": "cc.FogInfo",
|
|
"_type": 0,
|
|
"_fogColor": {
|
|
"__type__": "cc.Color",
|
|
"r": 200,
|
|
"g": 200,
|
|
"b": 200,
|
|
"a": 255
|
|
},
|
|
"_enabled": false,
|
|
"_fogDensity": 0.3,
|
|
"_fogStart": 0.5,
|
|
"_fogEnd": 300,
|
|
"_fogAtten": 5,
|
|
"_fogTop": 1.5,
|
|
"_fogRange": 1.2,
|
|
"_accurate": false
|
|
},
|
|
{
|
|
"__type__": "cc.OctreeInfo",
|
|
"_enabled": false,
|
|
"_minPos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": -1024,
|
|
"y": -1024,
|
|
"z": -1024
|
|
},
|
|
"_maxPos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 1024,
|
|
"y": 1024,
|
|
"z": 1024
|
|
},
|
|
"_depth": 8
|
|
},
|
|
{
|
|
"__type__": "cc.SkinInfo",
|
|
"_enabled": true,
|
|
"_blurRadius": 0.01,
|
|
"_sssIntensity": 3
|
|
},
|
|
{
|
|
"__type__": "cc.LightProbeInfo",
|
|
"_giScale": 1,
|
|
"_giSamples": 1024,
|
|
"_bounces": 2,
|
|
"_reduceRinging": 0,
|
|
"_showProbe": true,
|
|
"_showWireframe": true,
|
|
"_showConvex": false,
|
|
"_data": null,
|
|
"_lightProbeSphereVolume": 1
|
|
},
|
|
{
|
|
"__type__": "cc.PostSettingsInfo",
|
|
"_toneMappingType": 0
|
|
}
|
|
] |