Commit 132f1374 authored by 章红平's avatar 章红平

提交

parent ef269320
{
"ver": "1.1.2",
"uuid": "a92ed6f2-313b-41f7-88b2-fb2f924772a9",
"uuid": "051c77f4-a974-4913-9edb-a2b8b3da7029",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.2",
"uuid": "7f6345d3-0411-487d-a18f-bcbcbc876164",
"uuid": "24c32c67-65cf-4425-8055-2451a3ffd1d7",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.0.1",
"uuid": "45d07f45-37ce-4fae-a51d-125c1a2fca03",
"uuid": "72926446-794e-4d46-80fb-fff28c3e9730",
"downloadMode": 0,
"duration": 0.130612,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "b6510c8f-5195-4aa5-a9df-33cfd6bdc03e",
"uuid": "4e1f42bf-1530-498a-a272-2ad34c0f4ff6",
"downloadMode": 0,
"duration": 0.940417,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "e5d1e29e-804e-4680-9dba-f03b1a2f4d12",
"uuid": "c9130e3d-ab61-457a-8fd0-bc2caf80ac4d",
"downloadMode": 0,
"duration": 3.317551,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "12d88e3f-0edd-4aef-995a-7ffcc8b8f6ac",
"uuid": "0c7716a5-2efc-484f-9303-2399ebc554c6",
"downloadMode": 0,
"duration": 1.854694,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "09333563-0972-45ee-925a-96a1d4f96cc2",
"uuid": "b4d37eac-f3ea-4793-aaee-e312105b947f",
"downloadMode": 0,
"duration": 0.444,
"subMetas": {}
......
{
"ver": "2.0.1",
"uuid": "8b0c5a66-951e-4dc0-8f90-110aac047915",
"uuid": "5b9d9d05-8a11-4ae1-92cf-dd1dab1d9c02",
"downloadMode": 0,
"duration": 0.705306,
"subMetas": {}
......
{
"ver": "1.1.2",
"uuid": "0113051a-0411-42f6-9818-f0e5df11de0a",
"uuid": "78870bf2-ac33-4072-b56c-23c1113ded1f",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.0.1",
"uuid": "a7e0055a-804e-400a-a3e1-4183766c3087",
"uuid": "fe518f9b-ff9d-43df-bd23-13960098b677",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "9ef2de10-daea-4abf-82a2-ebd8f6e571d6",
"uuid": "ada6c994-d0f8-4499-b4bf-aca360074281",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6c478d66-1db1-4936-8f5b-3eedea30de56",
"uuid": "e9434307-dade-47e4-898e-6c2f7c1d66b1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"right_tex": {
"ver": "1.0.4",
"uuid": "197a8fd9-cd2f-4b8d-98fd-1de982115d52",
"rawTextureUuid": "6c478d66-1db1-4936-8f5b-3eedea30de56",
"uuid": "6803af7a-b030-483e-89e7-c687c50f5ce7",
"rawTextureUuid": "e9434307-dade-47e4-898e-6c2f7c1d66b1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.1.2",
"uuid": "3a927f3d-45b2-40ca-8376-7df71b09b64c",
"uuid": "82f7cbeb-007c-4dcc-80c1-4e34cf106eb5",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "1.1.0",
"uuid": "04f7d634-c478-4c0d-9507-e1c26f55af97",
"uuid": "e4a3dfd0-b702-4db3-b2e7-bbc75db53424",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "48bea34c-c2e1-4919-b96f-ebb81129291d",
"uuid": "5c772032-6791-4f8a-9830-75df33d1c718",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "d5b568b6-d9ec-4ec3-82cb-da34c2aa43ab",
"uuid": "f3528ef4-102a-4fc4-808f-ed516709a37e",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "d1c8ef98-0671-4a88-b4b7-af361c5abeef",
"uuid": "e8a55be6-ed21-48b5-bdb0-1c50fd88d621",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "45cfca53-1802-43c5-ab8a-d60d81f38112",
"uuid": "104fcdb0-ca93-48e9-851a-7be61991ae7d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"1": {
"ver": "1.0.4",
"uuid": "8ad3fee6-f556-4daa-9496-a221702317e5",
"rawTextureUuid": "45cfca53-1802-43c5-ab8a-d60d81f38112",
"uuid": "64239ea1-64ac-4b1d-a057-c1aef63daa78",
"rawTextureUuid": "104fcdb0-ca93-48e9-851a-7be61991ae7d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "f3781ebc-e4c5-494d-bfeb-51821d7b7d2c",
"uuid": "694a16fe-9586-4971-b69b-770579e00c12",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"2": {
"ver": "1.0.4",
"uuid": "e7e3796a-818d-4ad2-b7e0-043fea9da4da",
"rawTextureUuid": "f3781ebc-e4c5-494d-bfeb-51821d7b7d2c",
"uuid": "5947b8ea-32dd-4bdf-96b1-c0a3f4078b54",
"rawTextureUuid": "694a16fe-9586-4971-b69b-770579e00c12",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "83a154cd-b004-4886-b0fd-e202c420c5da",
"uuid": "b85f7d46-90f8-4112-8e92-bde93c1ebfe1",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"3": {
"ver": "1.0.4",
"uuid": "d9097538-0f9c-4349-a72c-d99ab8cdf5de",
"rawTextureUuid": "83a154cd-b004-4886-b0fd-e202c420c5da",
"uuid": "393041ff-00e2-4ef3-97be-82e57154cfc9",
"rawTextureUuid": "b85f7d46-90f8-4112-8e92-bde93c1ebfe1",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "c757de3e-e7a3-4e69-9920-88907a700658",
"uuid": "d215adad-1d8d-4af6-89e2-0611bd733c09",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_1": {
"ver": "1.0.4",
"uuid": "9866c410-4a68-4dd0-89a8-320ad8bc16d7",
"rawTextureUuid": "c757de3e-e7a3-4e69-9920-88907a700658",
"uuid": "4d2e721d-5a99-4895-b29c-1365abc2e99b",
"rawTextureUuid": "d215adad-1d8d-4af6-89e2-0611bd733c09",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "d9a24d3d-8d6f-42b3-924f-fa42e5dcaa73",
"uuid": "c3527267-be17-4637-8d72-0491d613645e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_2": {
"ver": "1.0.4",
"uuid": "3d082408-f63e-4461-8352-35e8c2826b56",
"rawTextureUuid": "d9a24d3d-8d6f-42b3-924f-fa42e5dcaa73",
"uuid": "8598ba9d-9fd3-45ee-9acb-6b9d4a3326b7",
"rawTextureUuid": "c3527267-be17-4637-8d72-0491d613645e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "663a0073-b0c0-48fd-82ce-c7a447ee8ac3",
"uuid": "19d921cf-2185-4abc-b361-46fb632246f8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_card": {
"ver": "1.0.4",
"uuid": "c54659f5-65ba-4378-bee2-5a4a804ce844",
"rawTextureUuid": "663a0073-b0c0-48fd-82ce-c7a447ee8ac3",
"uuid": "56034c3a-b8d7-4338-a610-baaf46c7ff07",
"rawTextureUuid": "19d921cf-2185-4abc-b361-46fb632246f8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "cadae726-f408-4daa-8410-88380456ce34",
"uuid": "9b8e2f51-fecc-427e-bc08-e038341cd7ff",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_crad-back": {
"ver": "1.0.4",
"uuid": "dcf4576f-f7ad-4620-8a47-ee41b55ae444",
"rawTextureUuid": "cadae726-f408-4daa-8410-88380456ce34",
"uuid": "8cf59de8-161c-49b0-839a-5c75d8fe1f62",
"rawTextureUuid": "9b8e2f51-fecc-427e-bc08-e038341cd7ff",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "260faa68-58d2-4ab6-9330-70dbc3391f3e",
"uuid": "fdf0607a-8226-4f0f-b65c-0efa428dec03",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_left": {
"ver": "1.0.4",
"uuid": "c05fb638-d445-4bfa-bbb7-bc0c0988cec8",
"rawTextureUuid": "260faa68-58d2-4ab6-9330-70dbc3391f3e",
"uuid": "9728aa40-7608-46bd-888e-2acd417225bb",
"rawTextureUuid": "fdf0607a-8226-4f0f-b65c-0efa428dec03",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "2216551c-744e-42a4-ba7a-1f61caec138e",
"uuid": "a2e277a2-fc5f-4619-b7ed-97683f510604",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_right": {
"ver": "1.0.4",
"uuid": "d48432fd-8f2d-4cc1-9a30-393816af7940",
"rawTextureUuid": "2216551c-744e-42a4-ba7a-1f61caec138e",
"uuid": "ea953cb1-9e26-4c90-b9cf-6d8ecdce2161",
"rawTextureUuid": "a2e277a2-fc5f-4619-b7ed-97683f510604",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "6ac6e6a6-1f1a-4f5f-99cf-72a9545e4478",
"uuid": "b3a18e7c-4c9c-4616-b49a-173ffa4b72d2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_time": {
"ver": "1.0.4",
"uuid": "d913cc92-ade3-4a33-8fe3-dfcd3e525686",
"rawTextureUuid": "6ac6e6a6-1f1a-4f5f-99cf-72a9545e4478",
"uuid": "6c68d460-fc18-4991-b61e-1a32a77efa1f",
"rawTextureUuid": "b3a18e7c-4c9c-4616-b49a-173ffa4b72d2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "c692d357-508b-4ee2-81d3-53d929bff53d",
"uuid": "fbf7af93-3cd7-433c-ab0e-3a79c68cdc2c",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_time2": {
"ver": "1.0.4",
"uuid": "038e0527-a75c-4cbd-971d-8a40dd1d2857",
"rawTextureUuid": "c692d357-508b-4ee2-81d3-53d929bff53d",
"uuid": "276627a2-ebed-4885-8308-1433ebfb24f5",
"rawTextureUuid": "fbf7af93-3cd7-433c-ab0e-3a79c68cdc2c",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "d3093590-9287-477b-88b5-95b3d7687290",
"uuid": "1db0f660-34e5-4b4c-818f-5ba92b188376",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_tip": {
"ver": "1.0.4",
"uuid": "d0578dac-4b41-44c3-9fd9-7d2634c15dee",
"rawTextureUuid": "d3093590-9287-477b-88b5-95b3d7687290",
"uuid": "a92f202f-40e1-4967-bcfd-7c67b36c5230",
"rawTextureUuid": "1db0f660-34e5-4b4c-818f-5ba92b188376",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "5c18f81a-5bbc-4289-8fab-44cd9acd9cff",
"uuid": "d1cbff37-a335-4eb1-b69f-f77e46378e02",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg_title": {
"ver": "1.0.4",
"uuid": "9772abfe-e964-42a5-b6de-da7ba280c874",
"rawTextureUuid": "5c18f81a-5bbc-4289-8fab-44cd9acd9cff",
"uuid": "f32598ac-4a6f-4e3b-a2d5-5804f656ce1e",
"rawTextureUuid": "d1cbff37-a335-4eb1-b69f-f77e46378e02",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "9e90600c-14f5-4d4f-b3b8-00966d2a805c",
"uuid": "bfdbe139-512d-4dff-a3b2-4345fbd47080",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_restart": {
"ver": "1.0.4",
"uuid": "a3970e03-1759-4fea-b065-177b105dc010",
"rawTextureUuid": "9e90600c-14f5-4d4f-b3b8-00966d2a805c",
"uuid": "f3c5c29c-c7b3-4110-9d49-307e08d42533",
"rawTextureUuid": "bfdbe139-512d-4dff-a3b2-4345fbd47080",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "a053a7bd-a28c-4a53-82a5-c56280491b12",
"uuid": "eb530758-88e8-4c23-b00d-45c6ebddd4f6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "72693c8d-573a-405a-84c6-81a78d6bd44a",
"rawTextureUuid": "a053a7bd-a28c-4a53-82a5-c56280491b12",
"uuid": "4af2db97-1221-45e8-9267-c6d1d456a356",
"rawTextureUuid": "eb530758-88e8-4c23-b00d-45c6ebddd4f6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "1.1.2",
"uuid": "7c1f5c4a-1b8f-407e-ab96-ab3e4d62b550",
"uuid": "85b159cb-80bb-402f-8d94-4c9a0a57dc40",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
......@@ -242,7 +242,7 @@
"_lineHeight": 60,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "48bea34c-c2e1-4919-b96f-ebb81129291d"
"__uuid__": "5c772032-6791-4f8a-9830-75df33d1c718"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
......@@ -262,7 +262,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "35WowoHDhEPajiTVLzQCcE",
"sync": false
......@@ -283,7 +283,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c54659f5-65ba-4378-bee2-5a4a804ce844"
"__uuid__": "56034c3a-b8d7-4338-a610-baaf46c7ff07"
},
"_type": 0,
"_sizeMode": 1,
......@@ -305,7 +305,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "95FDfbQWNPlq3fq4wYlTU1",
"sync": false
......@@ -410,7 +410,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "71cqV8SNdEabf5k+v4MPPK",
"sync": false
......@@ -495,7 +495,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "dcf4576f-f7ad-4620-8a47-ee41b55ae444"
"__uuid__": "8cf59de8-161c-49b0-839a-5c75d8fe1f62"
},
"_type": 0,
"_sizeMode": 1,
......@@ -517,7 +517,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "c1uv2eSUhO7ZDzrM1TwY8H",
"sync": false
......@@ -605,7 +605,7 @@
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "a7e0055a-804e-400a-a3e1-4183766c3087#9ef2de10-daea-4abf-82a2-ebd8f6e571d6",
"_armatureKey": "fe518f9b-ff9d-43df-bd23-13960098b677#ada6c994-d0f8-4499-b4bf-aca360074281",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
......@@ -613,10 +613,10 @@
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "a7e0055a-804e-400a-a3e1-4183766c3087"
"__uuid__": "fe518f9b-ff9d-43df-bd23-13960098b677"
},
"_N$dragonAtlasAsset": {
"__uuid__": "9ef2de10-daea-4abf-82a2-ebd8f6e571d6"
"__uuid__": "ada6c994-d0f8-4499-b4bf-aca360074281"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
......@@ -632,13 +632,13 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "c5HbFiY0lGdbpsPIcRa1Si",
"sync": false
},
{
"__type__": "b75c5dw1T1D+ICUG+SP86Zy",
"__type__": "48b7cSyhGZIDblzU2VnpF+w",
"_name": "",
"_objFlags": 0,
"node": {
......@@ -733,7 +733,7 @@
"__id__": 1
},
"asset": {
"__uuid__": "a6570908-00fe-45b5-8768-2cbe0ea60744"
"__uuid__": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4"
},
"fileId": "",
"sync": false
......
{
"ver": "1.2.9",
"uuid": "a6570908-00fe-45b5-8768-2cbe0ea60744",
"uuid": "d4ad21fb-9d5b-40c3-8ac9-a0ade6fe01b4",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
......
{
"ver": "1.0.8",
"uuid": "b75c5770-d53d-43f8-8094-1be48ff3a672",
"uuid": "48b7c4b2-8466-480d-b973-536567a45fb0",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "9ddd88de-ec84-4f6c-93c6-a16dc6ba517b",
"uuid": "0471ce04-bbd9-4128-8c2b-e882d41f708e",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
This diff is collapsed.
{
"ver": "1.2.9",
"uuid": "0c13cb0b-8e1c-4268-93e0-05c9b85ff047",
"uuid": "add70818-57be-4668-a888-3c714618abca",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
......
......@@ -77,15 +77,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 所有全局变量 默认都是null
//
// this.scheduleOnce(()=>{
this.playAudioByUrl(this.data.questionTextAudio)
this.asyncPlayAudioByUrl(this.data.questionTextAudio)
// },1)
cc.find("Canvas/uiP/bg_tip").active=true;
this.tittleLabel.string = this.data.title;
this.tipLabel.string = this.data.questionText;
this.initCards()
this.initTime();
}
initGameData(){
this.clickNode1 = null;
......
{
"ver": "1.0.8",
"uuid": "22df09bd-c76c-4664-81fc-5edded97cbd8",
"uuid": "d32a8b9b-397f-4b88-a2eb-cad9fc9c7266",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "c812c0d2-8c4d-4bdd-9657-e7bd5829ef74",
"uuid": "f498e674-7667-452e-9a8a-78ea13c8e66e",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
......@@ -140,9 +140,14 @@ export class MyCocosSceneComponent extends cc.Component {
getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
if(img){
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
}else{
console.log("getSpriteFrimeByUrlerr",err)
cb(null)
}
})
}
......@@ -151,7 +156,7 @@ export class MyCocosSceneComponent extends cc.Component {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
this.getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if(sf) spr.spriteFrame = sf;
if (cb) {
cb(node);
}
......@@ -172,12 +177,18 @@ export class MyCocosSceneComponent extends cc.Component {
console.log("audio_url===",audio_url)
return new Promise((resole, reject) => {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
cc.audioEngine.stopAll();
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
if(audioClip){
cc.audioEngine.stopAll();
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
cc.audioEngine.setFinishCallback(audioId, () => {
if(cb)cb();
resole(null);
})
}else{
if(cb)cb();
resole(null);
})
console.log("asyncPlayAudioByUrlerr=====",err)
}
})
})
......@@ -186,15 +197,4 @@ export class MyCocosSceneComponent extends cc.Component {
cb && cb();
}
}
playAudioByUrl(audio_url,) {
if (audio_url) {
console.log("audio_url===",audio_url)
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
cc.audioEngine.stopAll();
console.log("audioClip=====",audioClip)
cc.audioEngine.playEffect(audioClip, false);
console.log("audioClip2=====",audioClip)
})
}
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "c3eebb96-1d4d-436f-9199-262d9ca0aa0a",
"uuid": "ee65dd9a-852d-42e7-a292-0059f0e67751",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "e47f7191-f69c-4141-bc6b-7f06c10b3461",
"uuid": "da24bb63-1f90-4419-aca3-93d2835e26b0",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "7c0bcb7a-e855-4bf2-9776-b9c2ad1ef10c",
"uuid": "4afb0981-f0ca-48fe-a2c3-788ee8eb813a",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.0.8",
"uuid": "9f11082b-2b6e-4836-9455-022d53b5c807",
"uuid": "1975be3c-1810-4ffe-a9b5-6a3078d3a6dc",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
......
{
"ver": "1.1.2",
"uuid": "c8fffa2e-cf24-40f6-b5ac-84822a5b94dc",
"uuid": "572420ff-e51f-461d-9aa8-4cef8b4d556d",
"isBundle": false,
"bundleName": "",
"priority": 1,
......
{
"ver": "2.3.5",
"uuid": "5a6c2469-5f2d-42a1-aaed-97fcffd25e6d",
"uuid": "2a7fbc19-7b67-4ead-92a2-085ff53094e6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"1orange": {
"ver": "1.0.4",
"uuid": "8157d348-01df-43ab-916e-135d4363daef",
"rawTextureUuid": "5a6c2469-5f2d-42a1-aaed-97fcffd25e6d",
"uuid": "dabca43b-c1a7-4172-81f6-ef6127d1dd35",
"rawTextureUuid": "2a7fbc19-7b67-4ead-92a2-085ff53094e6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "628164a1-b3a2-4625-8b4b-b9441736849b",
"uuid": "ca696dc9-8fe6-466f-bb6b-56b09f6271b2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "bc5555d0-8b38-49a1-9093-1f282999b05e",
"rawTextureUuid": "628164a1-b3a2-4625-8b4b-b9441736849b",
"uuid": "ec2aeba2-b70b-41d2-b2b6-58f4bf81368d",
"rawTextureUuid": "ca696dc9-8fe6-466f-bb6b-56b09f6271b2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "67b120c2-a071-4ac2-ab3c-d8ee8ff88f0e",
"uuid": "d84c192c-6fe9-4d56-98ca-4e2abf793372",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_left": {
"ver": "1.0.4",
"uuid": "66e4a98b-ee99-46b5-9ff5-f173763ff817",
"rawTextureUuid": "67b120c2-a071-4ac2-ab3c-d8ee8ff88f0e",
"uuid": "83419c05-6392-4a36-874e-762af37e2b72",
"rawTextureUuid": "d84c192c-6fe9-4d56-98ca-4e2abf793372",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "505608bf-51a4-447d-9875-e2e91ed01876",
"uuid": "2dbc95c5-7119-44ce-96d4-f90c9469fa32",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"btn_right": {
"ver": "1.0.4",
"uuid": "b6261cff-aaa4-4a08-a42f-543d54ffd948",
"rawTextureUuid": "505608bf-51a4-447d-9875-e2e91ed01876",
"uuid": "e14c490d-6f87-43b4-a94c-3763988c64ed",
"rawTextureUuid": "2dbc95c5-7119-44ce-96d4-f90c9469fa32",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"ver": "2.3.5",
"uuid": "52925655-d073-4cc2-bf4b-1944859bd26c",
"uuid": "1122742b-2a4c-4f5b-8107-485a9c122efb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
......@@ -13,8 +13,8 @@
"subMetas": {
"icon": {
"ver": "1.0.4",
"uuid": "47916f32-f9ac-4007-b67f-890c4a060d38",
"rawTextureUuid": "52925655-d073-4cc2-bf4b-1944859bd26c",
"uuid": "68e4d708-b7c4-4d97-9231-9c7d00e4298c",
"rawTextureUuid": "1122742b-2a4c-4f5b-8107-485a9c122efb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
......
{
"title": "play",
"packageName": "org.cocos2d.demo",
"startScene": "0c13cb0b-8e1c-4268-93e0-05c9b85ff047",
"startScene": "add70818-57be-4668-a888-3c714618abca",
"excludeScenes": [],
"includeSDKBox": false,
"orientation": {
......
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