This commit is contained in:
2024-08-16 08:45:09 +08:00
parent c67a149620
commit dc12cea962
20 changed files with 1256 additions and 558 deletions

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a3329190-800f-450a-a5a0-90a4b59ddd4b",
"files": [],
"subMetas": {},
"userData": {}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
skeleton.png
size: 86,55
format: RGBA8888
filter: Linear,Linear
repeat: none
bb
rotate: false
xy: 2, 2
size: 82, 51
orig: 82, 51
offset: 0, 0
index: -1

View File

@@ -0,0 +1,12 @@
{
"ver": "1.0.1",
"importer": "*",
"imported": true,
"uuid": "958e8fe7-e356-4285-aa30-1ec62e24f36e",
"files": [
".atlas",
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,67 @@
{
"skeleton": {
"hash": "mTdwPQSy5KxWwnhuf6ECTp8Do1M",
"spine": "3.8.99",
"x": -0.82,
"y": 24.4,
"width": 15.52,
"height": 9.6,
"images": "",
"audio": ""
},
"bones": [
{ "name": "root" },
{ "name": "bone", "parent": "root", "y": 24, "scaleX": 1.0139, "scaleY": 1.0139 }
],
"slots": [
{ "name": "bb", "bone": "bone", "attachment": "bb" }
],
"skins": [
{
"name": "default",
"attachments": {
"bb": {
"bb": { "x": 6.85, "y": 5.13, "scaleX": 0.1867, "scaleY": 0.1857, "width": 82, "height": 51 }
}
}
}
],
"animations": {
"atk": {
"bones": {
"bone": {
"scale": [
{},
{ "time": 0.3, "x": 0.682 },
{ "time": 0.4, "x": 1.06 },
{ "time": 0.5 }
]
}
}
},
"magic": {
"bones": {
"bone": {
"scale": [
{ "x": 0.986, "y": 0.986 },
{ "time": 0.2, "x": 1.153, "y": 0.896 },
{ "time": 0.4, "x": 0.789, "y": 1.085, "curve": "stepped" },
{ "time": 0.5333, "x": 0.789, "y": 1.085 },
{ "time": 0.6667, "x": 0.986, "y": 0.986 }
]
}
}
},
"move": {
"bones": {
"bone": {
"scale": [
{},
{ "time": 0.5, "y": 0.96 },
{ "time": 1 }
]
}
}
}
}
}

View File

@@ -0,0 +1,11 @@
{
"ver": "1.2.6",
"importer": "spine-data",
"imported": true,
"uuid": "a80809a8-64bf-4c66-b49e-7aa837d821dd",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,42 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "a2c2ea64-e32d-425c-87be-2e57155a04b2",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a2c2ea64-e32d-425c-87be-2e57155a04b2@6c48a",
"displayName": "skeleton",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "repeat",
"wrapModeT": "repeat",
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0,
"isUuid": true,
"imageUuidOrDatabaseUri": "a2c2ea64-e32d-425c-87be-2e57155a04b2",
"visible": false
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"hasAlpha": true,
"type": "texture",
"fixAlphaTransparencyArtifacts": false,
"redirect": "a2c2ea64-e32d-425c-87be-2e57155a04b2@6c48a"
}
}

View File

@@ -442,7 +442,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 79.62,
"y": 0,
"z": 0
},
"_lrot": {
@@ -455,7 +455,7 @@
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.7,
"y": 0.7,
"y": 1,
"z": 1
},
"_mobility": 0,
@@ -595,12 +595,12 @@
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 310,
"x": -119.1,
"y": -459.8
},
"_size": {
"__type__": "cc.Size",
"width": 3260.8,
"width": 4118.9,
"height": 981.7
},
"_id": ""
@@ -617,7 +617,7 @@
"node": {
"__id__": 10
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 20
},
@@ -651,7 +651,7 @@
"node": {
"__id__": 10
},
"_enabled": true,
"_enabled": false,
"__prefab": {
"__id__": 22
},

View File

@@ -93,7 +93,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -15,
"y": 0,
"z": 0
},
"_lrot": {
@@ -133,8 +133,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 64,
"height": 64
"width": 20,
"height": 72
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -287,13 +287,13 @@
"_restitution": 0,
"_offset": {
"__type__": "cc.Vec2",
"x": 16,
"y": 16
"x": 10.2,
"y": 33.2
},
"_size": {
"__type__": "cc.Size",
"width": 32,
"height": 32
"width": 20.4,
"height": 66.4
},
"_id": ""
},

View File

