3 Commits

Author SHA1 Message Date
walkpan
5d188bb5aa fix(英雄动画): 修正死亡状态播放动画的位置基准
将死亡状态动画的播放从 playReady 改为 playOther,并确保动画以英雄当前位置为基准挂载到父节点,避免英雄节点销毁时动画被中断。
2026-04-05 22:55:26 +08:00
walkpan
c054209025 feat: 为召唤和死亡触发技能添加动画效果
- 在 Hero、Monster 和 HeroAtkSystem 中分发技能触发事件时,增加 triggerType 参数以区分召唤和死亡
- 修改 SCastSystem 的 forceCastTriggerSkill 方法,根据 triggerType 播放对应的准备动画(黄色表示召唤,死亡动画表示死亡)
- 调整 hnode.prefab 中按钮的布局和样式,移除特定精灵帧以使用默认样式
2026-04-05 22:49:01 +08:00
walkpan
8b4ccfd484 fix(assets): 优化精灵图集布局并修复技能系统内存泄漏
- 重构精灵图集(aui.plist)布局,调整纹理坐标与旋转状态,提升图集空间利用率
- 在SCastSystem中添加onDestroy方法,注销全局事件监听,防止内存泄漏
2026-04-05 22:25:14 +08:00
19 changed files with 791 additions and 3569 deletions

View File

@@ -1,460 +0,0 @@
[
{
"__type__": "cc.Prefab",
"_name": "Btn",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "Btn",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 16
}
],
"_prefab": {
"__id__": 18
},
"_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": "btn_large_orange",
"_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": 0.5,
"y": 0.4,
"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": 216,
"height": 106
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "32K2Dv7GFLo5C3I93vwlA4"
},
{
"__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__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@3c9ae",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_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": "84UBHGdD5K5pwHH/xHPJdv"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "12pgh5YidIzJQokhOGrMYU",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 9
},
{
"__id__": 11
}
],
"_prefab": {
"__id__": 13
},
"_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__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"_contentSize": {
"__type__": "cc.Size",
"width": 49.576171875,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "84Ag0s0BpJpJkHkk/orDmF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 8
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "label",
"_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": 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": "1evOHf4QlOqr4vCOCj1QKc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "143Ez+pCBDuKgbef19Aeln",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "50yJWRtc1Nl6Swd/YuEIj6"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e2bGXJ18VGC61P18szeioK"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c46/YsCPVOJYA4mWEpNYRx",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -1,13 +0,0 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "15cb03dd-c2be-47d4-a30f-aef7745f5ceb",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "Btn"
}
}

View File

@@ -26,34 +26,31 @@
},
{
"__id__": 26
},
{
"__id__": 37
}
],
"_active": true,
"_components": [
{
"__id__": 37
},
{
"__id__": 39
},
{
"__id__": 41
},
{
"__id__": 43
},
{
"__id__": 45
},
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_prefab": {
"__id__": 57
"__id__": 49
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -634,118 +631,6 @@
"z": 1
}
},
{
"__type__": "cc.Node",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_prefab": {
"__id__": 38
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 37
},
"asset": {
"__uuid__": "02e38f62-860e-4bb9-86d9-a59f073e2881",
"__expectedType__": "cc.Prefab"
},
"fileId": "54R/aYBglLI4Jn5pm++Jx8",
"instance": {
"__id__": 39
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "83JAqLl/ZNzJIv+L012Q2q",
"prefabRootNode": {
"__id__": 1
},
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 40
},
{
"__id__": 42
},
{
"__id__": 43
},
{
"__id__": 44
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
},
"propertyPath": [
"_name"
],
"value": "plus"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"54R/aYBglLI4Jn5pm++Jx8"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 41
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "cc.UITransform",
"_name": "",
@@ -756,7 +641,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 46
"__id__": 38
},
"_contentSize": {
"__type__": "cc.Size",
@@ -784,7 +669,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 48
"__id__": 40
},
"anm": {
"__id__": 5
@@ -805,7 +690,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 50
"__id__": 42
},
"debugMode": false,
"_id": ""
@@ -824,7 +709,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 52
"__id__": 44
},
"enabledContactListener": true,
"bullet": false,
@@ -858,7 +743,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 54
"__id__": 46
},
"tag": 0,
"_group": 4,
@@ -892,7 +777,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 56
"__id__": 48
},
"playOnLoad": false,
"_clips": [],
@@ -915,9 +800,6 @@
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": [
{
"__id__": 37
},
{
"__id__": 26
},

