diff --git a/assets/resources/game/hero/arc1.prefab b/assets/resources/game/hero/arc1.prefab index 199889fa..f1d845e6 100644 --- a/assets/resources/game/hero/arc1.prefab +++ b/assets/resources/game/hero/arc1.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/arc2.prefab b/assets/resources/game/hero/arc2.prefab index bd624f88..5cc2ced1 100644 --- a/assets/resources/game/hero/arc2.prefab +++ b/assets/resources/game/hero/arc2.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/arc3.prefab b/assets/resources/game/hero/arc3.prefab index a9d03328..08d89054 100644 --- a/assets/resources/game/hero/arc3.prefab +++ b/assets/resources/game/hero/arc3.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/hero_icon.plist b/assets/resources/game/hero/hero_icon.plist new file mode 100644 index 00000000..ee8b69bc --- /dev/null +++ b/assets/resources/game/hero/hero_icon.plist @@ -0,0 +1,161 @@ + + + + + frames + + 9001.png + + aliases + + spriteOffset + {2,1} + spriteSize + {58,65} + spriteSourceSize + {102,75} + textureRect + {{1,1},{58,65}} + textureRotated + + + 9002.png + + aliases + + spriteOffset + {2,1} + spriteSize + {58,65} + spriteSourceSize + {102,75} + textureRect + {{68,1},{58,65}} + textureRotated + + + 9003.png + + aliases + + spriteOffset + {2,1} + spriteSize + {58,65} + spriteSourceSize + {102,75} + textureRect + {{135,1},{58,65}} + textureRotated + + + 9004.png + + aliases + + spriteOffset + {-2,-1} + spriteSize + {57,59} + spriteSourceSize + {97,75} + textureRect + {{324,1},{57,59}} + textureRotated + + + 9005.png + + aliases + + spriteOffset + {-2,-1} + spriteSize + {59,59} + spriteSourceSize + {97,75} + textureRect + {{202,1},{59,59}} + textureRotated + + + 9006.png + + aliases + + spriteOffset + {-2,-1} + spriteSize + {59,59} + spriteSourceSize + {97,75} + textureRect + {{263,1},{59,59}} + textureRotated + + + 9007.png + + aliases + + spriteOffset + {5,1} + spriteSize + {49,61} + spriteSourceSize + {93,75} + textureRect + {{515,1},{49,61}} + textureRotated + + + 9008.png + + aliases + + spriteOffset + {7,2} + spriteSize + {51,63} + spriteSourceSize + {93,75} + textureRect + {{383,1},{51,63}} + textureRotated + + + 9009.png + + aliases + + spriteOffset + {5,3} + spriteSize + {49,65} + spriteSourceSize + {93,75} + textureRect + {{448,1},{49,65}} + textureRotated + + + + metadata + + format + 3 + pixelFormat + RGBA8888 + premultiplyAlpha + + realTextureFileName + hero_icon.png + size + {577,61} + smartupdate + $TexturePacker:SmartUpdate:b666e620e0fbd74ba68e9b9dab77417c:4220b683e840b7ee85b058f1cab5fdc1:edcadbf732503a41ecf1a90e72dba274$ + textureFileName + hero_icon.png + + + diff --git a/assets/resources/game/hero/hero_icon.plist.meta b/assets/resources/game/hero/hero_icon.plist.meta new file mode 100644 index 00000000..219d9a3a --- /dev/null +++ b/assets/resources/game/hero/hero_icon.plist.meta @@ -0,0 +1,431 @@ +{ + "ver": "1.0.8", + "importer": "sprite-atlas", + "imported": true, + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5", + "files": [ + ".json" + ], + "subMetas": { + "80343": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@80343", + "displayName": "", + "id": "80343", + "name": "9006", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -2, + "offsetY": -1, + "trimX": 263, + "trimY": 1, + "width": 59, + "height": 59, + "rawWidth": 97, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "c8366": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@c8366", + "displayName": "", + "id": "c8366", + "name": "9001", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 2, + "offsetY": 1, + "trimX": 1, + "trimY": 1, + "width": 58, + "height": 65, + "rawWidth": 102, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "fa39c": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@fa39c", + "displayName": "", + "id": "fa39c", + "name": "9002", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 2, + "offsetY": 1, + "trimX": 68, + "trimY": 1, + "width": 58, + "height": 65, + "rawWidth": 102, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "5c4dd": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@5c4dd", + "displayName": "", + "id": "5c4dd", + "name": "9003", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 2, + "offsetY": 1, + "trimX": 135, + "trimY": 1, + "width": 58, + "height": 65, + "rawWidth": 102, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "3e072": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@3e072", + "displayName": "", + "id": "3e072", + "name": "9004", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -2, + "offsetY": -1, + "trimX": 324, + "trimY": 1, + "width": 57, + "height": 59, + "rawWidth": 97, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "675ef": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@675ef", + "displayName": "", + "id": "675ef", + "name": "9005", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -2, + "offsetY": -1, + "trimX": 202, + "trimY": 1, + "width": 59, + "height": 59, + "rawWidth": 97, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "618a6": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@618a6", + "displayName": "", + "id": "618a6", + "name": "9007", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 5, + "offsetY": 1, + "trimX": 515, + "trimY": 1, + "width": 49, + "height": 61, + "rawWidth": 93, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "a073d": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@a073d", + "displayName": "", + "id": "a073d", + "name": "9008", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 7, + "offsetY": 2, + "trimX": 383, + "trimY": 1, + "width": 51, + "height": 63, + "rawWidth": 93, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "d2107": { + "importer": "sprite-frame", + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5@d2107", + "displayName": "", + "id": "d2107", + "name": "9009", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 5, + "offsetY": 3, + "trimX": 448, + "trimY": 1, + "width": 49, + "height": 65, + "rawWidth": 93, + "rawHeight": 75, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [], + "indexes": [], + "uv": [], + "nuv": [], + "minPos": [], + "maxPos": [] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "atlasUuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "atlasTextureName": "hero_icon.png", + "format": 3, + "uuid": "946b5b69-c398-48c5-9a5d-a398a02d0cf5", + "textureUuid": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a" + } +} diff --git a/assets/resources/game/hero/hero_icon.png b/assets/resources/game/hero/hero_icon.png new file mode 100644 index 00000000..0a3cec89 Binary files /dev/null and b/assets/resources/game/hero/hero_icon.png differ diff --git a/assets/resources/game/hero/hero_icon.png.meta b/assets/resources/game/hero/hero_icon.png.meta new file mode 100644 index 00000000..b5e195dc --- /dev/null +++ b/assets/resources/game/hero/hero_icon.png.meta @@ -0,0 +1,42 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a", + "displayName": "hero_icon", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "repeat", + "wrapModeT": "repeat", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "hasAlpha": true, + "type": "texture", + "fixAlphaTransparencyArtifacts": false, + "redirect": "c86e353b-53c2-4b3b-8e75-6ebdae0fa11d@6c48a" + } +} diff --git a/assets/resources/game/hero/k1.prefab b/assets/resources/game/hero/k1.prefab index 88f1af57..f74233c5 100644 --- a/assets/resources/game/hero/k1.prefab +++ b/assets/resources/game/hero/k1.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/k2.prefab b/assets/resources/game/hero/k2.prefab index 9dc779f5..9b394c9e 100644 --- a/assets/resources/game/hero/k2.prefab +++ b/assets/resources/game/hero/k2.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/k3.prefab b/assets/resources/game/hero/k3.prefab index 13327f3c..a3afc05d 100644 --- a/assets/resources/game/hero/k3.prefab +++ b/assets/resources/game/hero/k3.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/m1.prefab b/assets/resources/game/hero/m1.prefab index 53d6579e..06e46a1b 100644 --- a/assets/resources/game/hero/m1.prefab +++ b/assets/resources/game/hero/m1.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/m2.prefab b/assets/resources/game/hero/m2.prefab index 9121632a..69834f48 100644 --- a/assets/resources/game/hero/m2.prefab +++ b/assets/resources/game/hero/m2.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/game/hero/m3.prefab b/assets/resources/game/hero/m3.prefab index 2cca5df7..a8a23d47 100644 --- a/assets/resources/game/hero/m3.prefab +++ b/assets/resources/game/hero/m3.prefab @@ -186,7 +186,7 @@ "enabledContactListener": true, "bullet": true, "awakeOnLoad": true, - "_group": 2, + "_group": 4, "_type": 1, "_allowSleep": false, "_gravityScale": 0, @@ -218,7 +218,7 @@ "__id__": 8 }, "tag": 4, - "_group": 2, + "_group": 4, "_density": 0, "_sensor": false, "_friction": 0.2, diff --git a/assets/resources/gui/card_info.prefab b/assets/resources/gui/card_info.prefab deleted file mode 100644 index 1a4fde9b..00000000 --- a/assets/resources/gui/card_info.prefab +++ /dev/null @@ -1,1697 +0,0 @@ -[ - { - "__type__": "cc.Prefab", - "_name": "card_info", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "data": { - "__id__": 1 - }, - "optimizationPolicy": 0, - "persistent": false - }, - { - "__type__": "cc.Node", - "_name": "card_info", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": null, - "_children": [ - { - "__id__": 2 - }, - { - "__id__": 8 - }, - { - "__id__": 14 - }, - { - "__id__": 20 - }, - { - "__id__": 26 - }, - { - "__id__": 32 - }, - { - "__id__": 38 - } - ], - "_active": true, - "_components": [ - { - "__id__": 66 - } - ], - "_prefab": { - "__id__": 68 - }, - "_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": 160, - "height": 230 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "4cIi/5iipKa4yfskm8zMU2" - }, - { - "__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": 245, - "g": 242, - "b": 242, - "a": 213 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@eb602", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 1, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": true, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "06Y4xEaARI05nvrg0poyXV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "24Vt7qJFREc4/unSDCjf70", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "hero", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 9 - }, - { - "__id__": 11 - } - ], - "_prefab": { - "__id__": 13 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 28.396, - "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": 76, - "height": 72 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "23bU3TGOhEu7j06Gj0+Bhm" - }, - { - "__type__": "cc.Sprite", - "_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 - }, - "_spriteFrame": { - "__uuid__": "8a791edd-743c-45ad-8991-81f589e8b598@c29c5", - "__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": "74onpoaLRFppbDJL5d1/1B" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "dcN4RpbHFAorfo39g6gJ01", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Cartoon RPG UI_Game Icon - Attack", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 15 - }, - { - "__id__": 17 - } - ], - "_prefab": { - "__id__": 19 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -60.234, - "y": 97.91, - "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__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 20, - "height": 20 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "aa6em5FDlFHKlva1eKUNVJ" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 14 - }, - "_enabled": true, - "__prefab": { - "__id__": 18 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@360cc", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "27WskVFnhI07OaTgJMahDT" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "81uSdCsZ9NKZkFC/Y1cmQR", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Cartoon RPG UI_Game Icon - Life", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 21 - }, - { - "__id__": 23 - } - ], - "_prefab": { - "__id__": 25 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 60.481, - "y": 94.9, - "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__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 22 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 20, - "height": 20 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "dcBI0fcP5A26BGA4FkyGyl" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 20 - }, - "_enabled": true, - "__prefab": { - "__id__": 24 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@63bfa", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a9dX7LjSNOMqztRalDIlOX" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "93o1SYNTVFoY5jbm6kTqKg", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "atk", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 27 - }, - { - "__id__": 29 - } - ], - "_prefab": { - "__id__": 31 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -47.016, - "y": 84.107, - "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__": 26 - }, - "_enabled": true, - "__prefab": { - "__id__": 28 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 42.255859375, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2bkaIZue1IJY+BIdhiJuGc" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 26 - }, - "_enabled": true, - "__prefab": { - "__id__": 30 - }, - "_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": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_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": "06bFcBYfxJDIc3Wzva5Wc7" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "2f8dxVNhZGzpii0ECWLoDR", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "hp", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 33 - }, - { - "__id__": 35 - } - ], - "_prefab": { - "__id__": 37 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 48.061, - "y": 82.017, - "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__": 32 - }, - "_enabled": true, - "__prefab": { - "__id__": 34 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 42.255859375, - "height": 50.4 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f7TdxfB8NFRZUOJRQlbELU" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 32 - }, - "_enabled": true, - "__prefab": { - "__id__": 36 - }, - "_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": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_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": "fb+AjcqJFO/6xFOZF6vDmk" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a2F1E/wuBM3ppC+Vb3dDtt", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "skill", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 39 - }, - { - "__id__": 45 - }, - { - "__id__": 51 - }, - { - "__id__": 57 - } - ], - "_active": true, - "_components": [ - { - "__id__": 63 - } - ], - "_prefab": { - "__id__": 65 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": -9.133, - "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": "line_bg", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 40 - }, - { - "__id__": 42 - } - ], - "_prefab": { - "__id__": 44 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.4409999999999741, - "y": -46.76599999999996, - "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__": 39 - }, - "_enabled": true, - "__prefab": { - "__id__": 41 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 135, - "height": 70 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d8ygK0GHtNmJHeNIb5HqJP" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 39 - }, - "_enabled": true, - "__prefab": { - "__id__": 43 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@5304c", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 0, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "02d6VmxqJC2ZWc6gYQPYZx" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b1JC7VQeZDMqWIJWdvKR06", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "skill_name", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 46 - }, - { - "__id__": 48 - } - ], - "_prefab": { - "__id__": 50 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -0.961, - "y": -21.67, - "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__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 47 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 45, - "height": 18.9 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "f78eemX4RBfqkVFna+XoUE" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 45 - }, - "_enabled": true, - "__prefab": { - "__id__": 49 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "火球术", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 15, - "_fontSize": 15, - "_fontFamily": "Arial", - "_lineHeight": 15, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_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": "90pikVxIlCjJ4L07ZN8omC" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "f4baK6JVZF0YpBkMJtRtJC", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "skill_info", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 52 - }, - { - "__id__": 54 - } - ], - "_prefab": { - "__id__": 56 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 24.515, - "y": -44.225, - "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__": 51 - }, - "_enabled": true, - "__prefab": { - "__id__": 53 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 180, - "height": 18.9 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "84YR+U5f5KqL0nNL/kAtbH" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 51 - }, - "_enabled": true, - "__prefab": { - "__id__": 55 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "技能说明啊实打实的阿萨德", - "_horizontalAlign": 0, - "_verticalAlign": 0, - "_actualFontSize": 15, - "_fontSize": 15, - "_fontFamily": "Arial", - "_lineHeight": 15, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_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": "e2WVh3rW1OEp98Pu1jZCB0" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "22e1HJyN9J3ZkOC4OwIFqf", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "name", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 38 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 58 - }, - { - "__id__": 60 - } - ], - "_prefab": { - "__id__": 62 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -42.783, - "y": -21.152, - "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__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 59 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 45, - "height": 18.9 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d2c4DLwnNDiJLyG3j+wNvX" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 61 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "技能:", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 15, - "_fontSize": 15, - "_fontFamily": "Arial", - "_lineHeight": 15, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 0, - "_enableOutline": false, - "_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": "dcbSsOB4RHr4XzAkBiphEZ" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "03twTNl+RMDa67W0pGvO7X", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 38 - }, - "_enabled": true, - "__prefab": { - "__id__": 64 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5aSyvRb01ArKT8sCSBKQHY" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "ddNsY68Q1HPYEBXOuIaDql", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 67 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 100, - "height": 100 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "8e1YZAVRlLzLVn6G5xXFTV" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "c46/YsCPVOJYA4mWEpNYRx", - "instance": null, - "targetOverrides": null - } -] \ No newline at end of file diff --git a/assets/resources/gui/card_info.prefab.meta b/assets/resources/gui/card_info.prefab.meta deleted file mode 100644 index ddf72a52..00000000 --- a/assets/resources/gui/card_info.prefab.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.50", - "importer": "prefab", - "imported": true, - "uuid": "8e4fb949-6668-4442-bd81-7c6a95e6512f", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": { - "syncNodeName": "card_info" - } -} diff --git a/assets/script/game/common/config/CardSet.ts b/assets/script/game/common/config/CardSet.ts index 0304bf9b..c0564809 100644 --- a/assets/script/game/common/config/CardSet.ts +++ b/assets/script/game/common/config/CardSet.ts @@ -2,11 +2,34 @@ CardList type: 1:精灵 2:技能 3:装备 */ -export const CardList=[ - // {uuid:1101,type:1},{uuid:1102,type:1},{uuid:1103,type:1},{uuid:1104,type:1},{uuid:1105,type:1},{uuid:1106,type:1},{uuid:1107,type:1}, - // {uuid:1108,type:1},{uuid:1109,type:1},{uuid:1110,type:1},{uuid:1113,type:1},{uuid:1114,type:1},{uuid:1115,type:1},{uuid:1116,type:1}, +export const CardList={ + 1:[ + {uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1}, + // {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1}, + ], + 2:[ + {uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1}, + // {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1}, + ], + 3:[ + {uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1}, + // {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1}, + ], + 4:[ {uuid:1001,type:2},{uuid:1002,type:2},{uuid:4011,type:2},{uuid:4012,type:2}, - {uuid:6001,type:3},{uuid:6004,type:3},{uuid:6101,type:3},{uuid:6002,type:3},{uuid:6003,type:3},{uuid:6005,type:3},{uuid:6006,type:3},{uuid:6102,type:3},{uuid:6103,type:3}, - {uuid:6210,type:3},{uuid:6213,type:3},{uuid:6216,type:3},{uuid:6211,type:3},{uuid:6212,type:3},{uuid:6214,type:3},{uuid:6215,type:3},{uuid:6217,type:3},{uuid:6218,type:3}, - ] + {uuid:6001,type:3},{uuid:6004,type:3},{uuid:6101,type:3},{uuid:6002,type:3},{uuid:6003,type:3},{uuid:6005,type:3},{uuid:6006,type:3}, + {uuid:6102,type:3},{uuid:6103,type:3}, {uuid:6210,type:3},{uuid:6213,type:3},{uuid:6216,type:3},{uuid:6211,type:3},{uuid:6212,type:3}, + {uuid:6214,type:3},{uuid:6215,type:3},{uuid:6217,type:3},{uuid:6218,type:3}, + ], + 5:[ + {uuid:9001,type:1},{uuid:9002,type:1},{uuid:9003,type:1},{uuid:9004,type:1},{uuid:9005,type:1},{uuid:9006,type:1}, + // {uuid:9007,type:1},{uuid:9008,type:1},{uuid:9009,type:1},{uuid:9010,type:1},{uuid:9011,type:1},{uuid:9012,type:1}, + ], + 6:[ + {uuid:1001,type:2},{uuid:1002,type:2},{uuid:4011,type:2},{uuid:4012,type:2}, + {uuid:6001,type:3},{uuid:6004,type:3},{uuid:6101,type:3},{uuid:6002,type:3},{uuid:6003,type:3},{uuid:6005,type:3},{uuid:6006,type:3}, + {uuid:6102,type:3},{uuid:6103,type:3}, {uuid:6210,type:3},{uuid:6213,type:3},{uuid:6216,type:3},{uuid:6211,type:3},{uuid:6212,type:3}, + {uuid:6214,type:3},{uuid:6215,type:3},{uuid:6217,type:3},{uuid:6218,type:3}, + ], +} diff --git a/assets/script/game/common/config/heroSet.ts b/assets/script/game/common/config/heroSet.ts index 24c0c595..8408f669 100644 --- a/assets/script/game/common/config/heroSet.ts +++ b/assets/script/game/common/config/heroSet.ts @@ -1,31 +1,22 @@ export const HeroSet={ - 1101:{uuid: 1101,path: 1101,type: 1,level: 1,name: "守护犬",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, + 9001:{uuid: 9001,path: "k1",type: 1,level: 1,name: "战士1",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001,word: "守护",info: "自身护盾", atktype: "攻击型",mon: "狗"}, - 1102:{uuid: 1102,path: 1102,type: 2,level: 1,name: "羊咩咩",atk: 2,hp: 48,atk_cd: 2,power: 50,speed: 30, + 9002:{uuid: 9002,path: "k2",type: 2,level: 1,name: "战士2",atk: 2,hp: 48,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001,word: "守护",info: "自身护盾", atktype: "血量型",mon: "绵羊"}, - 1103:{uuid: 1103,path: 1103,type: 1,level: 1,name: "战斗蚁",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, + 9003:{uuid: 9003,path: "k3",type: 1,level: 1,name: "战士3",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"}, - 1104:{uuid: 1104,path: 1104,type: 1,level: 1,name: "搬运蚁",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, + 9004:{uuid: 9004,path: "m1",type: 1,level: 1,name: "魔法师1",atk: 4,hp: 24,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "蚂蚁"}, - 1105:{uuid: 1105,path: 1105,type: 3,level: 1,name: "闪电鼠",atk: 3,hp: 18,atk_cd: 1,power: 50,speed: 30, + 9005:{uuid: 9005,path: "m2",type: 3,level: 1,name: "魔法师2",atk: 3,hp: 18,atk_cd: 1,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "鼠"}, - 1106:{uuid: 1106,path: 1106,type: 3,level: 1,name: "闪电喵",atk: 3,hp: 18,atk_cd: 2,power: 50,speed: 30, + 9006:{uuid: 9006,path: "m3",type: 3,level: 1,name: "魔法师3",atk: 3,hp: 18,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001,word: "守护",info: "自身护盾", atktype: "攻速型",mon: "猫"}, - 1107:{uuid: 1107,path: 1107,type: 3,level: 1,name: "灵巧松鼠",atk: 3,hp: 18,atk_cd: 1,power: 50,speed: 30, + 9007:{uuid: 9007,path: "arc1",type: 3,level: 1,name: "弓箭手1",atk: 3,hp: 18,atk_cd: 1,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001,word: "狂暴",info: "全体攻击", atktype: "攻速型",mon: "松鼠"}, - 1108:{uuid: 1108,path: 1108,type: 3,level: 2,name: "机械蜜",atk: 4,hp: 27,atk_cd: 1,power: 50,speed: 30, + 9008:{uuid: 9008,path: "arc2",type: 3,level: 2,name: "弓箭手2",atk: 4,hp: 27,atk_cd: 1,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "机械蜜蜂"}, - 1109:{uuid: 1109,path: 1109,type: 1,level: 2,name: "猎鹰",atk: 6,hp: 36,atk_cd: 2,power: 50,speed: 30, + 9009:{uuid: 9009,path: "arc3",type: 1,level: 2,name: "弓箭手3",atk: 6,hp: 36,atk_cd: 2,power: 50,speed: 30, skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻击型",mon: "鹰"}, - 1110:{uuid: 1110,path: 1110,type: 2,level: 3,name: "憨憨猪",atk: 5,hp: 108,atk_cd: 2,power: 50,speed: 30, - skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "血量型",mon: "野猪"}, - 1113:{uuid: 1113,path: 1113,type: 3,level: 3,name: "憨憨猪",atk: 6,hp: 45,atk_cd: 1,power: 50,speed: 30, - skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "攻速型",mon: "狮子"}, - 1114:{uuid: 1114,path: 1114,type: 2,level: 4,name: "黑耀犀牛",atk: 7,hp: 162,atk_cd: 2,power: 50,speed: 30, - skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001,word: "雷暴",info: "雷暴", atktype: "血量型",mon: "犀牛"}, - 1115:{uuid: 1115,path: 1115,type: 6,level: 5,name: "雷暴犀牛",atk: 15,hp: 180,atk_cd: 1,power: 50,speed: 30, - skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "精英型",mon: "雷电犀牛"}, - 1116:{uuid: 1116,path: 1116,type: 6,level: 5,name: "雷暴鼠",atk: 15,hp: 180,atk_cd: 1,power: 50,speed: 30, - skill: "base",max_skill: "base",skill_uuid: 9001,max_skill_uuid: 1001, atktype: "精英型",mon: "闪电鼠"}, + } \ No newline at end of file diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index 1a447980..2769e8b8 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -41,7 +41,9 @@ export class Hero extends ecs.Entity { /** 加载角色 */ load(pos: Vec3 = Vec3.ZERO,scale:number = -1,uuid:number=1001,layer:Node=smc.map.MapView.scene.entityLayer!.node!) { - var path = "game/monster/"+MonSet[uuid].path; + console.log("加载角色",uuid,smc.heros[uuid]); + + var path = "game/hero/"+smc.heros[uuid].path; var prefab: Prefab = oops.res.get(path, Prefab)!; var node = instantiate(prefab); node.parent=layer @@ -50,11 +52,11 @@ export class Hero extends ecs.Entity { // node.setScale(node.scale.x*scale*ratio, node.scale.y*ratio, 0); node.setPosition(pos) this.hero_init(uuid,node) - oops.message.dispatchEvent("mon_load",this) + oops.message.dispatchEvent("hero_load",this) } set_ratio(uuid:number){ let ratio=1; - switch (MonSet[uuid].level) { + switch (smc.heros[uuid].level) { case 2: ratio=1.05 break; @@ -76,18 +78,18 @@ export class Hero extends ecs.Entity { var mv = node.getComponent(HeroViewComp)!; var buff =node.getComponent(HeroBuffComp)!; // console.log("hero_init",buff) - mv.speed =mv.ospeed = smc.monsters[uuid].speed; - mv.hero_name= smc.monsters[uuid].name; - buff.group=mv.box_group= BoxSet.MONSTER; - mv.hp= mv.hp_max = smc.monsters[uuid].hp; - mv.level = smc.monsters[uuid].level; - mv.atk = smc.monsters[uuid].atk; - mv.atk_cd = smc.monsters[uuid].atk_cd; - mv.power = smc.monsters[uuid].power; - mv.type = smc.monsters[uuid].type; + mv.speed =mv.ospeed = smc.heros[uuid].speed; + mv.hero_name= smc.heros[uuid].name; + buff.group=mv.box_group= BoxSet.HERO; + mv.hp= mv.hp_max = smc.heros[uuid].hp; + mv.level = smc.heros[uuid].level; + mv.atk = smc.heros[uuid].atk; + mv.atk_cd = smc.heros[uuid].atk_cd; + mv.power = smc.heros[uuid].power; + mv.type = smc.heros[uuid].type; mv.skill_uuid = 9001; - mv.max_skill_uuid = smc.monsters[uuid].max_skill_uuid; - mv.scale = -1; + mv.max_skill_uuid = smc.heros[uuid].max_skill_uuid; + mv.scale = 1; mv.Tpos = v3(0,0,0); this.add(mv); this.add(buff); diff --git a/assets/script/game/hero/HeroViewComp.ts b/assets/script/game/hero/HeroViewComp.ts index ef5bb4b5..6a9229a6 100644 --- a/assets/script/game/hero/HeroViewComp.ts +++ b/assets/script/game/hero/HeroViewComp.ts @@ -172,7 +172,7 @@ export class HeroViewComp extends CCComp { this.in_shield(); this.in_stop(dt); this.in_act(dt); - // this.move(dt); + this.move(dt); // if(this.m_timer.update(dt)){ // this.move_to() // } @@ -189,9 +189,9 @@ export class HeroViewComp extends CCComp { if(this.scale===-1&&this.node.position.x <= BoxSet.HERO_START){ return; } - // if(this.enemy){ - // return - // } + if(this.enemy){ + return + } this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y, this.node.position.z); } move_to(){ diff --git a/assets/script/game/map/CardController.ts b/assets/script/game/map/CardController.ts index 9964c3e1..498073f1 100644 --- a/assets/script/game/map/CardController.ts +++ b/assets/script/game/map/CardController.ts @@ -81,7 +81,6 @@ export class CardControllerComp extends CCComp { // } // } touch1(event: EventTouch) { - console.log("touch 1"); this.in_touch=true if(this.in_load)return if(!this.cards[1].alive)return @@ -89,7 +88,6 @@ export class CardControllerComp extends CCComp { } touch2(event: EventTouch) { - console.log("touch 2"); this.in_touch=true if(this.in_load)return if(!this.cards[2].alive)return @@ -97,7 +95,6 @@ export class CardControllerComp extends CCComp { } touch3(event: EventTouch) { - console.log("touch 3"); this.in_touch=true if(this.in_load)return if(!this.cards[3].alive)return @@ -105,7 +102,6 @@ export class CardControllerComp extends CCComp { } touch4(event: EventTouch) { - console.log("touch 4"); this.in_touch=true if(this.in_load)return if(!this.cards[4].alive)return @@ -113,7 +109,6 @@ export class CardControllerComp extends CCComp { } touch5(event: EventTouch) { - console.log("touch 5"); this.in_touch=true if(this.in_load)return if(!this.cards[5].alive)return @@ -121,44 +116,37 @@ export class CardControllerComp extends CCComp { } touch6(event: EventTouch) { - console.log("touch 6"); this.in_touch=true if(this.in_load)return if(!this.cards[6].alive)return this.show_info(this.cards[6].uuid,this.cards[6].type) } end1(event: EventTouch) { - console.log("end1 1"); this.onTouchEnd(1) } end2(event: EventTouch) { - console.log("end2 2"); this.onTouchEnd(2) } end3(event: EventTouch) { - console.log("end3 3"); this.onTouchEnd(3) } end4(event: EventTouch) { - console.log("end4 4"); this.onTouchEnd(4) } end5(event: EventTouch) { - console.log("end5 5"); this.onTouchEnd(5) } end6(event: EventTouch) { - console.log("end6 6"); this.onTouchEnd(6) } show_info(uuid:number,type:number){ - console.log("show_info",uuid) + // console.log("show_info",uuid) let node =this.node.getChildByName("item_box") if(type == 2){ smc.vm_data.item_box.info = SkillSet[uuid].info @@ -170,7 +158,6 @@ export class CardControllerComp extends CCComp { node.active=true } if(type == 3){ - console.log(SkillSet[uuid]) smc.vm_data.item_box.info = SkillSet[uuid].info smc.vm_data.item_box.name = SkillSet[uuid].name smc.vm_data.item_box.skillcd = SkillSet[uuid].cd @@ -243,11 +230,16 @@ export class CardControllerComp extends CCComp { smc.vm_data.shuaxin.min = 0 } } + + get_card_list(li:number){ + let list = RandomManager.instance.getRandomByObjectList(CardList[li], 1); + return list + } load_cards() { this.in_load = true let card:any=null for (let index = 1; index <= 6; index++) { - card=RandomManager.instance.getRandomByObjectList(CardList, 1); + card=RandomManager.instance.getRandomByObjectList(CardList[index], 1); this.cards[index].uuid=card[0].uuid this.cards[index].type=card[0].type @@ -258,8 +250,8 @@ export class CardControllerComp extends CCComp { let { uuid, type } = card[0]; switch (type) { case 1: - url = "game/heros/heros"; - ({ path: pathName, name, level } = smc.heros[uuid]); + url = "game/hero/hero_icon"; + ({ uuid: pathName, name, level } = smc.heros[uuid]); break; case 2: url = "game/heros/skill"; @@ -271,7 +263,6 @@ export class CardControllerComp extends CCComp { ({ path: pathName, name, level } = smc.skills[uuid]); } this.cards[index].lv=level - console.log("load_cards:",url,pathName,name,level) let node=this.node.getChildByName('cards').getChildByName('card'+index) node.getChildByName('cost').getComponent(Label).string=level.toString() node.getChildByName('name').getComponent(Label).string=name @@ -352,10 +343,6 @@ export class CardControllerComp extends CCComp { } } - get_card_list(){ - let list = RandomManager.instance.getRandomByObjectList(CardList, 1); - return list - } /** 视图对象通过 ecs.Entity.remove(ControllerComp) 删除组件是触发组件处理自定义释放逻辑 */ reset() { diff --git a/assets/script/game/map/MapMonsterComp.ts b/assets/script/game/map/MapMonsterComp.ts index d588ce74..f58a2afd 100644 --- a/assets/script/game/map/MapMonsterComp.ts +++ b/assets/script/game/map/MapMonsterComp.ts @@ -10,10 +10,9 @@ import { MapViewScene } from "./view/MapViewScene"; import { MissionSet,MissionNum,MonsetList } from "../common/config/MissionSet"; import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager"; import { Role } from "../Role/Role"; -import { Hero } from "../monster/Hero"; -import { HeroModelComp } from "../monster/HeroModelComp"; +import { Hero } from "../hero/Hero"; +import { HeroModelComp } from "../hero/HeroModelComp"; import { MonsterModelComp } from "../monster/MonsterModelComp"; -import { MonsterViewComp } from "../monster/MonsterViewComp"; import { Mon } from "../mon/Mon"; const { ccclass, property } = _decorator;