feat: 支持游戏数值

This commit is contained in:
richarjiang
2025-09-22 17:34:28 +08:00
parent 954acfb725
commit 98742745eb
21 changed files with 1807 additions and 202 deletions

View File

@@ -52,7 +52,7 @@
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 40
"__id__": 46
},
"_id": "58132e64-0171-4c7f-89be-a2984ca7de6b"
},
@@ -69,10 +69,7 @@
"__id__": 3
},
{
"__id__": 12
},
{
"__id__": 22
"__id__": 15
},
{
"__id__": 25
@@ -83,6 +80,9 @@
{
"__id__": 31
},
{
"__id__": 34
},
{
"__id__": 6
}
@@ -90,13 +90,13 @@
"_active": true,
"_components": [
{
"__id__": 37
"__id__": 43
},
{
"__id__": 38
"__id__": 44
},
{
"__id__": 39
"__id__": 45
}
],
"_prefab": null,
@@ -256,23 +256,27 @@
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 7
},
{
"__id__": 8
},
{
"__id__": 9
},
}
],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 11
},
{
"__id__": 12
},
{
"__id__": 13
},
{
"__id__": 14
}
],
"_prefab": null,
@@ -305,6 +309,138 @@
},
"_id": "427Eu3altLCY5IWwO2+tVy"
},
{
"__type__": "cc.Node",
"_name": "hp",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 6
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 74.024,
"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": "ecC3GKT8RKJp+BT/ZByClA"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 37.369140625,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "963ckrHtRFxaNm7lV3WGay"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 104,
"b": 104,
"a": 255
},
"_string": "200",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "52qK+uInlOo79+KVljGtC7"
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -471,22 +607,22 @@
},
"_children": [
{
"__id__": 13
"__id__": 16
},
{
"__id__": 16
"__id__": 19
}
],
"_active": true,
"_components": [
{
"__id__": 19
"__id__": 22
},
{
"__id__": 20
"__id__": 23
},
{
"__id__": 21
"__id__": 24
}
],
"_prefab": null,
@@ -525,116 +661,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 12
},
"_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": "dcjO1Ab2tDIbg6VVr9YHdO"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 2560
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "8aW0b4lGxCVbal8zQBKbyB"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "361c5873-d797-420e-be65-81c5a8f91215@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "37daNZffxGSq/F3WV+F0Y5"
},
{
"__type__": "cc.Node",
"_name": "WalkableLayer",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 12
"__id__": 15
},
"_children": [],
"_active": true,
@@ -674,7 +701,7 @@
"y": 0,
"z": 0
},
"_id": "23cuMKDVtPs71LOAe7QMgZ"
"_id": "dcjO1Ab2tDIbg6VVr9YHdO"
},
{
"__type__": "cc.UITransform",
@@ -686,6 +713,115 @@
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 2560
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "8aW0b4lGxCVbal8zQBKbyB"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 16
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "361c5873-d797-420e-be65-81c5a8f91215@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": "37daNZffxGSq/F3WV+F0Y5"
},
{
"__type__": "cc.Node",
"_name": "WalkableLayer",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
},
{
"__id__": 21
}
],
"_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": "23cuMKDVtPs71LOAe7QMgZ"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 19
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1056,
@@ -704,7 +840,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 16
"__id__": 19
},
"_enabled": true,
"__prefab": null,
@@ -726,7 +862,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 15
},
"_enabled": true,
"__prefab": null,
@@ -748,7 +884,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 15
},
"_enabled": true,
"__prefab": null,
@@ -766,12 +902,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
"__id__": 15
},
"_enabled": true,
"__prefab": null,
"tiledMap": {
"__id__": 20
"__id__": 23
},
"walkableLayerName": "WalkableLayer",
"tileSize": 32,
@@ -789,10 +925,10 @@
"_active": false,
"_components": [
{
"__id__": 23
"__id__": 26
},
{
"__id__": 24
"__id__": 27
}
],
"_prefab": null,
@@ -831,7 +967,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
"__id__": 25
},
"_enabled": true,
"__prefab": null,
@@ -853,7 +989,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
"__id__": 25
},
"_enabled": true,
"__prefab": null,
@@ -898,10 +1034,10 @@
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 29
},
{
"__id__": 27
"__id__": 30
}
],
"_prefab": null,
@@ -940,7 +1076,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 25
"__id__": 28
},
"_enabled": true,
"__prefab": null,
@@ -962,7 +1098,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 25
"__id__": 28
},
"_enabled": true,
"__prefab": null,
@@ -973,7 +1109,7 @@
"__id__": 4
},
"pathfinder": {
"__id__": 21
"__id__": 24
},
"moveSpeed": 300,
"mapWidth": 1080,
@@ -992,10 +1128,10 @@
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 32
},
{
"__id__": 30
"__id__": 33
}
],
"_prefab": null,
@@ -1034,7 +1170,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 28
"__id__": 31
},
"_enabled": true,
"__prefab": null,
@@ -1056,12 +1192,12 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 28
"__id__": 31
},
"_enabled": true,
"__prefab": null,
"tiledMap": {
"__id__": 20
"__id__": 23
},
"playerNode": {
"__id__": 6
@@ -1076,23 +1212,27 @@
"_parent": {
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 35
}
],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 38
},
{
"__id__": 33
"__id__": 39
},
{
"__id__": 34
"__id__": 40
},
{
"__id__": 35
"__id__": 41
},
{
"__id__": 36
"__id__": 42
}
],
"_prefab": null,
@@ -1125,13 +1265,145 @@
},
"_id": "64hUbaFA1A0bML+FS/Y6vp"
},
{
"__type__": "cc.Node",
"_name": "hp",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 34
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 36
},
{
"__id__": 37
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 74.024,
"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": "b1vbMsx55Du5MRaM373Ng4"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 35
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 37.369140625,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "321yIgVlFOb7Zz0gOVC7g1"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 35
},
"_enabled": true,
"__prefab": null,
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 104,
"b": 104,
"a": 255
},
"_string": "200",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 20,
"_fontSize": 20,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": "0dKht50epO0odvIcizJhWR"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": null,
@@ -1153,7 +1425,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"__prefab": null,
@@ -1192,7 +1464,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"__prefab": null,
@@ -1205,6 +1477,10 @@
{
"__uuid__": "88fe4ee4-900d-44af-a405-32ff388218da",
"__expectedType__": "cc.AnimationClip"
},
{
"__uuid__": "538a5504-bbb5-41a3-b7f8-b1b7041f7aac",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
@@ -1219,7 +1495,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"__prefab": null,
@@ -1247,7 +1523,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 31
"__id__": 34
},
"_enabled": true,
"__prefab": null,
@@ -1340,29 +1616,29 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 41
},
"shadows": {
"__id__": 42
},
"_skybox": {
"__id__": 43
},
"fog": {
"__id__": 44
},
"octree": {
"__id__": 45
},
"skin": {
"__id__": 46
},
"lightProbeInfo": {
"__id__": 47
},
"postSettings": {
"shadows": {
"__id__": 48
},
"_skybox": {
"__id__": 49
},
"fog": {
"__id__": 50
},
"octree": {
"__id__": 51
},
"skin": {
"__id__": 52
},
"lightProbeInfo": {
"__id__": 53
},
"postSettings": {
"__id__": 54
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
},