Commit c742359e authored by Vũ Gia Vương's avatar Vũ Gia Vương

add polygon in fragment jar

parent f8cdb5e3
......@@ -99,16 +99,16 @@
"__id__": 201
},
{
"__id__": 299
"__id__": 308
}
],
"_active": true,
"_components": [
{
"__id__": 301
"__id__": 310
},
{
"__id__": 302
"__id__": 311
}
],
"_prefab": null,
......@@ -9376,13 +9376,13 @@
"__id__": 223
},
{
"__id__": 260
"__id__": 269
}
],
"_active": true,
"_components": [
{
"__id__": 298
"__id__": 307
}
],
"_prefab": null,
......@@ -9441,7 +9441,7 @@
"__id__": 201
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 203
......@@ -10469,28 +10469,28 @@
"__id__": 224
},
{
"__id__": 228
"__id__": 229
},
{
"__id__": 232
"__id__": 234
},
{
"__id__": 236
"__id__": 239
},
{
"__id__": 240
"__id__": 244
},
{
"__id__": 244
"__id__": 249
},
{
"__id__": 248
"__id__": 254
},
{
"__id__": 252
"__id__": 259
},
{
"__id__": 256
"__id__": 264
}
],
"_active": true,
......@@ -10561,6 +10561,9 @@
},
{
"__id__": 227
},
{
"__id__": 228
}
],
"_prefab": null,
......@@ -10611,6 +10614,16 @@
"groupIndex": 0,
"_id": "bagqr5FLpHPL0ZEmcPq69p"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 224
},
"_enabled": true,
"_id": "10cc3OIWVDIYqIwOG7Rp4k"
},
{
"__type__": "cc.Sprite",
"_name": "",
......@@ -10690,23 +10703,48 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -38,
"y": -60.2
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -27.9,
"y": -24.3
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 18.3,
"y": 20.4
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 119.1,
"y": 5.7
},
{
"__type__": "cc.Vec2",
"x": 143,
"y": 60.2
},
{
"__type__": "cc.Vec2",
"x": 84.2,
"y": 124.7
},
{
"__type__": "cc.Vec2",
"x": -124.7,
"y": -0.7
},
{
"__type__": "cc.Vec2",
"x": -146.8,
"y": -90.5
},
{
"__type__": "cc.Vec2",
"x": -93.5,
"y": -104
}
],
"_id": "67LnPQQvBBr7bWfPiXPAUk"
......@@ -10721,14 +10759,17 @@
"_children": [],
"_active": true,
"_components": [
{
"__id__": 229
},
{
"__id__": 230
},
{
"__id__": 231
},
{
"__id__": 232
},
{
"__id__": 233
}
],
"_prefab": null,
......@@ -10779,12 +10820,22 @@
"groupIndex": 0,
"_id": "a9JfLpV0dJbY6zy5gpBDGg"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 229
},
"_enabled": true,
"_id": "baZJk47LtKZ4MjF7H+AxgZ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 228
"__id__": 229
},
"_enabled": true,
"_materials": [
......@@ -10816,7 +10867,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 228
"__id__": 229
},
"_enabled": true,
"_type": 1,
......@@ -10841,7 +10892,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 228
"__id__": 229
},
"_enabled": true,
"tag": 0,
......@@ -10858,23 +10909,58 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -81.2,
"y": -32.5
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -20.9,
"y": -30.3
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 41.2,
"y": -97.2
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 149.8,
"y": -97
},
{
"__type__": "cc.Vec2",
"x": 172.6,
"y": -67.6
},
{
"__type__": "cc.Vec2",
"x": 106.1,
"y": 66.2
},
{
"__type__": "cc.Vec2",
"x": -28.1,
"y": 108.9
},
{
"__type__": "cc.Vec2",
"x": -48,
"y": 62.9
},
{
"__type__": "cc.Vec2",
"x": -148.6,
"y": 78.4
},
{
"__type__": "cc.Vec2",
"x": -173,
"y": 54.2
},
{
"__type__": "cc.Vec2",
"x": -95.2,
"y": 21.8
}
],
"_id": "d8mHJtH4JD8ZrhBhtFdQqX"
......@@ -10890,13 +10976,16 @@
"_active": true,
"_components": [
{
"__id__": 233
"__id__": 235
},
{
"__id__": 234
"__id__": 236
},
{
"__id__": 235
"__id__": 237
},
{
"__id__": 238
}
],
"_prefab": null,
......@@ -10947,12 +11036,22 @@
"groupIndex": 0,
"_id": "73+jEEFyJESZScFBVSf1DT"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 234
},
"_enabled": true,
"_id": "0ejbJB9ipO9ZV718vF+OtA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 232
"__id__": 234
},
"_enabled": true,
"_materials": [
......@@ -10984,7 +11083,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 232
"__id__": 234
},
"_enabled": true,
"_type": 1,
......@@ -11009,7 +11108,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 232
"__id__": 234
},
"_enabled": true,
"tag": 0,
......@@ -11026,23 +11125,78 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -38.4,
"y": -123.1
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -12.3,
"y": -73.5
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 78,
"y": -73.6
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 63.4,
"y": -7.9
},
{
"__type__": "cc.Vec2",
"x": 155.1,
"y": 55.6
},
{
"__type__": "cc.Vec2",
"x": 168.2,
"y": 75.7
},
{
"__type__": "cc.Vec2",
"x": 158.9,
"y": 112.8
},
{
"__type__": "cc.Vec2",
"x": 81.9,
"y": 144.8
},
{
"__type__": "cc.Vec2",
"x": 60.7,
"y": 124.4
},
{
"__type__": "cc.Vec2",
"x": 51.5,
"y": 87.9
},
{
"__type__": "cc.Vec2",
"x": -5.5,
"y": 43.9
},
{
"__type__": "cc.Vec2",
"x": -50.4,
"y": 56.2
},
{
"__type__": "cc.Vec2",
"x": -135.5,
"y": 37.8
},
{
"__type__": "cc.Vec2",
"x": -167.6,
"y": -32.3
},
{
"__type__": "cc.Vec2",
"x": -170.4,
"y": -49
}
],
"_id": "79mvxrrW1O0oNGfg5khgek"
......@@ -11058,13 +11212,16 @@
"_active": true,
"_components": [
{
"__id__": 237
"__id__": 240
},
{
"__id__": 238
"__id__": 241
},
{
"__id__": 239
"__id__": 242
},
{
"__id__": 243
}
],
"_prefab": null,
......@@ -11115,12 +11272,22 @@
"groupIndex": 0,
"_id": "916yUMESRAv7Q8s1CruDKO"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 239
},
"_enabled": true,
"_id": "1dLbgMJxtJm60m86RFaEKR"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 236
"__id__": 239
},
"_enabled": true,
"_materials": [
......@@ -11152,7 +11319,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 236
"__id__": 239
},
"_enabled": true,
"_type": 1,
......@@ -11177,7 +11344,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 236
"__id__": 239
},
"_enabled": true,
"tag": 0,
......@@ -11194,23 +11361,58 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -67.1,
"y": -6.3
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -25.4,
"y": -15.2
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 27.9,
"y": -96.9
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 79.5,
"y": -109.1
},
{
"__type__": "cc.Vec2",
"x": 142.8,
"y": -49.6
},
{
"__type__": "cc.Vec2",
"x": 110.1,
"y": 126
},
{
"__type__": "cc.Vec2",
"x": 44.6,
"y": 107
},
{
"__type__": "cc.Vec2",
"x": 21.6,
"y": 75.6
},
{
"__type__": "cc.Vec2",
"x": -89.2,
"y": 75.8
},
{
"__type__": "cc.Vec2",
"x": -121.9,
"y": 110.7
},
{
"__type__": "cc.Vec2",
"x": -110.4,
"y": 73.8
}
],
"_id": "6dK57boiFDfaKqupjwRQMs"
......@@ -11226,13 +11428,16 @@
"_active": true,
"_components": [
{
"__id__": 241
"__id__": 245
},
{
"__id__": 242
"__id__": 246
},
{
"__id__": 243
"__id__": 247
},
{
"__id__": 248
}
],
"_prefab": null,
......@@ -11283,12 +11488,22 @@
"groupIndex": 0,
"_id": "23C9swrchImJCY3aoLSnKb"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
},
"_enabled": true,
"_id": "d3pm+hoBFA45P8UE//ko7r"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 240
"__id__": 244
},
"_enabled": true,
"_materials": [
......@@ -11320,7 +11535,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 240
"__id__": 244
},
"_enabled": true,
"_type": 1,
......@@ -11345,7 +11560,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 240
"__id__": 244
},
"_enabled": true,
"tag": 0,
......@@ -11362,23 +11577,43 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -82.9,
"y": -68.7
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": 21.1,
"y": -56.4
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 122.8,
"y": -0.9
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 115.3,
"y": 52.1
},
{
"__type__": "cc.Vec2",
"x": 27,
"y": 52.7
},
{
"__type__": "cc.Vec2",
"x": -0.1,
"y": 3.4
},
{
"__type__": "cc.Vec2",
"x": -131.8,
"y": 75.4
},
{
"__type__": "cc.Vec2",
"x": -140.5,
"y": -7.5
}
],
"_id": "768rO2gLpCEaCysI5x9pA/"
......@@ -11394,13 +11629,16 @@
"_active": true,
"_components": [
{
"__id__": 245
"__id__": 250
},
{
"__id__": 246
"__id__": 251
},
{
"__id__": 247
"__id__": 252
},
{
"__id__": 253
}
],
"_prefab": null,
......@@ -11451,12 +11689,22 @@
"groupIndex": 0,
"_id": "d2xv0r+1JEnpX6Zcypx+oU"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 249
},
"_enabled": true,
"_id": "e9Gf63GMJHY6/lUQxOFDRq"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
"__id__": 249
},
"_enabled": true,
"_materials": [
......@@ -11488,7 +11736,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
"__id__": 249
},
"_enabled": true,
"_type": 1,
......@@ -11513,7 +11761,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
"__id__": 249
},
"_enabled": true,
"tag": 0,
......@@ -11530,23 +11778,78 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -98.9,
"y": -78.5
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -12,
"y": -84.2
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 31.7,
"y": -123.5
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 35.8,
"y": -119.6
},
{
"__type__": "cc.Vec2",
"x": 9.5,
"y": -59.5
},
{
"__type__": "cc.Vec2",
"x": 38.7,
"y": 40.8
},
{
"__type__": "cc.Vec2",
"x": 110.7,
"y": 19.4
},
{
"__type__": "cc.Vec2",
"x": 96.8,
"y": 47.9
},
{
"__type__": "cc.Vec2",
"x": 84.9,
"y": 83.4
},
{
"__type__": "cc.Vec2",
"x": 58.2,
"y": 113.1
},
{
"__type__": "cc.Vec2",
"x": -2.4,
"y": 111.5
},
{
"__type__": "cc.Vec2",
"x": -7.2,
"y": 128.9
},
{
"__type__": "cc.Vec2",
"x": -20.5,
"y": 109.2
},
{
"__type__": "cc.Vec2",
"x": -110.6,
"y": 45.8
},
{
"__type__": "cc.Vec2",
"x": -90.7,
"y": -73.9
}
],
"_id": "e8fb+xiEBPApeeB08wcyGC"
......@@ -11562,13 +11865,16 @@
"_active": true,
"_components": [
{
"__id__": 249
"__id__": 255
},
{
"__id__": 250
"__id__": 256
},
{
"__id__": 251
"__id__": 257
},
{
"__id__": 258
}
],
"_prefab": null,
......@@ -11619,12 +11925,22 @@
"groupIndex": 0,
"_id": "deCXNQjFpBdYKY1UGSHgR3"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 254
},
"_enabled": true,
"_id": "1d1M+kgsZOa5/6kKn4oLby"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 248
"__id__": 254
},
"_enabled": true,
"_materials": [
......@@ -11656,7 +11972,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 248
"__id__": 254
},
"_enabled": true,
"_type": 1,
......@@ -11681,7 +11997,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 248
"__id__": 254
},
"_enabled": true,
"tag": 0,
......@@ -11698,23 +12014,68 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -85.2,
"y": -71.8
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -32.8,
"y": -53.6
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 55.1,
"y": -74.7
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 93.1,
"y": -122.5
},
{
"__type__": "cc.Vec2",
"x": 137.7,
"y": -52.1
},
{
"__type__": "cc.Vec2",
"x": 87.3,
"y": -38.7
},
{
"__type__": "cc.Vec2",
"x": 34.2,
"y": 43
},
{
"__type__": "cc.Vec2",
"x": -8.5,
"y": 51.5
},
{
"__type__": "cc.Vec2",
"x": -37.3,
"y": 105.6
},
{
"__type__": "cc.Vec2",
"x": -110.2,
"y": 127.8
},
{
"__type__": "cc.Vec2",
"x": -139.3,
"y": 26.5
},
{
"__type__": "cc.Vec2",
"x": -113.8,
"y": -32.8
},
{
"__type__": "cc.Vec2",
"x": -117.4,
"y": -37.5
}
],
"_id": "dfUZAuiFRHaaZifPZotCuG"
......@@ -11730,13 +12091,16 @@
"_active": true,
"_components": [
{
"__id__": 253
"__id__": 260
},
{
"__id__": 254
"__id__": 261
},
{
"__id__": 255
"__id__": 262
},
{
"__id__": 263
}
],
"_prefab": null,
......@@ -11787,12 +12151,22 @@
"groupIndex": 0,
"_id": "3bYmmWYXZF6K7wodjdD4UR"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 259
},
"_enabled": true,
"_id": "00/WS6Zv1Pd6OfigrGm9ii"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 252
"__id__": 259
},
"_enabled": true,
"_materials": [
......@@ -11824,7 +12198,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 252
"__id__": 259
},
"_enabled": true,
"_type": 1,
......@@ -11849,7 +12223,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 252
"__id__": 259
},
"_enabled": true,
"tag": 0,
......@@ -11866,23 +12240,63 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -58.1,
"y": -88.7
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": -19.8,
"y": -57.1
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 60.2,
"y": -55.3
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 73.6,
"y": -15.6
},
{
"__type__": "cc.Vec2",
"x": 179.4,
"y": 11.3
},
{
"__type__": "cc.Vec2",
"x": 166.3,
"y": 30
},
{
"__type__": "cc.Vec2",
"x": 105,
"y": 83.8
},
{
"__type__": "cc.Vec2",
"x": 16.3,
"y": 89.7
},
{
"__type__": "cc.Vec2",
"x": -74.7,
"y": 39.6
},
{
"__type__": "cc.Vec2",
"x": -155.1,
"y": 35.9
},
{
"__type__": "cc.Vec2",
"x": -187,
"y": 26.9
},
{
"__type__": "cc.Vec2",
"x": -121.1,
"y": -75.7
}
],
"_id": "94iB2JXGBJC5Ydofx4LAfT"
......@@ -11898,13 +12312,16 @@
"_active": true,
"_components": [
{
"__id__": 257
"__id__": 265
},
{
"__id__": 258
"__id__": 266
},
{
"__id__": 259
"__id__": 267
},
{
"__id__": 268
}
],
"_prefab": null,
......@@ -11955,12 +12372,22 @@
"groupIndex": 0,
"_id": "48fZtS/eVNyLH2dYho68+n"
},
{
"__type__": "6c740VuPjRONJYF5qy87yUs",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 264
},
"_enabled": true,
"_id": "5bef4tFrpOmL7kxFvulGjW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 256
"__id__": 264
},
"_enabled": true,
"_materials": [
......@@ -11992,7 +12419,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 256
"__id__": 264
},
"_enabled": true,
"_type": 1,
......@@ -12017,7 +12444,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 256
"__id__": 264
},
"_enabled": true,
"tag": 0,
......@@ -12034,23 +12461,53 @@
"points": [
{
"__type__": "cc.Vec2",
"x": -50,
"y": -50
"x": -62.2,
"y": -79
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": -50
"x": 196.1,
"y": -47
},
{
"__type__": "cc.Vec2",
"x": 50,
"y": 50
"x": 210.1,
"y": -1.3
},
{
"__type__": "cc.Vec2",
"x": -50,
"y": 50
"x": 170.2,
"y": 47.5
},
{
"__type__": "cc.Vec2",
"x": 83.3,
"y": 68.5
},
{
"__type__": "cc.Vec2",
"x": -8,
"y": 45.4
},
{
"__type__": "cc.Vec2",
"x": -77,
"y": 23.4
},
{
"__type__": "cc.Vec2",
"x": -89.4,
"y": -15.6
},
{
"__type__": "cc.Vec2",
"x": -170.6,
"y": -17.2
},
{
"__type__": "cc.Vec2",
"x": -209.5,
"y": -50.7
}
],
"_id": "deRBw/8d9KT5+8KuKjJlaa"
......@@ -12064,34 +12521,34 @@
},
"_children": [
{
"__id__": 261
"__id__": 270
},
{
"__id__": 264
"__id__": 273
},
{
"__id__": 269
"__id__": 278
},
{
"__id__": 274
"__id__": 283
},
{
"__id__": 279
"__id__": 288
},
{
"__id__": 282
"__id__": 291
},
{
"__id__": 287
"__id__": 296
},
{
"__id__": 290
"__id__": 299
},
{
"__id__": 295
"__id__": 304
}
],
"_active": true,
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
......@@ -12146,14 +12603,14 @@
"_name": "1",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 262
"__id__": 271
},
{
"__id__": 263
"__id__": 272
}
],
"_active": true,
......@@ -12211,7 +12668,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 261
"__id__": 270
},
"_children": [],
"_active": true,
......@@ -12269,7 +12726,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 261
"__id__": 270
},
"_children": [],
"_active": true,
......@@ -12327,14 +12784,14 @@
"_name": "2",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 265
"__id__": 274
},
{
"__id__": 267
"__id__": 276
}
],
"_active": true,
......@@ -12392,13 +12849,13 @@
"_name": "top-right-1",
"_objFlags": 0,
"_parent": {
"__id__": 264
"__id__": 273
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 266
"__id__": 275
}
],
"_prefab": null,
......@@ -12454,7 +12911,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 265
"__id__": 274
},
"_enabled": true,
"_materials": [
......@@ -12486,13 +12943,13 @@
"_name": "top-right-2",
"_objFlags": 0,
"_parent": {
"__id__": 264
"__id__": 273
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 268
"__id__": 277
}
],
"_prefab": null,
......@@ -12548,7 +13005,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 267
"__id__": 276
},
"_enabled": true,
"_materials": [
......@@ -12580,14 +13037,14 @@
"_name": "3",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 270
"__id__": 279
},
{
"__id__": 272
"__id__": 281
}
],
"_active": true,
......@@ -12645,13 +13102,13 @@
"_name": "top-left-1",
"_objFlags": 0,
"_parent": {
"__id__": 269
"__id__": 278
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 271
"__id__": 280
}
],
"_prefab": null,
......@@ -12707,7 +13164,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 270
"__id__": 279
},
"_enabled": true,
"_materials": [
......@@ -12739,13 +13196,13 @@
"_name": "top-left-2",
"_objFlags": 0,
"_parent": {
"__id__": 269
"__id__": 278
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 273
"__id__": 282
}
],
"_prefab": null,
......@@ -12801,7 +13258,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 272
"__id__": 281
},
"_enabled": true,
"_materials": [
......@@ -12833,14 +13290,14 @@
"_name": "6",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 275
"__id__": 284
},
{
"__id__": 277
"__id__": 286
}
],
"_active": true,
......@@ -12898,13 +13355,13 @@
"_name": "bottom-right-1",
"_objFlags": 0,
"_parent": {
"__id__": 274
"__id__": 283
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 276
"__id__": 285
}
],
"_prefab": null,
......@@ -12960,7 +13417,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 275
"__id__": 284
},
"_enabled": true,
"_materials": [
......@@ -12992,13 +13449,13 @@
"_name": "bottom-right-2",
"_objFlags": 0,
"_parent": {
"__id__": 274
"__id__": 283
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 278
"__id__": 287
}
],
"_prefab": null,
......@@ -13054,7 +13511,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 277
"__id__": 286
},
"_enabled": true,
"_materials": [
......@@ -13086,14 +13543,14 @@
"_name": "4",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 280
"__id__": 289
},
{
"__id__": 281
"__id__": 290
}
],
"_active": true,
......@@ -13151,7 +13608,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 279
"__id__": 288
},
"_children": [],
"_active": true,
......@@ -13209,7 +13666,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 279
"__id__": 288
},
"_children": [],
"_active": true,
......@@ -13267,14 +13724,14 @@
"_name": "5",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 283
"__id__": 292
},
{
"__id__": 285
"__id__": 294
}
],
"_active": true,
......@@ -13332,13 +13789,13 @@
"_name": "center-1",
"_objFlags": 0,
"_parent": {
"__id__": 282
"__id__": 291
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 284
"__id__": 293
}
],
"_prefab": null,
......@@ -13394,7 +13851,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 283
"__id__": 292
},
"_enabled": true,
"_materials": [
......@@ -13426,13 +13883,13 @@
"_name": "center-2",
"_objFlags": 0,
"_parent": {
"__id__": 282
"__id__": 291
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 286
"__id__": 295
}
],
"_prefab": null,
......@@ -13488,7 +13945,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 285
"__id__": 294
},
"_enabled": true,
"_materials": [
......@@ -13520,14 +13977,14 @@
"_name": "7",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 288
"__id__": 297
},
{
"__id__": 289
"__id__": 298
}
],
"_active": true,
......@@ -13585,7 +14042,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 287
"__id__": 296
},
"_children": [],
"_active": true,
......@@ -13643,7 +14100,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 287
"__id__": 296
},
"_children": [],
"_active": true,
......@@ -13701,14 +14158,14 @@
"_name": "8",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 291
"__id__": 300
},
{
"__id__": 293
"__id__": 302
}
],
"_active": true,
......@@ -13766,13 +14223,13 @@
"_name": "bottom-left-1",
"_objFlags": 0,
"_parent": {
"__id__": 290
"__id__": 299
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 292
"__id__": 301
}
],
"_prefab": null,
......@@ -13828,7 +14285,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 291
"__id__": 300
},
"_enabled": true,
"_materials": [
......@@ -13860,13 +14317,13 @@
"_name": "bottom-left-2",
"_objFlags": 0,
"_parent": {
"__id__": 290
"__id__": 299
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 294
"__id__": 303
}
],
"_prefab": null,
......@@ -13922,7 +14379,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 293
"__id__": 302
},
"_enabled": true,
"_materials": [
......@@ -13954,14 +14411,14 @@
"_name": "9",
"_objFlags": 0,
"_parent": {
"__id__": 260
"__id__": 269
},
"_children": [
{
"__id__": 296
"__id__": 305
},
{
"__id__": 297
"__id__": 306
}
],
"_active": true,
......@@ -14019,7 +14476,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 295
"__id__": 304
},
"_children": [],
"_active": true,
......@@ -14077,7 +14534,7 @@
"_name": "1 copy",
"_objFlags": 0,
"_parent": {
"__id__": 295
"__id__": 304
},
"_children": [],
"_active": true,
......@@ -14151,7 +14608,7 @@
"_active": true,
"_components": [
{
"__id__": 300
"__id__": 309
}
],
"_prefab": null,
......@@ -14207,7 +14664,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 299
"__id__": 308
},
"_enabled": true,
"_materials": [
......
import { CHECK_FRAGMENT, CHECK_TOUCH, DROP_FRAGMENT, eventTarget, HAMMER, PLAY_DROP_SOUND, RESET_FRAGMENT } from "../Events";
const {ccclass, property} = cc._decorator;
@ccclass
export default class FragmentJarController extends cc.Component {
private _collider: cc.PolygonCollider = null;
private _physicsCollider: cc.PhysicsPolygonCollider = null;
private _rg: cc.RigidBody = null;
private _siblingIndex: number = 0;
private _isDropped: boolean = false;
onLoad() {
this._collider = this.node.getComponent(cc.PolygonCollider);
this._physicsCollider = this.node.getComponent(cc.PhysicsPolygonCollider);
this._physicsCollider.points = this._collider.points;
this._rg = this.node.getComponent(cc.RigidBody);
this._siblingIndex = this.node.getSiblingIndex();
this.reset();
eventTarget.on(CHECK_TOUCH, this.checkTouch, this);
eventTarget.on(RESET_FRAGMENT, this.reset, this);
eventTarget.on(DROP_FRAGMENT, () => this.node.name.includes('nap') && this.dropFragment(), this);
}
public reset() {
this._physicsCollider.enabled = false;
this._rg.type = cc.RigidBodyType.Static;
this.node.angle = 0;
this.node.setSiblingIndex(this._siblingIndex);
this._isDropped = false;
}
private checkTouch(point: cc.Vec2) {
if (this._isDropped) {
return;
}
const pos = point.clone().subtract(cc.v2(this.node.position.x, this.node.position.y));
let isInside = cc.Intersection.pointInPolygon(pos, this._collider.points);
if (isInside) {
eventTarget.emit(HAMMER, point);
this.dropFragment();
}
}
private dropFragment() {
this._isDropped = true;
const pos = this.node.position;
this.node.setSiblingIndex(-1);
eventTarget.emit(CHECK_FRAGMENT, this.node.name);
cc.tween(this.node)
.delay(0.5)
.call(() => {
eventTarget.emit(PLAY_DROP_SOUND);
})
.to(0.1, { scale: 0.9 })
.to(0.1, { scale: 1.05 })
.to(0.2, { position: pos.clone().multiplyScalar(1.2) })
.call(() => {
this._physicsCollider.enabled = true;
this._rg.type = cc.RigidBodyType.Dynamic;
this._rg.gravityScale = 10;
})
.delay(1)
.to(0, { scale: 1 })
.start();
}
}
{
"ver": "1.1.0",
"uuid": "6c74056e-3e34-4e34-9605-e6acbcef252c",
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment