去除久设计
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -34,20 +34,17 @@
|
||||
"__id__": 34
|
||||
},
|
||||
{
|
||||
"__id__": 48
|
||||
},
|
||||
{
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 82
|
||||
"__id__": 68
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 84
|
||||
"__id__": 70
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -850,351 +847,6 @@
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "lab_content-001",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 35
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 43
|
||||
},
|
||||
{
|
||||
"__id__": 45
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 47
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 53.719,
|
||||
"y": -16.733,
|
||||
"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": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "gems",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 34
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 36
|
||||
},
|
||||
{
|
||||
"__id__": 38
|
||||
},
|
||||
{
|
||||
"__id__": 40
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 42
|
||||
},
|
||||
"_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": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 35
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 37
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 61.83984375,
|
||||
"height": 54.4
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "1bopf7GqhLHZHuH2k8aAlj"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 35
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 39
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 26,
|
||||
"g": 142,
|
||||
"b": 233,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "1000",
|
||||
"_horizontalAlign": 1,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 26,
|
||||
"_fontSize": 26,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 40,
|
||||
"_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": 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": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "0eS3IBmvVNY7/hFNUl6YE1"
|
||||
},
|
||||
{
|
||||
"__type__": "545c05XsG9GDJispEGWKvYv",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 35
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 41
|
||||
},
|
||||
"templateMode": false,
|
||||
"watchPath": "data.gems",
|
||||
"labelType": "cc.Label",
|
||||
"watchPathArr": [],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "4c0dOd1XlB+bHyuI7KQ22r"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "04K2akqvVAHKUvP9EPJJNV",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 44
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 420,
|
||||
"height": 41.8
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.5,
|
||||
"y": 0.5
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "e3to4uYHhBK7wBbK6Z0zIh"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Label",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 46
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 5,
|
||||
"g": 5,
|
||||
"b": 5,
|
||||
"a": 255
|
||||
},
|
||||
"_string": "您当前的钻石:",
|
||||
"_horizontalAlign": 0,
|
||||
"_verticalAlign": 1,
|
||||
"_actualFontSize": 26,
|
||||
"_fontSize": 26,
|
||||
"_fontFamily": "Arial",
|
||||
"_lineHeight": 30,
|
||||
"_overflow": 3,
|
||||
"_enableWrapText": true,
|
||||
"_font": null,
|
||||
"_isSystemFontUsed": true,
|
||||
"_spacingX": 0,
|
||||
"_isItalic": false,
|
||||
"_isBold": false,
|
||||
"_isUnderline": false,
|
||||
"_underlineHeight": 2,
|
||||
"_cacheMode": 1,
|
||||
"_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": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "edCpR/rU5DAIFH3Q49pMEG"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "e5g0EypbRDkLi0E90/yqSh",
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "btn_ok",
|
||||
@@ -1205,26 +857,26 @@
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 49
|
||||
"__id__": 35
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 55
|
||||
"__id__": 41
|
||||
},
|
||||
{
|
||||
"__id__": 57
|
||||
"__id__": 43
|
||||
},
|
||||
{
|
||||
"__id__": 59
|
||||
"__id__": 45
|
||||
},
|
||||
{
|
||||
"__id__": 62
|
||||
"__id__": 48
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 64
|
||||
"__id__": 50
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -1261,20 +913,20 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 50
|
||||
"__id__": 36
|
||||
},
|
||||
{
|
||||
"__id__": 52
|
||||
"__id__": 38
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 54
|
||||
"__id__": 40
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -1311,11 +963,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 49
|
||||
"__id__": 35
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 51
|
||||
"__id__": 37
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -1339,11 +991,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 49
|
||||
"__id__": 35
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 53
|
||||
"__id__": 39
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -1420,11 +1072,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 56
|
||||
"__id__": 42
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -1448,11 +1100,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 58
|
||||
"__id__": 44
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -1490,15 +1142,15 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 60
|
||||
"__id__": 46
|
||||
},
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 61
|
||||
"__id__": 47
|
||||
}
|
||||
],
|
||||
"_interactable": true,
|
||||
@@ -1538,7 +1190,7 @@
|
||||
"_duration": 0.1,
|
||||
"_zoomScale": 0.9,
|
||||
"_target": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
@@ -1562,11 +1214,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 48
|
||||
"__id__": 34
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 63
|
||||
"__id__": 49
|
||||
},
|
||||
"_alignFlags": 12,
|
||||
"_target": null,
|
||||
@@ -1615,26 +1267,26 @@
|
||||
},
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 66
|
||||
"__id__": 52
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 72
|
||||
"__id__": 58
|
||||
},
|
||||
{
|
||||
"__id__": 74
|
||||
"__id__": 60
|
||||
},
|
||||
{
|
||||
"__id__": 76
|
||||
"__id__": 62
|
||||
},
|
||||
{
|
||||
"__id__": 79
|
||||
"__id__": 65
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 81
|
||||
"__id__": 67
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -1671,20 +1323,20 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 67
|
||||
"__id__": 53
|
||||
},
|
||||
{
|
||||
"__id__": 69
|
||||
"__id__": 55
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 71
|
||||
"__id__": 57
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -1721,11 +1373,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 66
|
||||
"__id__": 52
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 68
|
||||
"__id__": 54
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -1749,11 +1401,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 66
|
||||
"__id__": 52
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 70
|
||||
"__id__": 56
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -1830,11 +1482,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 73
|
||||
"__id__": 59
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
@@ -1858,11 +1510,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 75
|
||||
"__id__": 61
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -1900,15 +1552,15 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 77
|
||||
"__id__": 63
|
||||
},
|
||||
"clickEvents": [
|
||||
{
|
||||
"__id__": 78
|
||||
"__id__": 64
|
||||
}
|
||||
],
|
||||
"_interactable": true,
|
||||
@@ -1948,7 +1600,7 @@
|
||||
"_duration": 0.1,
|
||||
"_zoomScale": 0.9,
|
||||
"_target": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
@@ -1972,11 +1624,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 65
|
||||
"__id__": 51
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 80
|
||||
"__id__": 66
|
||||
},
|
||||
"_alignFlags": 36,
|
||||
"_target": null,
|
||||
@@ -2025,7 +1677,7 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 83
|
||||
"__id__": 69
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
|
||||
@@ -62,8 +62,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
name : "纸片精灵大乱斗",
|
||||
game_over:false,
|
||||
game_pause:false,
|
||||
gems: 4,
|
||||
unlock:5,
|
||||
mission:{
|
||||
play:false,
|
||||
pause:false,
|
||||
@@ -84,95 +82,21 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
reward_num:0, //怪物死亡数
|
||||
reward_gold:0,
|
||||
reward_exp:0,
|
||||
hero:{
|
||||
ap:1,
|
||||
atk_cd:1,
|
||||
hp:1,
|
||||
},
|
||||
role:{
|
||||
atk:1,
|
||||
atk_cd:1,
|
||||
hp:1,
|
||||
}
|
||||
},
|
||||
role:{
|
||||
fight_heros:[9001,9001],
|
||||
gold:9999999,
|
||||
gems:0,
|
||||
energy:0,
|
||||
mission:1,
|
||||
mission_finish:false,
|
||||
mission_num:0,
|
||||
mission_num_max:5,
|
||||
hero_num:12,
|
||||
hp:300,
|
||||
hp_max:300,
|
||||
speed:0,
|
||||
atk:10,
|
||||
atk_dis:700,
|
||||
buff_atk:0,
|
||||
mission_atk:0,
|
||||
atk_time:0,
|
||||
atk_cd:1,
|
||||
atk_base_cd:1,
|
||||
atk_cd_up:0,
|
||||
mission_atk_cd_up:0,
|
||||
atk_range:400,
|
||||
lv:1,
|
||||
exp:0,
|
||||
next_exp:100,
|
||||
power:300,
|
||||
skill:1004,
|
||||
skill1:{uuid:1004,cd:3,cd_max:3,alive:true},
|
||||
skill2:{uuid:1002,cd:3,cd_max:3,alive:true},
|
||||
skill3:{uuid:1001,cd:3,cd_max:3,alive:false},
|
||||
skill4:{uuid:1001,cd:3,cd_max:3,alive:false},
|
||||
skill5:{uuid:1001,cd:3,cd_max:3,alive:false},
|
||||
},
|
||||
fight_heros:[9001,9001],
|
||||
items:{
|
||||
1001:{uuid: 1001,num:0},
|
||||
1002:{uuid: 1002,num:0},
|
||||
1003:{uuid: 1003,num:0},
|
||||
1004:{uuid: 1004,num:0},
|
||||
1005:{uuid: 1005,num:0},
|
||||
1006:{uuid: 1006,num:0},
|
||||
1007:{uuid: 1007,num:0},
|
||||
1008:{uuid: 1008,num:0},
|
||||
1009:{uuid: 1009,num:0},
|
||||
1010:{uuid: 1010,num:0},
|
||||
}
|
||||
},
|
||||
heros:{
|
||||
9001:{uuid:9001,lv:1,exp:0},
|
||||
},
|
||||
talent:{
|
||||
1001:{uuid:1001,lv:0,},
|
||||
1002:{uuid:1002,lv:0,},
|
||||
1003:{uuid:1003,lv:0,},
|
||||
1004:{uuid:1004,lv:0,},
|
||||
1005:{uuid:1005,lv:0,},
|
||||
1006:{uuid:1006,lv:0,},
|
||||
1007:{uuid:1007,lv:0,},
|
||||
1008:{uuid:1008,lv:0,},
|
||||
1009:{uuid:1009,lv:0,},
|
||||
1010:{uuid:1010,lv:0,},
|
||||
1011:{uuid:1011,lv:0,},
|
||||
1012:{uuid:1012,lv:0,},
|
||||
1013:{uuid:1013,lv:0,},
|
||||
1014:{uuid:1014,lv:0,},
|
||||
1015:{uuid:1015,lv:0,},
|
||||
1016:{uuid:1016,lv:0,},
|
||||
},
|
||||
monster:{
|
||||
gold_add:1,
|
||||
},
|
||||
gold: {
|
||||
min: 200,
|
||||
max: 200,
|
||||
max_limit:200,
|
||||
time:0,
|
||||
cd:1,
|
||||
},
|
||||
shuaxin: {
|
||||
min: 0,
|
||||
max: 5,
|
||||
speed:1,
|
||||
},
|
||||
item_box:{
|
||||
hp:0,
|
||||
@@ -185,7 +109,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
shield:0,
|
||||
info:"",
|
||||
}
|
||||
|
||||
};
|
||||
vmAdd() {
|
||||
VM.add(this.vm_data, "data");
|
||||
|
||||
@@ -476,8 +476,7 @@ export class HeroViewComp extends CCComp {
|
||||
shoot_enemy(sk:number,y:number=0,x:number=0){
|
||||
// console.log("mon shoot_enemy");
|
||||
let skill = ecs.getEntity<Skill>(Skill);
|
||||
let increase_ap=Math.floor(this.ap*smc.vm_data.mission.hero.ap)
|
||||
let ap = smc.skills[sk].ap+this.ap_buff+increase_ap;
|
||||
let ap = this.ap;
|
||||
let {pos,t_pos}=this.get_enemy_pos()
|
||||
pos.y=pos.y + y
|
||||
pos.x=pos.x + x
|
||||
|
||||
@@ -17,34 +17,15 @@ export class CsuoComp extends CCComp {
|
||||
|
||||
}
|
||||
onTouch() {
|
||||
if(smc.vm_data.gems < smc.vm_data.unlock){
|
||||
oops.gui.toast("钻石不足")
|
||||
return
|
||||
}
|
||||
smc.vm_data.gems=smc.vm_data.gems-smc.vm_data.unlock;
|
||||
this.node.active=false;
|
||||
|
||||
}
|
||||
onOk(){
|
||||
this.node.active=false;
|
||||
}
|
||||
oncancel(){
|
||||
smc.vm_data.power.min=smc.vm_data.power.min+1;
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @param params 参数
|
||||
* {
|
||||
* title: 标题
|
||||
* content: 内容
|
||||
* okWord: ok按钮上的文字
|
||||
* okFunc: 确认时执行的方法
|
||||
* cancelWord: 取消按钮的文字
|
||||
* cancelFunc: 取消时执行的方法
|
||||
* needCancel: 是否需要取消按钮
|
||||
* }
|
||||
*/
|
||||
|
||||
/** 视图层逻辑代码分离演示 */
|
||||
start() {
|
||||
@@ -52,13 +33,7 @@ export class CsuoComp extends CCComp {
|
||||
// this.on(ModuleEvent.Cmd, this.onHandler, this);
|
||||
}
|
||||
|
||||
/** 全局消息逻辑处理 */
|
||||
// private onHandler(event: string, args: any) {
|
||||
// switch (event) {
|
||||
// case ModuleEvent.Cmd:
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
reset() {
|
||||
|
||||
@@ -314,7 +314,7 @@ export class MissionComp extends CCComp {
|
||||
}
|
||||
}
|
||||
heros_call(){
|
||||
let heros=smc.vm_data.role.fight_heros
|
||||
let heros=smc.vm_data.fight_heros
|
||||
for(let i=0;i<heros.length;i++){
|
||||
this.addHero(heros[i],i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user