View File

@@ -7,11 +7,11 @@
"embeddedPlayerGroups": []
},
"_native": "",
"sample": 30,
"sample": 12,
"speed": 1,
"wrapMode": 1,
"enableTrsBlending": false,
"_duration": 0.16666666666666666,
"_duration": 0.4166666666666667,
"_hash": 500763545,
"_tracks": [
{
@@ -69,10 +69,10 @@
"__type__": "cc.ObjectCurve",
"_times": [
0,
0.03333333333333333,
0.06666666666666667,
0.1,
0.13333333333333333
0.08333333333333333,
0.16666666666666666,
0.25,
0.3333333333333333
],
"_values": [
{

View File

@@ -87,7 +87,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -35.811,
"y": -60,
"z": 0
},
"_lrot": {
@@ -99,8 +99,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,

View File

@@ -87,7 +87,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -35.811,
"y": -60,
"z": 0
},
"_lrot": {
@@ -99,8 +99,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
@@ -159,7 +159,7 @@
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 173,
"g": 255,
"b": 0,
"a": 255
},
@@ -178,7 +178,7 @@
"_fillStart": 0.2,
"_fillRange": 1,
"_isTrimmedMode": true,
"_useGrayscale": true,
"_useGrayscale": false,
"_atlas": {
"__uuid__": "2423272e-e63b-4736-b15b-30b40cf98a23",
"__expectedType__": "cc.SpriteAtlas"

View File

@@ -17,9 +17,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{201,1347},{116,90}}</string>
<string>{{454,412},{116,90}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Consumable_Potion_02_Red.png</key>
<dict>
@@ -34,9 +34,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{313,1466},{98,114}}</string>
<string>{{460,772},{98,114}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Economy_Coin_02_Silver.png</key>
<dict>
@@ -51,7 +51,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{462,1080},{102,102}}</string>
<string>{{560,866},{102,102}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -68,9 +68,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{225,1259},{86,106}}</string>
<string>{{554,984},{86,106}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Economy_Gem_01_Blue.png</key>
<dict>
@@ -85,9 +85,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{195,1439},{116,102}}</string>
<string>{{555,628},{116,102}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Economy_Gem_02_Red.png</key>
<dict>
@@ -102,7 +102,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{820,948},{106,106}}</string>
<string>{{446,984},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -119,7 +119,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{461,1184},{106,106}}</string>
<string>{{642,970},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -136,7 +136,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{573,1015},{108,98}}</string>
<string>{{781,564},{108,98}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -153,7 +153,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{791,1056},{102,104}}</string>
<string>{{771,664},{102,104}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -170,9 +170,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{787,1160},{102,104}}</string>
<string>{{770,768},{102,104}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Economy_Gem_05_Yellow.png</key>
<dict>
@@ -187,7 +187,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{786,1264},{102,104}}</string>
<string>{{770,874},{102,104}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -204,9 +204,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{854,763},{112,96}}</string>
<string>{{453,530},{112,96}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Economy_Water_01_Blue.png</key>
<dict>
@@ -221,9 +221,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{569,1225},{98,108}}</string>
<string>{{235,1109},{98,108}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Ellipse 666.png</key>
<dict>
@@ -238,7 +238,7 @@
<key>spriteSourceSize</key>
<string>{97,97}</string>
<key>textureRect</key>
<string>{{784,1368},{97,97}}</string>
<string>{{876,874},{97,97}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -255,7 +255,7 @@
<key>spriteSourceSize</key>
<string>{64,64}</string>
<key>textureRect</key>
<string>{{79,1517},{52,52}}</string>
<string>{{379,880},{52,52}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -272,7 +272,7 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{42,879},{181,202}}</string>
<string>{{320,208},{181,202}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -289,9 +289,9 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{42,1083},{181,202}}</string>
<string>{{579,42},{181,202}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Group 68.png</key>
<dict>
@@ -306,9 +306,9 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{320,294},{181,202}}</string>
<string>{{783,1},{181,202}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Group 69.png</key>
<dict>
@@ -323,7 +323,7 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{277,477},{181,202}}</string>
<string>{{113,699},{181,202}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -340,7 +340,7 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{277,681},{181,202}}</string>
<string>{{66,903},{181,202}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -357,9 +357,9 @@
<key>spriteSourceSize</key>
<string>{181,202}</string>
<key>textureRect</key>
<string>{{570,113},{181,202}}</string>
<string>{{503,225},{181,202}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Icon_Coin.png</key>
<dict>
@@ -374,9 +374,9 @@
<key>spriteSourceSize</key>
<string>{38,42}</string>
<key>textureRect</key>
<string>{{543,1531},{38,42}}</string>
<string>{{719,1186},{38,42}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Icon_Lock03.png</key>
<dict>
@@ -391,9 +391,9 @@
<key>spriteSourceSize</key>
<string>{71,93}</string>
<key>textureRect</key>
<string>{{759,745},{71,93}}</string>
<string>{{891,566},{71,93}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Item_Card_01_Blue.png</key>
<dict>
@@ -408,7 +408,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{460,747},{120,110}}</string>
<string>{{1,1108},{120,110}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -425,7 +425,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{79,1287},{120,110}}</string>
<string>{{113,1107},{120,110}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -442,7 +442,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{867,657},{104,100}}</string>
<string>{{874,768},{104,100}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -459,7 +459,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{680,1261},{104,104}}</string>
<string>{{664,828},{104,104}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -476,9 +476,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{453,1292},{88,112}}</string>
<string>{{335,1101},{88,112}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Item_Scroll_01_Red.png</key>
<dict>
@@ -493,7 +493,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{79,1399},{114,116}}</string>
<string>{{338,412},{114,116}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -510,7 +510,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{569,1115},{108,108}}</string>
<string>{{781,454},{108,108}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -527,9 +527,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{225,1137},{120,106}}</string>
<string>{{546,408},{120,106}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Rectangle 2426.png</key>
<dict>
@@ -544,9 +544,9 @@
<key>spriteSourceSize</key>
<string>{110,81}</string>
<key>textureRect</key>
<string>{{755,662},{110,81}}</string>
<string>{{891,454},{110,81}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Rectangle 568.png</key>
<dict>
@@ -561,9 +561,9 @@
<key>spriteSourceSize</key>
<string>{204,40}</string>
<key>textureRect</key>
<string>{{524,425},{204,40}}</string>
<string>{{249,903},{204,40}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Rectangleligjht 2426_.png</key>
<dict>
@@ -578,9 +578,9 @@
<key>spriteSourceSize</key>
<string>{112,90}</string>
<key>textureRect</key>
<string>{{437,1382},{112,90}}</string>
<string>{{425,1101},{112,90}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Stat_AttackSpeed_01.png</key>
<dict>
@@ -595,7 +595,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{724,550},{110,110}}</string>
<string>{{551,516},{110,110}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -612,7 +612,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{680,1367},{102,102}}</string>
<string>{{837,978},{102,102}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -629,7 +629,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{429,1474},{94,112}}</string>
<string>{{446,888},{94,112}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -646,9 +646,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{551,1425},{104,106}}</string>
<string>{{719,1078},{104,106}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>UI_Common_Speed_01_Yellow.png</key>
<dict>
@@ -663,7 +663,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{845,435},{110,110}}</string>
<string>{{668,412},{110,110}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -680,7 +680,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{683,1055},{106,96}}</string>
<string>{{663,622},{106,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -697,7 +697,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{867,547},{108,100}}</string>
<string>{{617,1092},{108,100}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -714,9 +714,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{334,1080},{126,98}}</string>
<string>{{355,645},{126,98}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>UI_Play_Skull_04.png</key>
<dict>
@@ -731,9 +731,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{333,1180},{126,98}}</string>
<string>{{455,644},{126,98}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>UI_Rewards_Gift_01_Red.png</key>
<dict>
@@ -748,7 +748,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{679,1153},{106,106}}</string>
<string>{{662,720},{106,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -765,7 +765,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{715,828},{118,100}}</string>
<string>{{560,746},{118,100}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -782,7 +782,7 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{319,1368},{116,96}}</string>
<string>{{663,524},{116,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -799,9 +799,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{333,1280},{118,86}}</string>
<string>{{291,903},{118,86}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>UI_System_Setting_01.png</key>
<dict>
@@ -816,9 +816,9 @@
<key>spriteSourceSize</key>
<string>{128,128}</string>
<key>textureRect</key>
<string>{{659,1471},{102,98}}</string>
<string>{{877,664},{102,98}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>arrow.png</key>
<dict>
@@ -833,7 +833,7 @@
<key>spriteSourceSize</key>
<string>{46,76}</string>
<key>textureRect</key>
<string>{{897,1056},{46,76}}</string>
<string>{{825,1082},{46,76}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -850,7 +850,7 @@
<key>spriteSourceSize</key>
<string>{46,76}</string>
<key>textureRect</key>
<string>{{841,1467},{46,76}}</string>
<string>{{873,1082},{46,76}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -867,9 +867,9 @@
<key>spriteSourceSize</key>
<string>{51,47}</string>
<key>textureRect</key>
<string>{{133,1517},{51,47}}</string>
<string>{{296,850},{51,47}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>bg1.png</key>
<dict>
@@ -884,7 +884,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{1,1524},{44,44}}</string>
<string>{{66,856},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -901,7 +901,7 @@
<key>spriteSourceSize</key>
<string>{227,42}</string>
<key>textureRect</key>
<string>{{225,879},{227,42}}</string>
<string>{{294,449},{227,42}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -918,9 +918,9 @@
<key>spriteSourceSize</key>
<string>{248,179}</string>
<key>textureRect</key>
<string>{{320,113},{248,179}}</string>
<string>{{113,449},{248,179}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>bg5.png</key>
<dict>
@@ -935,9 +935,9 @@
<key>spriteSourceSize</key>
<string>{405,110}</string>
<key>textureRect</key>
<string>{{320,1},{405,110}}</string>
<string>{{1,449},{405,110}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>bg_line.png</key>
<dict>
@@ -952,7 +952,7 @@
<key>spriteSourceSize</key>
<string>{250,63}</string>
<key>textureRect</key>
<string>{{269,885},{250,63}}</string>
<string>{{1,856},{250,63}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -969,177 +969,7 @@
<key>spriteSourceSize</key>
<string>{185,81}</string>
<key>textureRect</key>
<string>{{568,662},{185,81}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>btn_large_blue.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>{216,106}</string>
<key>spriteSourceSize</key>
<string>{216,106}</string>
<key>textureRect</key>
<string>{{727,1},{216,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>btn_large_brown.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>{216,106}</string>
<key>spriteSourceSize</key>
<string>{216,106}</string>
<key>textureRect</key>
<string>{{753,109},{216,106}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_large_green.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>{216,106}</string>
<key>spriteSourceSize</key>
<string>{216,106}</string>
<key>textureRect</key>
<string>{{861,109},{216,106}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_large_orange.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>{216,106}</string>
<key>spriteSourceSize</key>
<string>{216,106}</string>
<key>textureRect</key>
<string>{{524,317},{216,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>btn_large_red.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>{216,106}</string>
<key>spriteSourceSize</key>
<string>{216,106}</string>
<key>textureRect</key>
<string>{{742,327},{216,106}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>btn_medium_blue.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>{193,76}</string>
<key>spriteSourceSize</key>
<string>{193,76}</string>
<key>textureRect</key>
<string>{{334,885},{193,76}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_medium_gray.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>{193,76}</string>
<key>spriteSourceSize</key>
<string>{193,76}</string>
<key>textureRect</key>
<string>{{568,467},{193,76}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_medium_green.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>{193,76}</string>
<key>spriteSourceSize</key>
<string>{193,76}</string>
<key>textureRect</key>
<string>{{646,467},{193,76}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_medium_red.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>{193,76}</string>
<key>spriteSourceSize</key>
<string>{193,76}</string>
<key>textureRect</key>
<string>{{412,885},{193,76}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_medium_yellow.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>{193,76}</string>
<key>spriteSourceSize</key>
<string>{193,76}</string>
<key>textureRect</key>
<string>{{1,1329},{193,76}}</string>
<string>{{707,225},{185,81}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -1156,9 +986,9 @@
<key>spriteSourceSize</key>
<string>{85,86}</string>
<key>textureRect</key>
<string>{{817,861},{85,86}}</string>
<string>{{750,978},{85,86}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>btn_red.png</key>
<dict>
@@ -1173,7 +1003,7 @@
<key>spriteSourceSize</key>
<string>{185,81}</string>
<key>textureRect</key>
<string>{{572,745},{185,81}}</string>
<string>{{790,205},{185,81}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1190,26 +1020,9 @@
<key>spriteSourceSize</key>
<string>{185,81}</string>
<key>textureRect</key>
<string>{{490,869},{185,81}}</string>
<string>{{790,288},{185,81}}</string>
<key>textureRotated</key>
<true/>
</dict>
<key>btn_start.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>{268,106}</string>
<key>spriteSourceSize</key>
<string>{268,106}</string>
<key>textureRect</key>
<string>{{460,477},{268,106}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>btn_yellow.png</key>
<dict>
@@ -1224,9 +1037,9 @@
<key>spriteSourceSize</key>
<string>{185,81}</string>
<key>textureRect</key>
<string>{{573,828},{185,81}}</string>
<string>{{790,371},{185,81}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>check.png</key>
<dict>
@@ -1241,9 +1054,9 @@
<key>spriteSourceSize</key>
<string>{80,76}</string>
<key>textureRect</key>
<string>{{763,1471},{80,76}}</string>
<string>{{291,1023},{80,76}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>common_btn_close.png</key>
<dict>
@@ -1258,7 +1071,7 @@
<key>spriteSourceSize</key>
<string>{103,105}</string>
<key>textureRect</key>
<string>{{715,948},{103,105}}</string>
<string>{{355,773},{103,105}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1275,9 +1088,9 @@
<key>spriteSourceSize</key>
<string>{448,39}</string>
<key>textureRect</key>
<string>{{1,879},{448,39}}</string>
<string>{{320,1},{448,39}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>eff.png</key>
<dict>
@@ -1309,7 +1122,7 @@
<key>spriteSourceSize</key>
<string>{54,54}</string>
<key>textureRect</key>
<string>{{889,1446},{54,54}}</string>
<string>{{921,1082},{54,54}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1326,9 +1139,9 @@
<key>spriteSourceSize</key>
<string>{98,111}</string>
<key>textureRect</key>
<string>{{567,1325},{98,111}}</string>
<string>{{517,1092},{98,111}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>icon1.png</key>
<dict>
@@ -1343,7 +1156,7 @@
<key>spriteSourceSize</key>
<string>{30,30}</string>
<key>textureRect</key>
<string>{{47,1524},{30,30}}</string>
<string>{{664,934},{30,30}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1360,41 +1173,7 @@
<key>spriteSourceSize</key>
<string>{113,113}</string>
<key>textureRect</key>
<string>{{730,435},{113,113}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>lock.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>{35,39}</string>
<key>spriteSourceSize</key>
<string>{35,39}</string>
<key>textureRect</key>
<string>{{42,1287},{35,39}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>lock2.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>{58,65}</string>
<key>spriteSourceSize</key>
<string>{58,65}</string>
<key>textureRect</key>
<string>{{905,861},{58,65}}</string>
<string>{{338,530},{113,113}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1411,7 +1190,7 @@
<key>spriteSourceSize</key>
<string>{170,57}</string>
<key>textureRect</key>
<string>{{656,828},{170,57}}</string>
<string>{{296,678},{170,57}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -1424,13 +1203,13 @@
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{428,274}</string>
<string>{257,164}</string>
<key>spriteSourceSize</key>
<string>{428,274}</string>
<string>{257,164}</string>
<key>textureRect</key>
<string>{{1,449},{428,274}}</string>
<string>{{320,42},{257,164}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>reset.png</key>
<dict>
@@ -1445,7 +1224,7 @@
<key>spriteSourceSize</key>
<string>{76,71}</string>
<key>textureRect</key>
<string>{{883,1368},{76,71}}</string>
<string>{{373,1023},{76,71}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -1462,7 +1241,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{889,1502},{44,44}}</string>
<string>{{379,934},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1479,7 +1258,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{897,1134},{44,44}}</string>
<string>{{825,1160},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1496,7 +1275,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{893,1180},{44,44}}</string>
<string>{{871,1160},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1513,7 +1292,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{893,1226},{44,44}}</string>
<string>{{921,1138},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1530,7 +1309,7 @@
<key>spriteSourceSize</key>
<string>{44,44}</string>
<key>textureRect</key>
<string>{{892,1272},{44,44}}</string>
<string>{{917,1184},{44,44}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1546,9 +1325,9 @@
<key>realTextureFileName</key>
<string>aui.png</string>
<key>size</key>
<string>{968,1570}</string>
<string>{976,1229}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:cde696a414e67d6b596a33e17595bca2:f0fec01b89672dedf38d21aaf4e39004:b5775493c55766efeea5ccac51652ce8$</string>
<string>$TexturePacker:SmartUpdate:4e1fafadfbc2bb6bbf7b8303c38a34aa:cb5f3e33f00c46fade00b67e4bfb4c6a:b5775493c55766efeea5ccac51652ce8$</string>
<key>textureFileName</key>
<string>aui.png</string>
</dict>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 KiB

After

Width:  |  Height:  |  Size: 300 KiB

View File

@@ -1,543 +0,0 @@
[
{
"__type__": "cc.Prefab",
"_name": "btn_start",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "btn_start",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 18
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 22
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -565.033,
"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
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_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": 200,
"height": 102
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "06atudk+BHR4nPzR3SmW4Z"
},
{
"__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__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@ac343",
"__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": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87x48JBkdLQ7whX1NTSH9o"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_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": 16,
"_originalHeight": 16,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d0LIiKWbRKu7mXFOw4d4nr"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ccco1Tc0VOs40o2w+SsIiD",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 6,
"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__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 106.2265625,
"height": 54.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5fpQkh4FtN5aKXEKIsm8v/"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 238,
"g": 238,
"b": 238,
"a": 255
},
"_string": "开 始",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_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": 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": "14OjteCA5OkLMHKjcyDL86"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "dbtgiz4jZOgLAnCODHuANp",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 102
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b6/HPesdpG8ZsWB4vg6xf2"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"clickEvents": [],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.8,
"_target": {
"__id__": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f5MsfCkARGFblbm0HvivL/"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"_alignFlags": 4,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 23.967,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "cbVDBK6OZPyqODAzd8DeXP"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "24rlgXRJ9AHLGpMW+aYyEx",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -1,13 +0,0 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b111b7ce-9621-4519-b4b8-7a5a64c2e98e",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "btn_start"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -4550,7 +4550,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 55,
"y": -95.647,
"y": -90,
"z": 0
},
"_lrot": {
@@ -4749,7 +4749,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 110,
"width": 104,
"height": 40
},
"_anchorPoint": {
@@ -4786,7 +4786,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@7645f",
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@4a554",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -4858,22 +4858,10 @@
"b": 124,
"a": 255
},
"_normalSprite": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@7645f",
"__expectedType__": "cc.SpriteFrame"
},
"_hoverSprite": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_pressedSprite": {
"__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_disabledSprite": {
"__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
@@ -4907,12 +4895,12 @@
"__prefab": {
"__id__": 212
},
"_alignFlags": 8,
"_alignFlags": 44,
"_target": null,
"_left": 0,
"_right": 0,
"_left": 3,
"_right": 3,
"_top": 0,
"_bottom": 0,
"_bottom": -35,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@@ -4921,7 +4909,7 @@
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalWidth": 110,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,

View File

@@ -607,7 +607,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@15f3b",
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@8e2b9",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -622,7 +622,10 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": true,
"_atlas": null,
"_atlas": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4",
"__expectedType__": "cc.SpriteAtlas"
},
"_id": ""
},
{

View File

@@ -148,7 +148,8 @@ export class Hero extends ecs.Entity {
oops.message.dispatchEvent(GameEvent.TriggerSkill, {
s_uuid: hero.call,
heroAttrs: model,
heroView: hv
heroView: hv,
triggerType: 'call'
});
}

View File

@@ -261,7 +261,8 @@ export class HeroAtkSystem extends ecs.ComblockSystem implements ecs.ISystemUpd
oops.message.dispatchEvent(GameEvent.TriggerSkill, {
s_uuid: heroInfo.dead,
heroAttrs: TAttrsComp,
heroView: view
heroView: view,
triggerType: 'dead'
});
}
}

View File

@@ -6,6 +6,7 @@ import { HeroSpine } from "./HeroSpine";
import { BoxSet, FacSet, FightSet, NumberFormatter, TooltipTypes } from "../common/config/GameSet";
import { smc } from "../common/SingletonModuleComp";
import { SkillSet,} from "../common/config/SkillSet";
import { HeroInfo } from "../common/config/heroSet";
import { oops } from "db://oops-framework/core/Oops";
import { HeroAttrsComp } from "./HeroAttrsComp";
import { Tooltip } from "../skill/Tooltip";
@@ -300,7 +301,12 @@ export class HeroViewComp extends CCComp {
var path = "game/skill/ready/" + anm;
this.spawnAnimEndFx(path, this.node, undefined);
}
public playOther(anm: string = ""){
if(anm==="") return;
var path = "game/skill/ready/" + anm;
// 以自身当前位置为基准,挂载到父节点,即使自身节点销毁动画也能继续播放
this.spawnAnimEndFx(path, this.node.parent, this.node.position);
}
public playEnd(anm: string = ""){
if(anm==="") return;
var path = "game/skill/end/" + anm;
@@ -417,9 +423,14 @@ export class HeroViewComp extends CCComp {
this.realDeadTime = this.monDeadTime;
}
// 播放死亡特效
this.deaded();
// 如果角色带有死亡触发技能,则由 SCastSystem 播放 playReady("dead"),不播放原有的 deaded 特效
const heroInfo = HeroInfo[this.model.hero_uuid];
if (heroInfo && heroInfo.dead) {
// SCastSystem will handle the "dead" ready animation
} else {
// 播放默认死亡特效
this.deaded();
}
}
realDead(){
// 🔥 修复添加model安全检查防止实体销毁过程中的空指针异常

View File

@@ -199,7 +199,8 @@ export class Monster extends ecs.Entity {
oops.message.dispatchEvent(GameEvent.TriggerSkill, {
s_uuid: hero.call,
heroAttrs: model,
heroView: view
heroView: view,
triggerType: 'call'
});
}

View File

@@ -35,9 +35,14 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
oops.message.on(GameEvent.TriggerSkill, this.onTriggerSkill, this);
}
private onTriggerSkill(event: string, args: { s_uuid: number, heroAttrs: HeroAttrsComp, heroView: HeroViewComp }) {
/** 系统被销毁或重置时,必须注销全局事件监听,避免内存泄漏与重复触发 */
onDestroy() {
oops.message.off(GameEvent.TriggerSkill, this.onTriggerSkill, this);
}
private onTriggerSkill(event: string, args: { s_uuid: number, heroAttrs: HeroAttrsComp, heroView: HeroViewComp, triggerType?: string }) {
if (!args || !args.s_uuid || !args.heroAttrs || !args.heroView) return;
this.forceCastTriggerSkill(args.s_uuid, args.heroAttrs, args.heroView);
this.forceCastTriggerSkill(args.s_uuid, args.heroAttrs, args.heroView, args.triggerType);
}
/** 空施法计划:用于“当前无可施法技能”时的统一返回 */
private readonly emptyCastPlan = { skillId: 0, skillLv: 1, isFriendly: false, targetPos: null as Vec3 | null, targetEids: [] as number[] };
@@ -90,7 +95,14 @@ export class SCastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
* 强制执行触发技能(召唤/死亡触发)
* 忽略CD、状态、动画前摇直接生效
*/
public forceCastTriggerSkill(s_uuid: number, heroAttrs: HeroAttrsComp, heroView: HeroViewComp) {
public forceCastTriggerSkill(s_uuid: number, heroAttrs: HeroAttrsComp, heroView: HeroViewComp, triggerType?: string) {
// 播放相应的触发动画
if (triggerType === 'call') {
heroView.playReady("yellow");
} else if (triggerType === 'dead') {
heroView.playOther("dead");
}
// 如果是敌方攻击技能,必须在战斗中才能释放;友方增益/护盾则允许在非战斗中释放
const config = SkillSet[s_uuid];
if (!config) return;