修改完成,todo 关卡设计

This commit is contained in:
2024-12-24 23:43:23 +08:00
parent 38d4858dae
commit 31302ee410
9 changed files with 13107 additions and 12942 deletions

View File

@@ -840,8 +840,8 @@
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 0,
"g": 194, "g": 0,
"b": 178, "b": 0,
"a": 255 "a": 255
}, },
"_outlineWidth": 1, "_outlineWidth": 1,
@@ -914,8 +914,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.5, "x": 0.25,
"y": 0.5, "y": 0.25,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -942,8 +942,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 36, "width": 82,
"height": 39 "height": 81
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -979,7 +979,7 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@69993", "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@e4b0d",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
@@ -1230,8 +1230,8 @@
"_outlineColor": { "_outlineColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 0, "r": 0,
"g": 194, "g": 0,
"b": 178, "b": 0,
"a": 255 "a": 255
}, },
"_outlineWidth": 1, "_outlineWidth": 1,
@@ -1304,8 +1304,8 @@
}, },
"_lscale": { "_lscale": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0.5, "x": 0.3,
"y": 0.5, "y": 0.3,
"z": 1 "z": 1
}, },
"_mobility": 0, "_mobility": 0,
@@ -1332,8 +1332,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 37, "width": 67,
"height": 35 "height": 62
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -1369,7 +1369,7 @@
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@ee721", "__uuid__": "f87f53f9-2fba-4a5b-968a-79a593311ab2@01ece",
"__expectedType__": "cc.SpriteFrame" "__expectedType__": "cc.SpriteFrame"
}, },
"_type": 0, "_type": 0,
@@ -2062,7 +2062,7 @@
"__id__": 1 "__id__": 1
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 89 "__id__": 89

View File