@@ -15,9 +15,9 @@
<key>spriteSourceSize</key>
<string>{94,118}</string>
<key>textureRect</key>
<string>{{1573,543},{94,118}}</string>
<string>{{555,811},{94,118}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>02.png</key>
<dict>
@@ -30,7 +30,7 @@
<key>spriteSourceSize</key>
<string>{64,63}</string>
<key>textureRect</key>
<string>{{405,443},{64,63}}</string>
<string>{{1591,960},{64,63}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -45,7 +45,7 @@
<key>spriteSourceSize</key>
<string>{64,62}</string>
<key>textureRect</key>
<string>{{1476,898},{64,62}}</string>
<string>{{405,443},{64,62}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -75,9 +75,9 @@
<key>spriteSourceSize</key>
<string>{190,178}</string>
<key>textureRect</key>
<string>{{276,787},{190,178}}</string>
<string>{{1203,730},{190,178}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>28.png</key>
<dict>
@@ -105,9 +105,9 @@
<key>spriteSourceSize</key>
<string>{254,256}</string>
<key>textureRect</key>
<string>{{1196,215},{254,256}}</string>
<string>{{1455,215},{254,256}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>30.png</key>
<dict>
@@ -120,7 +120,7 @@
<key>spriteSourceSize</key>
<string>{256,244}</string>
<key>textureRect</key>
<string>{{1454,257},{256,244}}</string>
<string>{{746,471},{256,244}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -135,9 +135,9 @@
<key>spriteSourceSize</key>
<string>{122,98}</string>
<key>textureRect</key>
<string>{{1476,774},{122,98}}</string>
<string>{{431,811},{122,98}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>43.png</key>
<dict>
@@ -150,7 +150,7 @@
<key>spriteSourceSize</key>
<string>{100,100}</string>
<key>textureRect</key>
<string>{{1786,655},{100,100}}</string>
<string>{{675,811},{100,100}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -165,9 +165,9 @@
<key>spriteSourceSize</key>
<string>{82,94}</string>
<key>textureRect</key>
<string>{{981,841},{82,94}}</string>
<string>{{1283,922},{82,94}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>57.png</key>
<dict>
@@ -180,7 +180,7 @@
<key>spriteSourceSize</key>
<string>{90,104}</string>
<key>textureRect</key>
<string>{{767,841},{90,104}}</string>
<string>{{766,915},{90,104}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -195,7 +195,7 @@
<key>spriteSourceSize</key>
<string>{100,96}</string>
<key>textureRect</key>
<string>{{1683,759},{100,96}}</string>
<string>{{664,913},{100,96}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -210,7 +210,7 @@
<key>spriteSourceSize</key>
<string>{84,106}</string>
<key>textureRect</key>
<string>{{873,841},{84,106}}</string>
<string>{{872,915},{84,106}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -225,9 +225,9 @@
<key>spriteSourceSize</key>
<string>{82,100}</string>
<key>textureRect</key>
<string>{{1739,857},{82,100}}</string>
<string>{{980,918},{82,100}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Artboard 13.png</key>
<dict>
@@ -240,7 +240,7 @@
<key>spriteSourceSize</key>
<string>{321,299}</string>
<key>textureRect</key>
<string>{{816,582},{257,261}}</string>
<string>{{1004,471},{257,261}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -285,9 +285,9 @@
<key>spriteSourceSize</key>
<string>{360,112}</string>
<key>textureRect</key>
<string>{{772,392},{344,94}}</string>
<string>{{1383,670},{344,94}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Artboard 18.png</key>
<dict>
@@ -300,9 +300,9 @@
<key>spriteSourceSize</key>
<string>{360,114}</string>
<key>textureRect</key>
<string>{{746,488},{336,92}}</string>
<string>{{1711,200},{336,92}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Artboard 27.png</key>
<dict>
@@ -435,7 +435,7 @@
<key>spriteSourceSize</key>
<string>{318,335}</string>
<key>textureRect</key>
<string>{{1618,1},{254,261}}</string>
<string>{{1192,215},{254,261}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -450,7 +450,7 @@
<key>spriteSourceSize</key>
<string>{93,95}</string>
<key>textureRect</key>
<string>{{1658,889},{79,79}}</string>
<string>{{1716,846},{79,79}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -465,9 +465,9 @@
<key>spriteSourceSize</key>
<string>{93,94}</string>
<key>textureRect</key>
<string>{{1576,889},{79,80}}</string>
<string>{{1716,764},{79,80}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Artboard 69.png</key>
<dict>
@@ -480,9 +480,9 @@
<key>spriteSourceSize</key>
<string>{121,129}</string>
<key>textureRect</key>
<string>{{1576,774},{105,113}}</string>
<string>{{222,918},{105,113}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Artboard 70.png</key>
<dict>
@@ -495,9 +495,9 @@
<key>spriteSourceSize</key>
<string>{121,124}</string>
<key>textureRect</key>
<string>{{1679,655},{105,102}}</string>
<string>{{448,918},{105,102}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>Artboard 9.png</key>
<dict>
@@ -525,7 +525,7 @@
<key>spriteSourceSize</key>
<string>{197,185}</string>
<key>textureRect</key>
<string>{{1712,257},{197,185}}</string>
<string>{{1618,1},{197,185}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -540,9 +540,9 @@
<key>spriteSourceSize</key>
<string>{197,186}</string>
<key>textureRect</key>
<string>{{1712,456},{197,186}}</string>
<string>{{1,821},{197,186}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>BtnSmallBlue.png</key>
<dict>
@@ -555,7 +555,7 @@
<key>spriteSourceSize</key>
<string>{197,186}</string>
<key>textureRect</key>
<string>{{1079,582},{197,186}}</string>
<string>{{1267,471},{197,186}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -570,7 +570,7 @@
<key>spriteSourceSize</key>
<string>{197,186}</string>
<key>textureRect</key>
<string>{{1079,781},{197,186}}</string>
<string>{{1455,473},{197,186}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -585,9 +585,9 @@
<key>spriteSourceSize</key>
<string>{196,186}</string>
<key>textureRect</key>
<string>{{1278,781},{196,186}}</string>
<string>{{816,717},{196,186}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>BtnSmallOrange.png</key>
<dict>
@@ -600,9 +600,9 @@
<key>spriteSourceSize</key>
<string>{197,186}</string>
<key>textureRect</key>
<string>{{1267,582},{197,186}}</string>
<string>{{1004,730},{197,186}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>Heroes_icon.png</key>
<dict>
@@ -615,7 +615,7 @@
<key>spriteSourceSize</key>
<string>{41,48}</string>
<key>textureRect</key>
<string>{{1669,543},{41,48}}</string>
<string>{{1336,670},{41,48}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -630,7 +630,7 @@
<key>spriteSourceSize</key>
<string>{35,32}</string>
<key>textureRect</key>
<string>{{234,787},{35,32}}</string>
<string>{{772,341},{35,32}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -645,7 +645,7 @@
<key>spriteSourceSize</key>
<string>{42,43}</string>
<key>textureRect</key>
<string>{{981,925},{42,43}}</string>
<string>{{1567,170},{42,43}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -675,7 +675,7 @@
<key>spriteSourceSize</key>
<string>{105,10}</string>
<key>textureRect</key>
<string>{{627,958},{105,10}}</string>
<string>{{1479,974},{105,10}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -690,7 +690,7 @@
<key>spriteSourceSize</key>
<string>{111,16}</string>
<key>textureRect</key>
<string>{{1454,215},{111,16}}</string>
<string>{{766,1007},{111,16}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -705,7 +705,7 @@
<key>spriteSourceSize</key>
<string>{92,100}</string>
<key>textureRect</key>
<string>{{1084,488},{92,100}}</string>
<string>{{1082,918},{92,100}}</string>
<key>textureRotated</key>
<true/>
</dict>
@@ -720,9 +720,9 @@
<key>spriteSourceSize</key>
<string>{138,123}</string>
<key>textureRect</key>
<string>{{627,811},{138,123}}</string>
<string>{{1591,820},{138,123}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>bg.png</key>
<dict>
@@ -750,9 +750,9 @@
<key>spriteSourceSize</key>
<string>{111,109}</string>
<key>textureRect</key>
<string>{{1186,471},{111,109}}</string>
<string>{{1694,538},{111,109}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>cardbg.png</key>
<dict>
@@ -765,7 +765,7 @@
<key>spriteSourceSize</key>
<string>{97,97}</string>
<key>textureRect</key>
<string>{{1786,757},{97,97}}</string>
<string>{{1184,922},{97,97}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -780,9 +780,9 @@
<key>spriteSourceSize</key>
<string>{180,38}</string>
<key>textureRect</key>
<string>{{1455,503},{180,38}}</string>
<string>{{1654,473},{180,38}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>data_bg1.png</key>
<dict>
@@ -795,7 +795,7 @@
<key>spriteSourceSize</key>
<string>{38,38}</string>
<key>textureRect</key>
<string>{{1637,503},{38,38}}</string>
<string>{{1654,655},{38,38}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -810,9 +810,9 @@
<key>spriteSourceSize</key>
<string>{166,20}</string>
<key>textureRect</key>
<string>{{627,936},{166,20}}</string>
<string>{{200,821},{166,20}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>gbg.png</key>
<dict>
@@ -825,7 +825,7 @@
<key>spriteSourceSize</key>
<string>{212,26}</string>
<key>textureRect</key>
<string>{{1,929},{212,26}}</string>
<string>{{746,443},{212,26}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -840,7 +840,7 @@
<key>spriteSourceSize</key>
<string>{76,76}</string>
<key>textureRect</key>
<string>{{1823,856},{76,76}}</string>
<string>{{1716,927},{76,76}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -855,9 +855,9 @@
<key>spriteSourceSize</key>
<string>{109,108}</string>
<key>textureRect</key>
<string>{{1569,663},{109,108}}</string>
<string>{{337,915},{109,108}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>grep.png</key>
<dict>
@@ -870,9 +870,9 @@
<key>spriteSourceSize</key>
<string>{112,110}</string>
<key>textureRect</key>
<string>{{1455,662},{112,110}}</string>
<string>{{552,911},{112,110}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>infobox.png</key>
<dict>
@@ -885,9 +885,9 @@
<key>spriteSourceSize</key>
<string>{273,106}</string>
<key>textureRect</key>
<string>{{1,821},{273,106}}</string>
<string>{{1084,171},{273,106}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>kuang.png</key>
<dict>
@@ -900,7 +900,7 @@
<key>spriteSourceSize</key>
<string>{110,152}</string>
<key>textureRect</key>
<string>{{1084,171},{110,152}}</string>
<string>{{1479,820},{110,152}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -915,9 +915,9 @@
<key>spriteSourceSize</key>
<string>{77,72}</string>
<key>textureRect</key>
<string>{{746,582},{75,68}}</string>
<string>{{960,392},{75,68}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>light.png</key>
<dict>
@@ -930,7 +930,7 @@
<key>spriteSourceSize</key>
<string>{76,119}</string>
<key>textureRect</key>
<string>{{1118,325},{76,119}}</string>
<string>{{234,797},{76,119}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -945,7 +945,7 @@
<key>spriteSourceSize</key>
<string>{67,53}</string>
<key>textureRect</key>
<string>{{746,659},{67,53}}</string>
<string>{{1267,670},{67,53}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -960,7 +960,7 @@
<key>spriteSourceSize</key>
<string>{157,157}</string>
<key>textureRect</key>
<string>{{468,811},{157,157}}</string>
<string>{{1479,661},{157,157}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -975,9 +975,9 @@
<key>spriteSourceSize</key>
<string>{111,109}</string>
<key>textureRect</key>
<string>{{1299,471},{111,109}}</string>
<string>{{1694,651},{111,109}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>redbar.png</key>
<dict>
@@ -990,9 +990,9 @@
<key>spriteSourceSize</key>
<string>{129,8}</string>
<key>textureRect</key>
<string>{{1454,233},{129,8}}</string>
<string>{{1638,661},{129,8}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>redbg.png</key>
<dict>
@@ -1005,7 +1005,22 @@
<key>spriteSourceSize</key>
<string>{216,8}</string>
<key>textureRect</key>
<string>{{1,957},{216,8}}</string>
<string>{{234,787},{216,8}}</string>
<key>textureRotated</key>
<false/>
</dict>
<key>shadow.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{0,0}</string>
<key>spriteSize</key>
<string>{32,12}</string>
<key>spriteSourceSize</key>
<string>{32,12}</string>
<key>textureRect</key>
<string>{{664,1011},{32,12}}</string>
<key>textureRotated</key>
<false/>
</dict>
@@ -1020,9 +1035,9 @@
<key>spriteSourceSize</key>
<string>{35,14}</string>
<key>textureRect</key>
<string>{{772,341},{35,14}}</string>
<string>{{1367,922},{35,14}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
<key>ybg.png</key>
<dict>
@@ -1035,9 +1050,9 @@
<key>spriteSourceSize</key>
<string>{216,14}</string>
<key>textureRect</key>
<string>{{1881,1},{216,14}}</string>
<string>{{1,1009},{216,14}}</string>
<key>textureRotated</key>
<true/>
<false/>
</dict>
<key>zhujiemian-6.png</key>
<dict>
@@ -1050,9 +1065,9 @@
<key>spriteSourceSize</key>
<string>{116,117}</string>
<key>textureRect</key>
<string>{{1455,543},{116,117}}</string>
<string>{{312,797},{116,117}}</string>
<key>textureRotated</key>
<false/>
<true/>
</dict>
</dict>
<key>metadata</key>
@@ -1066,9 +1081,9 @@
<key>realTextureFileName</key>
<string>gui.png</string>
<key>size</key>
<string>{1900,969}</string>
<string>{1804,1024}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:eb60835624a00b4dcb3eb383188374e5:bac7fa6c66460e5b6585da9e4f20e0a1:5f86533554b8a62fd9d2a17dd9533d7c$</string>
<string>$TexturePacker:SmartUpdate:e1557052be3ccfbe6305f2cc78d158a7:6bd1bb4c2ec245288a1fec69e0989bc2:5f86533554b8a62fd9d2a17dd9533d7c$</string>
<key>textureFileName</key>
<string>gui.png</string>
</dict>

View File

@@ -62,11 +62,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1455,
"trimY": 503,
"trimX": 1654,
"trimY": 473,
"width": 180,
"height": 38,
"rawWidth": 180,
@@ -154,11 +154,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 772,
"trimY": 392,
"trimX": 1383,
"trimY": 670,
"width": 344,
"height": 94,
"rawWidth": 360,
@@ -200,11 +200,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": -3,
"offsetY": 3,
"trimX": 746,
"trimY": 488,
"trimX": 1711,
"trimY": 200,
"width": 336,
"height": 92,
"rawWidth": 360,
@@ -246,11 +246,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": -2,
"offsetY": 1,
"trimX": 1576,
"trimY": 889,
"trimX": 1716,
"trimY": 764,
"width": 79,
"height": 80,
"rawWidth": 93,
@@ -295,8 +295,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1084,
"trimY": 488,
"trimX": 1082,
"trimY": 918,
"width": 92,
"height": 100,
"rawWidth": 92,
@@ -338,11 +338,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1569,
"trimY": 663,
"trimX": 337,
"trimY": 915,
"width": 109,
"height": 108,
"rawWidth": 109,
@@ -384,11 +384,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1573,
"trimY": 543,
"trimX": 555,
"trimY": 811,
"width": 94,
"height": 118,
"rawWidth": 94,
@@ -433,8 +433,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 405,
"trimY": 443,
"trimX": 1591,
"trimY": 960,
"width": 64,
"height": 63,
"rawWidth": 64,
@@ -479,8 +479,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1476,
"trimY": 898,
"trimX": 405,
"trimY": 443,
"width": 64,
"height": 62,
"rawWidth": 64,
@@ -568,11 +568,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 276,
"trimY": 787,
"trimX": 1203,
"trimY": 730,
"width": 190,
"height": 178,
"rawWidth": 190,
@@ -660,10 +660,10 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1196,
"trimX": 1455,
"trimY": 215,
"width": 254,
"height": 256,
@@ -709,8 +709,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1454,
"trimY": 257,
"trimX": 746,
"trimY": 471,
"width": 256,
"height": 244,
"rawWidth": 256,
@@ -752,11 +752,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1476,
"trimY": 774,
"trimX": 431,
"trimY": 811,
"width": 122,
"height": 98,
"rawWidth": 122,
@@ -801,8 +801,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1786,
"trimY": 655,
"trimX": 675,
"trimY": 811,
"width": 100,
"height": 100,
"rawWidth": 100,
@@ -844,11 +844,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 981,
"trimY": 841,
"trimX": 1283,
"trimY": 922,
"width": 82,
"height": 94,
"rawWidth": 82,
@@ -893,8 +893,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 767,
"trimY": 841,
"trimX": 766,
"trimY": 915,
"width": 90,
"height": 104,
"rawWidth": 90,
@@ -939,8 +939,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1683,
"trimY": 759,
"trimX": 664,
"trimY": 913,
"width": 100,
"height": 96,
"rawWidth": 100,
@@ -985,8 +985,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 873,
"trimY": 841,
"trimX": 872,
"trimY": 915,
"width": 84,
"height": 106,
"rawWidth": 84,
@@ -1028,11 +1028,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1739,
"trimY": 857,
"trimX": 980,
"trimY": 918,
"width": 82,
"height": 100,
"rawWidth": 82,
@@ -1077,8 +1077,8 @@
"rotated": true,
"offsetX": -1,
"offsetY": -8,
"trimX": 816,
"trimY": 582,
"trimX": 1004,
"trimY": 471,
"width": 257,
"height": 261,
"rawWidth": 321,
@@ -1583,8 +1583,8 @@
"rotated": true,
"offsetX": -3,
"offsetY": -3,
"trimX": 1618,
"trimY": 1,
"trimX": 1192,
"trimY": 215,
"width": 254,
"height": 261,
"rawWidth": 318,
@@ -1629,8 +1629,8 @@
"rotated": false,
"offsetX": -1,
"offsetY": 0,
"trimX": 1658,
"trimY": 889,
"trimX": 1716,
"trimY": 846,
"width": 79,
"height": 79,
"rawWidth": 93,
@@ -1672,11 +1672,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1576,
"trimY": 774,
"trimX": 222,
"trimY": 918,
"width": 105,
"height": 113,
"rawWidth": 121,
@@ -1718,11 +1718,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 1,
"offsetY": 4,
"trimX": 1679,
"trimY": 655,
"trimX": 448,
"trimY": 918,
"width": 105,
"height": 102,
"rawWidth": 121,
@@ -1767,8 +1767,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1712,
"trimY": 257,
"trimX": 1618,
"trimY": 1,
"width": 197,
"height": 185,
"rawWidth": 197,
@@ -1810,11 +1810,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1712,
"trimY": 456,
"trimX": 1,
"trimY": 821,
"width": 197,
"height": 186,
"rawWidth": 197,
@@ -1859,8 +1859,8 @@
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1079,
"trimY": 582,
"trimX": 1267,
"trimY": 471,
"width": 197,
"height": 186,
"rawWidth": 197,
@@ -1905,8 +1905,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1079,
"trimY": 781,
"trimX": 1455,
"trimY": 473,
"width": 197,
"height": 186,
"rawWidth": 197,
@@ -1948,11 +1948,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1278,
"trimY": 781,
"trimX": 816,
"trimY": 717,
"width": 196,
"height": 186,
"rawWidth": 196,
@@ -1994,11 +1994,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1267,
"trimY": 582,
"trimX": 1004,
"trimY": 730,
"width": 197,
"height": 186,
"rawWidth": 197,
@@ -2043,8 +2043,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1669,
"trimY": 543,
"trimX": 1336,
"trimY": 670,
"width": 41,
"height": 48,
"rawWidth": 41,
@@ -2089,8 +2089,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 234,
"trimY": 787,
"trimX": 772,
"trimY": 341,
"width": 35,
"height": 32,
"rawWidth": 35,
@@ -2135,8 +2135,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 981,
"trimY": 925,
"trimX": 1567,
"trimY": 170,
"width": 42,
"height": 43,
"rawWidth": 42,
@@ -2181,8 +2181,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 627,
"trimY": 958,
"trimX": 1479,
"trimY": 974,
"width": 105,
"height": 10,
"rawWidth": 105,
@@ -2227,8 +2227,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1454,
"trimY": 215,
"trimX": 766,
"trimY": 1007,
"width": 111,
"height": 16,
"rawWidth": 111,
@@ -2270,11 +2270,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 627,
"trimY": 811,
"trimX": 1591,
"trimY": 820,
"width": 138,
"height": 123,
"rawWidth": 138,
@@ -2325,10 +2325,10 @@
"height": 308,
"rawWidth": 231,
"rawHeight": 308,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 31,
"borderBottom": 39,
"borderLeft": 27,
"borderRight": 31,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -2362,11 +2362,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1186,
"trimY": 471,
"trimX": 1694,
"trimY": 538,
"width": 111,
"height": 109,
"rawWidth": 111,
@@ -2411,8 +2411,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1786,
"trimY": 757,
"trimX": 1184,
"trimY": 922,
"width": 97,
"height": 97,
"rawWidth": 97,
@@ -2457,8 +2457,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1637,
"trimY": 503,
"trimX": 1654,
"trimY": 655,
"width": 38,
"height": 38,
"rawWidth": 38,
@@ -2500,11 +2500,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 627,
"trimY": 936,
"trimX": 200,
"trimY": 821,
"width": 166,
"height": 20,
"rawWidth": 166,
@@ -2549,8 +2549,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 929,
"trimX": 746,
"trimY": 443,
"width": 212,
"height": 26,
"rawWidth": 212,
@@ -2595,8 +2595,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1823,
"trimY": 856,
"trimX": 1716,
"trimY": 927,
"width": 76,
"height": 76,
"rawWidth": 76,
@@ -2638,11 +2638,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1455,
"trimY": 662,
"trimX": 552,
"trimY": 911,
"width": 112,
"height": 110,
"rawWidth": 112,
@@ -2684,19 +2684,19 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 821,
"trimX": 1084,
"trimY": 171,
"width": 273,
"height": 106,
"rawWidth": 273,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"borderTop": 18,
"borderBottom": 22,
"borderLeft": 25,
"borderRight": 31,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
@@ -2733,8 +2733,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1084,
"trimY": 171,
"trimX": 1479,
"trimY": 820,
"width": 110,
"height": 152,
"rawWidth": 110,
@@ -2776,11 +2776,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 746,
"trimY": 582,
"trimX": 960,
"trimY": 392,
"width": 75,
"height": 68,
"rawWidth": 77,
@@ -2825,8 +2825,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1118,
"trimY": 325,
"trimX": 234,
"trimY": 797,
"width": 76,
"height": 119,
"rawWidth": 76,
@@ -2871,8 +2871,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 746,
"trimY": 659,
"trimX": 1267,
"trimY": 670,
"width": 67,
"height": 53,
"rawWidth": 67,
@@ -2917,8 +2917,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 468,
"trimY": 811,
"trimX": 1479,
"trimY": 661,
"width": 157,
"height": 157,
"rawWidth": 157,
@@ -2960,11 +2960,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1299,
"trimY": 471,
"trimX": 1694,
"trimY": 651,
"width": 111,
"height": 109,
"rawWidth": 111,
@@ -3006,11 +3006,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1454,
"trimY": 233,
"trimX": 1638,
"trimY": 661,
"width": 129,
"height": 8,
"rawWidth": 129,
@@ -3055,8 +3055,8 @@
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 957,
"trimX": 234,
"trimY": 787,
"width": 216,
"height": 8,
"rawWidth": 216,
@@ -3089,6 +3089,52 @@
],
"subMetas": {}
},
"34d88": {
"importer": "sprite-frame",
"uuid": "f87f53f9-2fba-4a5b-968a-79a593311ab2@34d88",
"displayName": "",
"id": "34d88",
"name": "shadow",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 664,
"trimY": 1011,
"width": 32,
"height": 12,
"rawWidth": 32,
"rawHeight": 12,
"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": "8b585538-1414-43ef-9d59-72de6a2c3741@6c48a",
"atlasUuid": "f87f53f9-2fba-4a5b-968a-79a593311ab2"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"44c8a": {
"importer": "sprite-frame",
"uuid": "f87f53f9-2fba-4a5b-968a-79a593311ab2@44c8a",
@@ -3098,11 +3144,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 772,
"trimY": 341,
"trimX": 1367,
"trimY": 922,
"width": 35,
"height": 14,
"rawWidth": 35,
@@ -3144,11 +3190,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": true,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1881,
"trimY": 1,
"trimX": 1,
"trimY": 1009,
"width": 216,
"height": 14,
"rawWidth": 216,
@@ -3190,11 +3236,11 @@
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"rotated": true,
"offsetX": 0,
"offsetY": 0,
"trimX": 1455,
"trimY": 543,
"trimX": 312,
"trimY": 797,
"width": 116,
"height": 117,
"rawWidth": 116,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 98 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -61,6 +61,7 @@ export class SingletonModuleComp extends ecs.Comp {
max_limit:10,
time:0,
cd:10,
ref_cost:0,
},
shuaxin: {
min: 0,

View File

@@ -17,10 +17,11 @@ export enum BoxSet {
BOX_WIDTH = 64,
BOX_HEIGHT = 64,
//地图边界
LETF_END = -400,
RIGHT_END = 400,
HERO_START = -500,
MONSTER_START = 500,
LETF_END = -420,
RIGHT_END = 420,
HERO_START = -360,
MONSTER_START = 360,
END_POINT = 360,
//游戏地平线
GAME_LINE = 30,
GAME_LINE = 0,
}

View File

@@ -39,6 +39,11 @@ export class CardControllerComp extends CCComp {
if (this.in_load) {
return
}
if (smc.vm_data.gold.min < smc.vm_data.gold.ref_cost) {
oops.gui.toast("金币不足")
return
}
smc.vm_data.gold.min -= smc.vm_data.gold.ref_cost;
this.load_cards()
}
@@ -47,7 +52,9 @@ export class CardControllerComp extends CCComp {
let old_cards = ecs.query(ecs.allOf(HeroCardViewComp))
if (old_cards.length > 0) {
old_cards.forEach(element => {
element.destroy();
if (!element.get(HeroCardViewComp).in_destroy) {
element.destroy();
}
});
}
// console.log(old_cards)

View File

@@ -60,6 +60,7 @@ export class Hero extends ecs.Entity {
hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){
var mv = node.getComponent(MonsterViewComp)!;
mv.hero_uuid=uuid;
mv.speed =mv.ospeed = CardSet[uuid].speed;
mv.hero_name= CardSet[uuid].name;
mv.hp= mv.hp_max = CardSet[uuid].hp;

View File

@@ -1,4 +1,4 @@
import { _decorator ,Vec2,NodeEventType,EventTouch} from "cc";
import { _decorator ,Label} from "cc";
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import { data } from "../data/data";
@@ -15,7 +15,7 @@ export class HeroCardViewComp extends CCComp {
card_name:string = "hero_card";
card_type:string = "hero";
card_uid:number = 1000;
in_destroy:boolean = false;
protected onLoad(): void {
// this.node.on(NodeEventType.TOUCH_START, this.onTouch, this);
@@ -65,6 +65,7 @@ export class HeroCardViewComp extends CCComp {
use_card(){
if(smc.vm_data.gold.min >= CardSet[this.card_uid].level){
this.in_destroy = true;
oops.message.dispatchEvent("do_add_hero",{uuid:this.card_uid})
this.ent.destroy();
smc.vm_data.gold.min -= CardSet[this.card_uid].level;
@@ -74,7 +75,8 @@ export class HeroCardViewComp extends CCComp {
}
/** 视图层逻辑代码分离演示 */
start() {
this.node.getChildByName("level").getChildByName("level").getComponent(Label).string = CardSet[this.card_uid].level.toString();
}
@@ -88,6 +90,7 @@ export class HeroCardViewComp extends CCComp {
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
reset() {
this.in_destroy = false;
this.node.destroy();
}
}

View File

@@ -27,6 +27,7 @@ const { ccclass, property } = _decorator;
export class MonsterViewComp extends CCComp {
/** 角色动画 */
as: MonsterSpine = null!;
hero_uuid:number = 1001;
hero_name : string = "hero";
level:number =1;
camp: number = 1; /** 角色阵营 1hero -1 :monster */
@@ -75,6 +76,7 @@ export class MonsterViewComp extends CCComp {
// collider.on(Contact2DType.PRE_SOLVE, this.onPreSolve, this);
collider.on(Contact2DType.POST_SOLVE, this.onPostSolve, this);
}
console.log(' hero_uuid:',this.hero_uuid);
}
@@ -176,6 +178,10 @@ export class MonsterViewComp extends CCComp {
move(dt: number){
this.node.setPosition(this.node.position.x+dt*this.speed*this.camp, this.node.position.y, this.node.position.z);
if(Math.abs(this.node.position.x) >= BoxSet.END_POINT){
this.node.setPosition(v3(this.camp*-BoxSet.END_POINT,BoxSet.GAME_LINE,this.node.position.z))
// console.log("speed:"+this.speed+" | stop_cd:"+this.stop_cd);
}
}
power_change(power: number){
this.power += power;
@@ -224,18 +230,18 @@ export class MonsterViewComp extends CCComp {
}
}
in_destroy(){
switch (this.camp) {
case -1:
if(this.node.position.x < BoxSet.LETF_END){
this.toDestroy();
}
break;
case 1:
if(this.node.position.x > BoxSet.RIGHT_END){
this.toDestroy();
}
break;
}
// switch (this.camp) {
// case -1:
// if(this.node.position.x < BoxSet.LETF_END){
// this.toDestroy();
// }
// break;
// case 1:
// if(this.node.position.x > BoxSet.RIGHT_END){
// this.toDestroy();
// }
// break;
// }
}
update_pos(){
smc.monsters_in.forEach((element,index) => {
@@ -247,7 +253,7 @@ export class MonsterViewComp extends CCComp {
load_skill(skill_name){
// console.log("load_skill");
let skill = ecs.getEntity<Skill>(Skill);
let pos = v3(0,30)
let pos = v3(0,0)
let speed =150
let scale = this.camp
let range = 80
@@ -257,7 +263,7 @@ export class MonsterViewComp extends CCComp {
var path = "game/skills/atked";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
let pos = v3(0,0)
let pos = v3(0,30)
node.setPosition(pos)
node.parent = this.node;
}
@@ -265,7 +271,7 @@ export class MonsterViewComp extends CCComp {
var path = "game/skills/dead";
var prefab: Prefab = oops.res.get(path, Prefab)!;
var node = instantiate(prefab);
node.setPosition(this.node.position)
node.setPosition(this.node.position.x,this.node.position.y+30,this.node.position.z);
node.parent = this.node.parent;
}
toDestroy(){