英雄碎片完成

This commit is contained in:
2024-12-16 20:32:04 +08:00
parent 4ef310674a
commit 85e43929ad
13 changed files with 2904 additions and 18691 deletions

View File

@@ -0,0 +1,726 @@
[
{
"__type__": "cc.Prefab",
"_name": "hchip",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "hchip",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 8
},
{
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 32
},
"_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
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_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
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cbSBQ5CChPKZil6CARGTEu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@efaae",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "83GQNfdWBG0Is4cpe8aO1j"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "46DOl9N11ODbq/t6nR9eoM",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "hero",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 9
}
],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 17
},
{
"__id__": 19
}
],
"_prefab": {
"__id__": 21
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.345,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.85,
"y": 0.85,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 8
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 10
},
{
"__id__": 12
}
],
"_prefab": {
"__id__": 14
},
"_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": 0.9,
"y": 0.9,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
},
"_enabled": true,
"__prefab": {
"__id__": 11
},
"_contentSize": {
"__type__": "cc.Size",
"width": 130,
"height": 143
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58cDVDv9NNHpOe9wD+hWsa"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 9
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "37051f6a-2eb0-4e6f-8e6b-c8aa7bc1066d@f9fc4",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "edi51irzpKDKLz+RbshuSX"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ed+GboCMtMA5j7D4t/yuYW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_contentSize": {
"__type__": "cc.Size",
"width": 80,
"height": 64
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "15DYj/iRRLkIiSvFKzIAaF"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 18
},
"_type": 3,
"_inverted": false,
"_segments": 64,
"_alphaThreshold": 0.1,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2fhdxMbT1G1YFGRp1uFNb5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 20
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@efaae",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8fddGLxJhK9IaZrqfS4C0k"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "34v809MiVNZKfhzLdaM9+C",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 25
}
],
"_prefab": {
"__id__": 27
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 33.213,
"y": -20.513,
"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
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 24
},
"_contentSize": {
"__type__": "cc.Size",
"width": 4,
"height": 39.28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4e6kAMVQVCKr64qCyPdQh2"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 26
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 25,
"_fontSize": 25,
"_fontFamily": "Arial",
"_lineHeight": 28,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"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": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0eoM4xum5LW4uxUulIB6RF"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "93NuxDljtBl7yjMhAtOsiF",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 29
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bafb2QLFdOPYA6doPdH0gj"
},
{
"__type__": "dc8e3zoHO1Bq7v2cjEJd0Za",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2abo5QNJNPaaTBw72vR7ji"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "1331ab21-9111-4f46-b039-db7ab85aef63",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "hchip"
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 KiB

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -17,7 +17,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{139,498},{71,71}}</string>
<string>{{159,67},{71,71}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -34,7 +34,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{80,297},{65,63}}</string>
<string>{{62,473},{65,63}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -51,9 +51,9 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{63,171},{59,65}}</string>
<string>{{1,434},{59,65}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1004.png</key>
<dict>
@@ -68,7 +68,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{80,362},{77,65}}</string>
<string>{{74,140},{77,65}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -85,7 +85,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{130,171},{77,61}}</string>
<string>{{153,207},{77,61}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -102,7 +102,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{147,297},{77,63}}</string>
<string>{{74,207},{77,63}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -119,7 +119,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{74,429},{67,67}}</string>
<string>{{64,335},{67,67}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -136,7 +136,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,567},{71,71}}</string>
<string>{{1,140},{71,71}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -153,9 +153,9 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{1,1},{54,60}}</string>
<string>{{1,625},{54,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1010.png</key>
<dict>
@@ -170,7 +170,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{63,1},{62,54}}</string>
<string>{{183,538},{62,54}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -187,9 +187,9 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{127,1},{54,60}}</string>
<string>{{123,596},{54,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1013.png</key>
<dict>
@@ -204,9 +204,9 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{65,113},{56,60}}</string>
<string>{{1,501},{56,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1014.png</key>
<dict>
@@ -221,7 +221,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{189,1},{54,60}}</string>
<string>{{57,652},{54,60}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -238,7 +238,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{1,57},{62,54}}</string>
<string>{{183,594},{62,54}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -255,9 +255,9 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{65,57},{54,60}}</string>
<string>{{1,687},{54,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1017.png</key>
<dict>
@@ -272,7 +272,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{127,113},{56,60}}</string>
<string>{{59,538},{56,60}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -289,9 +289,9 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{189,113},{56,60}}</string>
<string>{{1,563},{56,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>1019.png</key>
<dict>
@@ -306,7 +306,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{1,169},{56,60}}</string>
<string>{{121,538},{56,60}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -323,7 +323,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{127,57},{54,60}}</string>
<string>{{179,650},{54,60}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -340,7 +340,7 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{1,113},{62,54}}</string>
<string>{{59,596},{62,54}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -357,9 +357,43 @@
<key>spriteSourceSize</key>
<string>{70,70}</string>
<key>textureRect</key>
<string>{{189,57},{54,60}}</string>
<string>{{119,658},{54,60}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>2007.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{120,64}</string>
<key>spriteSourceSize</key>
<string>{120,64}</string>
<key>textureRect</key>
<string>{{1,1},{120,64}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>2008.png</key>
<dict>
<key>aliases</key>
<array/>
<key>anchor</key>
<string>{0.5,0.5}</string>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{120,64}</string>
<key>spriteSourceSize</key>
<string>{120,64}</string>
<key>textureRect</key>
<string>{{123,1},{120,64}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>3001.Png</key>
<dict>
@@ -374,7 +408,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{74,571},{77,71}}</string>
<string>{{1,67},{77,71}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -391,7 +425,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{153,571},{77,71}}</string>
<string>{{80,67},{77,71}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -408,9 +442,9 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,358},{77,63}}</string>
<string>{{1,213},{77,63}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>3004.Png</key>
<dict>
@@ -425,7 +459,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{159,362},{77,65}}</string>
<string>{{153,140},{77,65}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -442,7 +476,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,232},{77,61}}</string>
<string>{{153,270},{77,61}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -459,9 +493,9 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{80,234},{61,65}}</string>
<string>{{1,367},{61,65}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>9002.Png</key>
<dict>
@@ -476,7 +510,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,423},{71,65}}</string>
<string>{{145,333},{71,65}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -493,9 +527,9 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{147,234},{73,61}}</string>
<string>{{1,292},{73,61}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>9004.Png</key>
<dict>
@@ -510,7 +544,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,295},{77,61}}</string>
<string>{{66,272},{77,61}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -527,7 +561,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{143,429},{67,67}}</string>
<string>{{133,400},{67,67}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -544,7 +578,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{1,490},{67,67}}</string>
<string>{{64,404},{67,67}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -561,7 +595,7 @@
<key>spriteSourceSize</key>
<string>{77,77}</string>
<key>textureRect</key>
<string>{{70,498},{67,67}}</string>
<string>{{133,469},{67,67}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -577,9 +611,9 @@
<key>realTextureFileName</key>
<string>items.png</string>
<key>size</key>
<string>{250,643}</string>
<string>{246,748}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:d134640b03e3e18c7fb523dc3e1fa69a:9eca633965c862945e31277f0111b882:9b2c40378ce3448cae3ca053079d3001$</string>
<string>$TexturePacker:SmartUpdate:cecc1df47f3b74ba6e32161aa2b9ed18:0a5385c3d42ce7049149bfd7a9f71903:9b2c40378ce3448cae3ca053079d3001$</string>
<key>textureFileName</key>
<string>items.png</string>
</dict>

View File

@@ -19,8 +19,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 130,
"trimY": 171,
"trimX": 153,
"trimY": 207,
"width": 77,
"height": 61,
"rawWidth": 77,
@@ -65,8 +65,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 127,
"trimY": 57,
"trimX": 179,
"trimY": 650,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -111,8 +111,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 1,
"trimY": 490,
"trimX": 64,
"trimY": 404,
"width": 67,
"height": 67,
"rawWidth": 77,
@@ -157,8 +157,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 147,
"trimY": 297,
"trimX": 74,
"trimY": 207,
"width": 77,
"height": 63,
"rawWidth": 77,
@@ -203,8 +203,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 139,
"trimY": 498,
"trimX": 159,
"trimY": 67,
"width": 71,
"height": 71,
"rawWidth": 77,
@@ -249,8 +249,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 80,
"trimY": 297,
"trimX": 62,
"trimY": 473,
"width": 65,
"height": 63,
"rawWidth": 77,
@@ -292,11 +292,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 63,
"trimY": 171,
"trimX": 1,
"trimY": 434,
"width": 59,
"height": 65,
"rawWidth": 77,
@@ -341,8 +341,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 80,
"trimY": 362,
"trimX": 74,
"trimY": 140,
"width": 77,
"height": 65,
"rawWidth": 77,
@@ -387,8 +387,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 74,
"trimY": 429,
"trimX": 64,
"trimY": 335,
"width": 67,
"height": 67,
"rawWidth": 77,
@@ -434,7 +434,7 @@
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 567,
"trimY": 140,
"width": 71,
"height": 71,
"rawWidth": 77,
@@ -476,11 +476,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"trimY": 625,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -525,8 +525,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": -2,
"trimX": 63,
"trimY": 1,
"trimX": 183,
"trimY": 538,
"width": 62,
"height": 54,
"rawWidth": 70,
@@ -568,11 +568,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 127,
"trimY": 1,
"trimX": 123,
"trimY": 596,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -614,11 +614,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 65,
"trimY": 113,
"trimX": 1,
"trimY": 501,
"width": 56,
"height": 60,
"rawWidth": 70,
@@ -663,8 +663,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 189,
"trimY": 1,
"trimX": 57,
"trimY": 652,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -709,8 +709,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": -2,
"trimX": 1,
"trimY": 57,
"trimX": 183,
"trimY": 594,
"width": 62,
"height": 54,
"rawWidth": 70,
@@ -752,11 +752,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 65,
"trimY": 57,
"trimX": 1,
"trimY": 687,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -801,8 +801,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 1,
"trimX": 127,
"trimY": 113,
"trimX": 59,
"trimY": 538,
"width": 56,
"height": 60,
"rawWidth": 70,
@@ -844,11 +844,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 189,
"trimY": 113,
"trimX": 1,
"trimY": 563,
"width": 56,
"height": 60,
"rawWidth": 70,
@@ -893,8 +893,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 1,
"trimX": 1,
"trimY": 169,
"trimX": 121,
"trimY": 538,
"width": 56,
"height": 60,
"rawWidth": 70,
@@ -939,8 +939,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": -2,
"trimX": 1,
"trimY": 113,
"trimX": 59,
"trimY": 596,
"width": 62,
"height": 54,
"rawWidth": 70,
@@ -982,11 +982,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 189,
"trimY": 57,
"trimX": 119,
"trimY": 658,
"width": 54,
"height": 60,
"rawWidth": 70,
@@ -1019,6 +1019,98 @@
],
"subMetas": {}
},
"ab954": {
"importer": "sprite-frame",
"uuid": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@ab954",
"displayName": "",
"id": "ab954",
"name": "2007",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 120,
"height": 64,
"rawWidth": 120,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 50,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4ca85ea7-6d3d-4e52-bb59-e0ad41ff0599@6c48a",
"atlasUuid": "7b0e7263-3b25-4fec-8935-abdd67c4b86d"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"efaae": {
"importer": "sprite-frame",
"uuid": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@efaae",
"displayName": "",
"id": "efaae",
"name": "2008",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 123,
"trimY": 1,
"width": 120,
"height": 64,
"rawWidth": 120,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 52,
"borderRight": 5,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [],
"indexes": [],
"uv": [],
"nuv": [],
"minPos": [],
"maxPos": []
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4ca85ea7-6d3d-4e52-bb59-e0ad41ff0599@6c48a",
"atlasUuid": "7b0e7263-3b25-4fec-8935-abdd67c4b86d"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"9585c": {
"importer": "sprite-frame",
"uuid": "7b0e7263-3b25-4fec-8935-abdd67c4b86d@9585c",
@@ -1031,8 +1123,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 74,
"trimY": 571,
"trimX": 1,
"trimY": 67,
"width": 77,
"height": 71,
"rawWidth": 77,
@@ -1077,8 +1169,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 153,
"trimY": 571,
"trimX": 80,
"trimY": 67,
"width": 77,
"height": 71,
"rawWidth": 77,
@@ -1120,11 +1212,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 358,
"trimY": 213,
"width": 77,
"height": 63,
"rawWidth": 77,
@@ -1169,8 +1261,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 159,
"trimY": 362,
"trimX": 153,
"trimY": 140,
"width": 77,
"height": 65,
"rawWidth": 77,
@@ -1215,8 +1307,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 232,
"trimX": 153,
"trimY": 270,
"width": 77,
"height": 61,
"rawWidth": 77,
@@ -1258,11 +1350,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 80,
"trimY": 234,
"trimX": 1,
"trimY": 367,
"width": 61,
"height": 65,
"rawWidth": 77,
@@ -1307,8 +1399,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 423,
"trimX": 145,
"trimY": 333,
"width": 71,
"height": 65,
"rawWidth": 77,
@@ -1350,11 +1442,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 1,
"trimX": 147,
"trimY": 234,
"trimX": 1,
"trimY": 292,
"width": 73,
"height": 61,
"rawWidth": 77,
@@ -1399,8 +1491,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 295,
"trimX": 66,
"trimY": 272,
"width": 77,
"height": 61,
"rawWidth": 77,
@@ -1445,8 +1537,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 143,
"trimY": 429,
"trimX": 133,
"trimY": 400,
"width": 67,
"height": 67,
"rawWidth": 77,
@@ -1491,8 +1583,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 70,
"trimY": 498,
"trimX": 133,
"trimY": 469,
"width": 67,
"height": 67,
"rawWidth": 77,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 40 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -55,9 +55,9 @@ export class SingletonModuleComp extends ecs.Comp {
};
/** 游戏主角 */
heros:any={
9001:{uuid:9001,lv:1,exp:0,slv:0,stone:0,num:0,x1:0,x10:0},
9002:{uuid:9002,lv:2,exp:0,slv:1,stone:0,num:0,x1:0,x10:0},
9003:{uuid:9003,lv:3,exp:0,slv:2,stone:0,num:0,x1:0,x10:0},
9001:{uuid:9001,lv:1,exp:0,slv:0,stone:0,num:100,x1:0,x10:0},
9002:{uuid:9002,lv:2,exp:0,slv:1,stone:0,num:80,x1:0,x10:0},
9003:{uuid:9003,lv:3,exp:0,slv:2,stone:0,num:90,x1:0,x10:0},
};
goods:any={
free: [ {uuid:9001,num:100000}, {uuid:1001,num:10}, {uuid:1002,num:10}, {uuid:1007,num:10},],

View File

@@ -0,0 +1,32 @@
import { _decorator, Component, Label, Node, resources, Sprite, SpriteAtlas } from 'cc';
import { HeroInfo } from '../common/config/heroSet';
const { ccclass, property } = _decorator;
@ccclass('HChipComp')
export class HChipComp extends Component {
h_uuid:number=0
num:number=0
lv:number=0
start() {
}
update(deltaTime: number) {
}
update_data(h_uuid:number,num:number=0){
var icon_path = "game/heros/herois"
resources.load(icon_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("hero").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(HeroInfo[h_uuid].path);
});
if(num > 0){
this.node.getChildByName("num").getComponent(Label).string = num.toString();
}else{
this.node.getChildByName("num").getComponent(Label).string = "";
}
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "dc8e3ce8-1ced-41ab-bbf6-72310977465a",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -1,4 +1,4 @@
import { _decorator,Button,EventHandler,EventTouch,instantiate,Label,NodeEventType,Prefab,resources,Sprite,SpriteAtlas,tween,UITransform,v3 } from "cc";
import { _decorator,Button,EventHandler,EventTouch,instantiate,Label,NodeEventType,Prefab,ProgressBar,resources,Sprite,SpriteAtlas,tween,UITransform,v3 } from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { HeroInfo, HeroList } from "../common/config/heroSet";
@@ -9,6 +9,7 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
import { Items } from "../common/config/Items";
import { SkillSet } from "../common/config/SkillSet";
import { LvUp, SlvUp, UpGold } from "../common/config/RoleSet";
import { HChipComp } from "../hero/HChipComp";
const { ccclass, property } = _decorator;
/** 视图层对象 */
@@ -81,15 +82,18 @@ export class HeroHomeComp extends CCComp {
if( this.role.slv>=5) {slv_node.getChildByName("s5").active=true}else{slv_node.getChildByName("s5").active=false};
lvup.getChildByName("gold").getChildByName("need").getComponent(Label).string = (UpGold.LvUp*this.role.lv).toString()
// lvup.getChildByName("gold").getChildByName("need").getComponent(Label).string = (UpGold.LvUp*this.role.lv).toString()
lvup.getChildByName("item").getChildByName("need").getComponent(Label).string = ((LvUp[0]+this.hero.lvexp)*this.role.lv).toString()
lvup.getChildByName("info").getChildByName("ap").getComponent(Label).string = "+"+this.hero.ap_up
lvup.getChildByName("info").getChildByName("def").getComponent(Label).string = "+"+this.hero.def_up
lvup.getChildByName("info").getChildByName("hp").getComponent(Label).string = "+"+this.hero.hp_up
slvup.getChildByName("gold").getChildByName("need").getComponent(Label).string = (UpGold.SlvUp*(this.role.slv+1)).toString()
slvup.getChildByName("cost").getChildByName("need").getComponent(Label).string = ((SlvUp[1]+this.hero.slvexp)*1).toString()
// slvup.getChildByName("gold").getChildByName("need").getComponent(Label).string = (UpGold.SlvUp*(this.role.slv+1)).toString()
slvup.getChildByName("cost").getChildByName("need").getComponent(Label).string = ((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv)).toString()
slvup.getChildByName("cost").getChildByName("num").getComponent(Label).string = smc.heros[this.h_uuid].num.toString()
slvup.getChildByName("cost").getChildByName("bar").getComponent(ProgressBar).progress = smc.heros[this.h_uuid].num/((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv))
let hchipcomp= slvup.getChildByName("cost").getChildByName("hchip").getComponent(HChipComp)
hchipcomp.update_data(this.h_uuid,0)
//todo cost icon 需要通过预制体进行变更
slvup.getChildByName("info").getChildByName("ap").getComponent(Label).string = "+"+this.hero.sap_up+"%"
@@ -152,31 +156,26 @@ export class HeroHomeComp extends CCComp {
lv_up(){
if(smc.vmdata.items[1001].num < ((LvUp[0]+this.hero.lvexp)*this.role.lv)||smc.vmdata.items[9001].num < (UpGold.LvUp*this.role.lv)){
if(smc.vmdata.items[1001].num < ((LvUp[0]+this.hero.lvexp)*this.role.lv)){
oops.gui.toast("资源不足,升级失败");
return
}
smc.vmdata.items[1001].num -= ((LvUp[0]+this.hero.lvexp)*this.role.lv)
smc.vmdata.items[9001].num -= (UpGold.LvUp*this.role.lv)
this.role.lv++
this.update_data()
}
slv_up(){
if(this.role.slv>=5){
oops.gui.toast("已经满星,升星失败");
return
}
if(smc.heros[this.h_uuid].num < SlvUp[this.role.slv]*(1+this.role.slv)||smc.vmdata.items[9001].num < (UpGold.SlvUp*(this.role.slv+1))){
if(smc.heros[this.h_uuid].num < ((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv))){
oops.gui.toast("资源不足,升星失败");
return
}
smc.heros[this.h_uuid].num -= SlvUp[this.role.slv]*(1+this.role.slv)
smc.vmdata.items[9001].num -= (UpGold.SlvUp*(this.role.slv+1))
this.role.slv++
this.update_data()
}
item_show(e:any,val:any){
oops.gui.open(UIID.ItemInfo, Items[val]);