@@ -17,7 +17,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{123,178},{71,65}}</string> <string>{{439,1},{71,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -34,7 +34,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{311,57},{73,61}}</string> <string>{{80,137},{73,61}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -51,7 +51,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{386,57},{77,61}}</string> <string>{{123,74},{77,61}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -68,7 +68,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{196,180},{77,65}}</string> <string>{{202,1},{77,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -85,7 +85,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,115},{77,61}}</string> <string>{{281,68},{77,61}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -102,7 +102,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{226,115},{77,63}}</string> <string>{{360,1},{77,63}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -119,7 +119,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{139,247},{77,71}}</string> <string>{{123,1},{77,71}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -136,7 +136,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{218,252},{71,71}}</string> <string>{{1,206},{71,71}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -153,9 +153,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,1},{54,60}}</string> <string>{{264,202},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>1010.png</key> <key>1010.png</key>
<dict> <dict>
@@ -170,9 +170,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{63,1},{62,54}}</string> <string>{{155,137},{62,54}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>1012.png</key> <key>1012.png</key>
<dict> <dict>
@@ -187,9 +187,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{127,1},{54,60}}</string> <string>{{320,202},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>1013.png</key> <key>1013.png</key>
<dict> <dict>
@@ -204,9 +204,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{63,57},{56,60}}</string> <string>{{206,202},{56,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>1014.png</key> <key>1014.png</key>
<dict> <dict>
@@ -221,9 +221,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{189,1},{54,60}}</string> <string>{{376,195},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>1015.png</key> <key>1015.png</key>
<dict> <dict>
@@ -238,7 +238,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{251,1},{62,54}}</string> <string>{{143,268},{62,54}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -255,9 +255,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{315,1},{54,60}}</string> <string>{{391,257},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>1017.png</key> <key>1017.png</key>
<dict> <dict>
@@ -272,7 +272,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{125,57},{56,60}}</string> <string>{{267,264},{56,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@@ -289,7 +289,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{187,57},{56,60}}</string> <string>{{329,264},{56,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@@ -306,7 +306,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{249,57},{56,60}}</string> <string>{{447,141},{56,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@@ -323,7 +323,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{377,1},{54,60}}</string> <string>{{432,199},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <true/>
</dict> </dict>
@@ -340,9 +340,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{439,1},{62,54}}</string> <string>{{349,131},{62,54}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <true/>
</dict> </dict>
<key>1022.png</key> <key>1022.png</key>
<dict> <dict>
@@ -357,9 +357,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{70,70}</string> <string>{70,70}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,57},{54,60}}</string> <string>{{447,255},{54,60}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>2007.png</key> <key>2007.png</key>
<dict> <dict>
@@ -374,7 +374,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{120,64}</string> <string>{120,64}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{384,120},{120,64}}</string> <string>{{1,1},{120,64}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -391,7 +391,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{120,64}</string> <string>{120,64}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,178},{120,64}}</string> <string>{{1,67},{120,64}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -408,7 +408,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{291,255},{77,71}}</string> <string>{{1,133},{77,71}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -425,7 +425,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{305,120},{77,63}}</string> <string>{{202,68},{77,63}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -442,7 +442,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{275,185},{77,65}}</string> <string>{{281,1},{77,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -459,7 +459,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{80,115},{77,61}}</string> <string>{{360,66},{77,61}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -476,9 +476,9 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{159,115},{61,65}}</string> <string>{{143,201},{61,65}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<true/> <false/>
</dict> </dict>
<key>9002.Png</key> <key>9002.Png</key>
<dict> <dict>
@@ -493,7 +493,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{370,255},{71,71}}</string> <string>{{439,68},{71,71}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -506,11 +506,11 @@
<key>spriteOffset</key> <key>spriteOffset</key>
<string>{0,0}</string> <string>{0,0}</string>
<key>spriteSize</key> <key>spriteSize</key>
<string>{67,67}</string> <string>{58,58}</string>
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{58,58}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{354,186},{67,67}}</string> <string>{{207,264},{58,58}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -527,7 +527,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{423,186},{67,67}}</string> <string>{{211,133},{67,67}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -544,7 +544,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{1,244},{67,67}}</string> <string>{{74,206},{67,67}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -561,7 +561,7 @@
<key>spriteSourceSize</key> <key>spriteSourceSize</key>
<string>{77,77}</string> <string>{77,77}</string>
<key>textureRect</key> <key>textureRect</key>
<string>{{70,245},{67,67}}</string> <string>{{280,133},{67,67}}</string>
<key>textureRotated</key> <key>textureRotated</key>
<false/> <false/>
</dict> </dict>
@@ -577,9 +577,9 @@
<key>realTextureFileName</key> <key>realTextureFileName</key>
<string>items.png</string> <string>items.png</string>
<key>size</key> <key>size</key>
<string>{505,327}</string> <string>{511,323}</string>
<key>smartupdate</key> <key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:b24daeb72bca389cc9a40ef59de928c2:c0acb5b0ceb01113f53f548fdc14618c:9b2c40378ce3448cae3ca053079d3001$</string> <string>$TexturePacker:SmartUpdate:04bbd6cd0407699a1595d0e401af7d1e:24aad079ba91bf6aa5e1937f9fc6b373:9b2c40378ce3448cae3ca053079d3001$</string>
<key>textureFileName</key> <key>textureFileName</key>
<string>items.png</string> <string>items.png</string>
</dict> </dict>

View File

@@ -19,8 +19,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 281,
"trimY": 115, "trimY": 68,
"width": 77, "width": 77,
"height": 61, "height": 61,
"rawWidth": 77, "rawWidth": 77,
@@ -65,8 +65,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 377, "trimX": 432,
"trimY": 1, "trimY": 199,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -111,8 +111,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 1, "trimX": 74,
"trimY": 244, "trimY": 206,
"width": 67, "width": 67,
"height": 67, "height": 67,
"rawWidth": 77, "rawWidth": 77,
@@ -157,8 +157,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 226, "trimX": 360,
"trimY": 115, "trimY": 1,
"width": 77, "width": 77,
"height": 63, "height": 63,
"rawWidth": 77, "rawWidth": 77,
@@ -203,8 +203,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 123, "trimX": 439,
"trimY": 178, "trimY": 1,
"width": 71, "width": 71,
"height": 65, "height": 65,
"rawWidth": 77, "rawWidth": 77,
@@ -249,8 +249,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 311, "trimX": 80,
"trimY": 57, "trimY": 137,
"width": 73, "width": 73,
"height": 61, "height": 61,
"rawWidth": 77, "rawWidth": 77,
@@ -295,8 +295,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 386, "trimX": 123,
"trimY": 57, "trimY": 74,
"width": 77, "width": 77,
"height": 61, "height": 61,
"rawWidth": 77, "rawWidth": 77,
@@ -341,8 +341,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 196, "trimX": 202,
"trimY": 180, "trimY": 1,
"width": 77, "width": 77,
"height": 65, "height": 65,
"rawWidth": 77, "rawWidth": 77,
@@ -387,8 +387,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 139, "trimX": 123,
"trimY": 247, "trimY": 1,
"width": 77, "width": 77,
"height": 71, "height": 71,
"rawWidth": 77, "rawWidth": 77,
@@ -433,8 +433,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 218, "trimX": 1,
"trimY": 252, "trimY": 206,
"width": 71, "width": 71,
"height": 71, "height": 71,
"rawWidth": 77, "rawWidth": 77,
@@ -476,11 +476,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 264,
"trimY": 1, "trimY": 202,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -522,11 +522,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": -2, "offsetY": -2,
"trimX": 63, "trimX": 155,
"trimY": 1, "trimY": 137,
"width": 62, "width": 62,
"height": 54, "height": 54,
"rawWidth": 70, "rawWidth": 70,
@@ -568,11 +568,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -1, "offsetY": -1,
"trimX": 127, "trimX": 320,
"trimY": 1, "trimY": 202,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -614,11 +614,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 63, "trimX": 206,
"trimY": 57, "trimY": 202,
"width": 56, "width": 56,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -660,11 +660,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 189, "trimX": 376,
"trimY": 1, "trimY": 195,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -709,8 +709,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -2, "offsetY": -2,
"trimX": 251, "trimX": 143,
"trimY": 1, "trimY": 268,
"width": 62, "width": 62,
"height": 54, "height": 54,
"rawWidth": 70, "rawWidth": 70,
@@ -752,11 +752,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -1, "offsetY": -1,
"trimX": 315, "trimX": 391,
"trimY": 1, "trimY": 257,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -801,8 +801,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 125, "trimX": 267,
"trimY": 57, "trimY": 264,
"width": 56, "width": 56,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -847,8 +847,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 187, "trimX": 329,
"trimY": 57, "trimY": 264,
"width": 56, "width": 56,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -893,8 +893,8 @@
"rotated": true, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 249, "trimX": 447,
"trimY": 57, "trimY": 141,
"width": 56, "width": 56,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -936,11 +936,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": true,
"offsetX": 0, "offsetX": 0,
"offsetY": -2, "offsetY": -2,
"trimX": 439, "trimX": 349,
"trimY": 1, "trimY": 131,
"width": 62, "width": 62,
"height": 54, "height": 54,
"rawWidth": 70, "rawWidth": 70,
@@ -982,11 +982,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": -1, "offsetY": -1,
"trimX": 1, "trimX": 447,
"trimY": 57, "trimY": 255,
"width": 54, "width": 54,
"height": 60, "height": 60,
"rawWidth": 70, "rawWidth": 70,
@@ -1031,8 +1031,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 384, "trimX": 1,
"trimY": 120, "trimY": 1,
"width": 120, "width": 120,
"height": 64, "height": 64,
"rawWidth": 120, "rawWidth": 120,
@@ -1078,7 +1078,7 @@
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 1, "trimX": 1,
"trimY": 178, "trimY": 67,
"width": 120, "width": 120,
"height": 64, "height": 64,
"rawWidth": 120, "rawWidth": 120,
@@ -1123,8 +1123,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 291, "trimX": 1,
"trimY": 255, "trimY": 133,
"width": 77, "width": 77,
"height": 71, "height": 71,
"rawWidth": 77, "rawWidth": 77,
@@ -1169,8 +1169,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 305, "trimX": 202,
"trimY": 120, "trimY": 68,
"width": 77, "width": 77,
"height": 63, "height": 63,
"rawWidth": 77, "rawWidth": 77,
@@ -1215,8 +1215,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 275, "trimX": 281,
"trimY": 185, "trimY": 1,
"width": 77, "width": 77,
"height": 65, "height": 65,
"rawWidth": 77, "rawWidth": 77,
@@ -1261,8 +1261,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 80, "trimX": 360,
"trimY": 115, "trimY": 66,
"width": 77, "width": 77,
"height": 61, "height": 61,
"rawWidth": 77, "rawWidth": 77,
@@ -1304,11 +1304,11 @@
"userData": { "userData": {
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": true, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 159, "trimX": 143,
"trimY": 115, "trimY": 201,
"width": 61, "width": 61,
"height": 65, "height": 65,
"rawWidth": 77, "rawWidth": 77,
@@ -1353,8 +1353,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 370, "trimX": 439,
"trimY": 255, "trimY": 68,
"width": 71, "width": 71,
"height": 71, "height": 71,
"rawWidth": 77, "rawWidth": 77,
@@ -1399,12 +1399,12 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 0, "offsetY": 0,
"trimX": 354, "trimX": 207,
"trimY": 186, "trimY": 264,
"width": 67, "width": 58,
"height": 67, "height": 58,
"rawWidth": 77, "rawWidth": 58,
"rawHeight": 77, "rawHeight": 58,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
@@ -1445,8 +1445,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 423, "trimX": 211,
"trimY": 186, "trimY": 133,
"width": 67, "width": 67,
"height": 67, "height": 67,
"rawWidth": 77, "rawWidth": 77,
@@ -1491,8 +1491,8 @@
"rotated": false, "rotated": false,
"offsetX": 0, "offsetX": 0,
"offsetY": 1, "offsetY": 1,
"trimX": 70, "trimX": 280,
"trimY": 245, "trimY": 133,
"width": 67, "width": 67,
"height": 67, "height": 67,
"rawWidth": 77, "rawWidth": 77,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -25,6 +25,6 @@ export const Items={
1016:{uuid: 1016,path: "1016",type:1,lv:4,name: "传说生命石",info:"增加装备生命值50,成功几率50%", }, 1016:{uuid: 1016,path: "1016",type:1,lv:4,name: "传说生命石",info:"增加装备生命值50,成功几率50%", },
9001:{uuid: 9001,path: "9001",type:1,lv:0,name: "金币",info:"金币不是万能的,但是没有金币是万万不能的", }, 9001:{uuid: 9001,path: "9001",type:1,lv:0,name: "金币",info:"金币不是万能的,但是没有金币是万万不能的", },
9002:{uuid: 9002,path: "9002",type:1,lv:1,name: "叶子",info:"提升英雄等级的神奇叶子", }, 9002:{uuid: 9002,path: "9002",type:1,lv:1,name: "叶子",info:"提升英雄等级的神奇叶子", },
9003:{uuid: 9003,path: "9003",type:1,lv:1,name: "经验",info:"提升英雄等级的神秘石头", }, 9003:{uuid: 9003,path: "9003",type:1,lv:1,name: "经验",info:"提升英雄等级", },
} }

View File

@@ -5,14 +5,14 @@ export const BoxDrop={
{uuid: 9003,dropRate: 10,num_max: 500,type:0}, {uuid: 9003,dropRate: 10,num_max: 500,type:0},
], ],
2:[ 2:[
{uuid: 9001,dropRate: 10,num_max: 10,type:0}, {uuid: 5001,dropRate: 10,num_max: 10,type:0},
{uuid: 9002,dropRate: 10,num_max: 10,type:0}, {uuid: 5002,dropRate: 10,num_max: 10,type:0},
{uuid: 9003,dropRate: 50,num_max: 10,type:0}, {uuid: 5003,dropRate: 50,num_max: 10,type:0},
], ],
3:[ 3:[
{uuid: 9001,dropRate: 20,num_max: 10,type:0}, {uuid: 5001,dropRate: 20,num_max: 10,type:0},
{uuid: 9002,dropRate: 20,num_max: 10,type:0}, {uuid: 5002,dropRate: 20,num_max: 10,type:0},
{uuid: 9003,dropRate: 50,num_max: 10,type:0}, {uuid: 5003,dropRate: 50,num_max: 10,type:0},
], ],
} }
export const BoxDropCount={ export const BoxDropCount={

View File

@@ -45,8 +45,6 @@ export class HeroHomeComp extends CCComp {
this.role=smc.heros[uuid] this.role=smc.heros[uuid]
this.hero=HeroInfo[uuid] this.hero=HeroInfo[uuid]
console.log("hero_show",uuid) console.log("hero_show",uuid)
let tal=this.node.getChildByName("sk").getChildByName("tal");
let sk_node= this.node.getChildByName("sk");
let skill1 = SkillSet[this.hero.sk1[0]] let skill1 = SkillSet[this.hero.sk1[0]]
let skill2 = SkillSet[this.hero.sk2[0]] let skill2 = SkillSet[this.hero.sk2[0]]
var sk_path = "game/skills/skill_icon" var sk_path = "game/skills/skill_icon"
@@ -59,17 +57,17 @@ export class HeroHomeComp extends CCComp {
sprite.spriteFrame = atlas.getSpriteFrame(this.hero.path); sprite.spriteFrame = atlas.getSpriteFrame(this.hero.path);
}); });
resources.load(sk_path, SpriteAtlas, (err: any, atlas) => { resources.load(sk_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("sk").getChildByName("skicon").getChildByName("Mask").getChildByName("icon").getComponent(Sprite); const sprite = this.node.getChildByName("bottom").getChildByName("sk").getChildByName("skicon").getChildByName("Mask").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(skill1.path); sprite.spriteFrame = atlas.getSpriteFrame(skill1.path);
}); });
this.node.getChildByName("sk").getChildByName("name").getComponent(Label).string = skill1.name; this.node.getChildByName("bottom").getChildByName("sk").getChildByName("name").getComponent(Label).string = skill1.name;
this.node.getChildByName("sk").getChildByName("info").getComponent(Label).string = skill1.info; this.node.getChildByName("bottom").getChildByName("sk").getChildByName("info").getComponent(Label).string = skill1.info;
resources.load(sk_path, SpriteAtlas, (err: any, atlas) => { resources.load(sk_path, SpriteAtlas, (err: any, atlas) => {
const sprite = this.node.getChildByName("sk2").getChildByName("skicon").getChildByName("Mask").getChildByName("icon").getComponent(Sprite); const sprite = this.node.getChildByName("bottom").getChildByName("sk2").getChildByName("skicon").getChildByName("Mask").getChildByName("icon").getComponent(Sprite);
sprite.spriteFrame = atlas.getSpriteFrame(skill2.path); sprite.spriteFrame = atlas.getSpriteFrame(skill2.path);
}); });
this.node.getChildByName("sk2").getChildByName("name").getComponent(Label).string = skill2.name; this.node.getChildByName("bottom").getChildByName("sk2").getChildByName("name").getComponent(Label).string = skill2.name;
this.node.getChildByName("sk2").getChildByName("info").getComponent(Label).string = skill2.info; this.node.getChildByName("bottom").getChildByName("sk2").getChildByName("info").getComponent(Label).string = skill2.info;
// tal.getChildByName("slv1").getChildByName("val").getComponent(Label).string = this.hero.tals[0] // tal.getChildByName("slv1").getChildByName("val").getComponent(Label).string = this.hero.tals[0]
// tal.getChildByName("slv2").getChildByName("val").getComponent(Label).string = this.hero.tals[1] // tal.getChildByName("slv2").getChildByName("val").getComponent(Label).string = this.hero.tals[1]
@@ -116,10 +114,10 @@ export class HeroHomeComp extends CCComp {
slvup.getChildByName("btned").active=false slvup.getChildByName("btned").active=false
}; };
if( this.role.slv==0) { if( this.role.slv==0) {
this.node.getChildByName("call").getChildByName("cost").getChildByName("need").getComponent(Label).string = ((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv)).toString() this.node.getChildByName("call").getChildByName("Node").getChildByName("cost").getChildByName("need").getComponent(Label).string = ((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv)).toString()
this.node.getChildByName("call").getChildByName("cost").getChildByName("num").getComponent(Label).string = smc.heros[this.h_uuid].num.toString() this.node.getChildByName("call").getChildByName("Node").getChildByName("cost").getChildByName("num").getComponent(Label).string = smc.heros[this.h_uuid].num.toString()
this.node.getChildByName("call").getChildByName("cost").getChildByName("bar").getComponent(ProgressBar).progress = smc.heros[this.h_uuid].num/((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv)) this.node.getChildByName("call").getChildByName("Node").getChildByName("cost").getChildByName("bar").getComponent(ProgressBar).progress = smc.heros[this.h_uuid].num/((SlvUp[this.role.slv]-HeroInfo[this.h_uuid].slvexp)*(1+this.role.slv))
let hchipcomp= this.node.getChildByName("call").getChildByName("cost").getChildByName("hchip").getComponent(HChipComp) let hchipcomp= this.node.getChildByName("call").getChildByName("Node").getChildByName("cost").getChildByName("hchip").getComponent(HChipComp)
hchipcomp.update_data(this.h_uuid,0) hchipcomp.update_data(this.h_uuid,0)
this.node.getChildByName("call").active=true this.node.getChildByName("call").active=true
}else{ }else{
@@ -153,7 +151,7 @@ export class HeroHomeComp extends CCComp {
let attr2 = this.node.getChildByName("attr2") let attr2 = this.node.getChildByName("attr2")
let info = this.node.getChildByName("info") let info = this.node.getChildByName("info")
let lvup = this.node.getChildByName("lvup") let lvup = this.node.getChildByName("lvup")
let sk = this.node.getChildByName("sk") let sk = this.node.getChildByName("bottom").getChildByName("sk")
let slvup = this.node.getChildByName("slvup") let slvup = this.node.getChildByName("slvup")
if(val < 0){ if(val < 0){
tween(hero).to(0.2,{position:v3(0,hero.position.y)}).start() tween(hero).to(0.2,{position:v3(0,hero.position.y)}).start()

View File

@@ -28,10 +28,9 @@ export class VictoryComp extends CCComp {
} }
onAdded(args: any) { onAdded(args: any) {
} }
open(){ open(){
console.log("Victory open",smc.items,smc.heros)
var parent = this.node.getChildByName("items") var parent = this.node.getChildByName("items")
for (let i in smc.items) { for (let i in smc.items) {
if(smc.items[i].x1 > 0){ if(smc.items[i].x1 > 0){
@@ -97,13 +96,12 @@ export class VictoryComp extends CCComp {
// } // }
for (let i in smc.heros) { for (let i in smc.heros) {
smc.heros[i].x1=0 smc.heros[i].x1=0
console.log("clear_x1",smc.heros[i].num)
} }
let children = this.node.getChildByName("items").children let children = this.node.getChildByName("items").children
console.log("children",children)
for (let i in children) { for (let i in children) {
children[i].destroy() children[i].destroy()
} }
console.log("clear_x1",smc.items,smc.heros)
this.node.parent.getComponent(MissionComp).to_mission_home() this.node.parent.getComponent(MissionComp).to_mission_home()
} }