Commit 75d586d1 authored by 李维's avatar 李维

Test on platform

parent ee36d426
......@@ -81,13 +81,13 @@
"__id__": 14
},
{
"__id__": 22
"__id__": 19
},
{
"__id__": 27
"__id__": 22
},
{
"__id__": 30
"__id__": 27
}
],
"_active": true,
......@@ -693,7 +693,7 @@
},
{
"__type__": "cc.Node",
"_name": "res",
"_name": "video_container",
"_objFlags": 0,
"_parent": {
"__id__": 2
......@@ -703,13 +703,10 @@
"__id__": 15
},
{
"__id__": 18
},
{
"__id__": 21
"__id__": 17
}
],
"_active": false,
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
......@@ -722,8 +719,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 668,
"height": 353
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -734,8 +731,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-267.5,
125,
0,
0,
0,
......@@ -757,22 +754,22 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0aAzbH6R1E+6AmGRrkKa5O"
"_id": "07WrlyPWpI1Ik9Q7DJEFRo"
},
{
"__type__": "cc.Node",
"_name": "font",
"_name": "video",
"_objFlags": 0,
"_parent": {
"__id__": 14
},
"_children": [
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -784,8 +781,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 534,
"height": 278
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -796,8 +793,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
30,
-2,
0,
0,
0,
......@@ -819,20 +816,42 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "9bLfcYeeNKrr524vzWchiM"
"_id": "5dDGb4m3VNWLXVzyWPW5HX"
},
{
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_resourceType": 1,
"_remoteURL": "https://fd.aigei.com/pvvdo_fast/vdo/mp4/50/50dc7a2bb8714da38b2c10971fce51d4.mp4",
"_clip": {
"__uuid__": "712e66dd-a0ad-47ce-981b-f05fa133db57"
},
"_volume": 1,
"_mute": false,
"_isFullscreen": true,
"_N$isFullscreen": true,
"_stayOnBottom": true,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "7fn4AgAtJIZanX7bc/nzLj"
},
{
"__type__": "cc.Node",
"_name": "Comic Sans MS",
"_name": "bg_A",
"_objFlags": 0,
"_parent": {
"__id__": 15
"__id__": 14
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 17
"__id__": 18
}
],
"_prefab": null,
......@@ -846,8 +865,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 668,
"height": 353
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -858,7 +877,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-1.638,
0,
0,
0,
......@@ -881,50 +900,50 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "14gBFjSd5AgIeRMwZXPOfe"
"_id": "c0NYIsSCZFZr3NPWVwlHAn"
},
{
"__type__": "cc.Label",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
"__id__": 17
},
"_enabled": true,
"_materials": [],
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "4278e1b0-1b0e-4c36-a439-b8e331576335"
"_spriteFrame": {
"__uuid__": "1519107e-2f68-4aeb-bb2e-d47e9e8785d9"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d8F48Jm3BLF7sjDfekyb3R"
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "12TIQc9L1O1rIp4hQFAqb3"
},
{
"__type__": "cc.Node",
"_name": "img",
"_name": "text_container",
"_objFlags": 0,
"_parent": {
"__id__": 14
"__id__": 2
},
"_children": [
{
"__id__": 19
"__id__": 20
}
],
"_active": true,
......@@ -940,8 +959,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 40,
"height": 36
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -952,8 +971,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-220,
-180,
0,
0,
0,
......@@ -975,20 +994,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs"
"_id": "0frwQYF7lIwIB7eNDQYIcp"
},
{
"__type__": "cc.Node",
"_name": "black",
"_name": "bg_A",
"_objFlags": 0,
"_parent": {
"__id__": 18
"__id__": 19
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 20
"__id__": 21
}
],
"_prefab": null,
......@@ -1002,8 +1021,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
"width": 602,
"height": 164
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1037,21 +1056,25 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "dbn85feHFExo1q+nsQtN4n"
"_id": "a97JLq9pVAua7wVjGxeFDh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 19
"__id__": 20
},
"_enabled": true,
"_materials": [],
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "7a2d99d6-2009-4341-83f8-f18980e6405d"
"__uuid__": "24c5be88-f09f-42aa-bf3c-e0248a81c629"
},
"_type": 0,
"_sizeMode": 1,
......@@ -1065,16 +1088,23 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "86147ZoQBOpKg5wejgeXRf"
"_id": "7dkqY/AVNGFJQQifsWIdIt"
},
{
"__type__": "cc.Node",
"_name": "audio",
"_name": "right_container",
"_objFlags": 0,
"_parent": {
"__id__": 14
"__id__": 2
},
"_children": [],
"_children": [
{
"__id__": 23
},
{
"__id__": 25
}
],
"_active": true,
"_components": [],
"_prefab": null,
......@@ -1088,8 +1118,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width": 430,
"height": 550
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1100,7 +1130,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
378.363,
0,
0,
0,
......@@ -1123,25 +1153,22 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "b823DIVC9L+Ihc3T9Bt7m3"
"_id": "a9j0dyDaxAWJKitYTpJXu0"
},
{
"__type__": "cc.Node",
"_name": "video_container",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 23
"__id__": 22
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 25
"__id__": 24
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1153,8 +1180,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 668,
"height": 353
"width": 430,
"height": 550
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1165,8 +1192,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-267.5,
125,
-21.293,
14.742,
0,
0,
0,
......@@ -1188,11 +1215,43 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "07WrlyPWpI1Ik9Q7DJEFRo"
"_id": "90aXo7FMVM2rUKSLcGwMV1"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a9aec2e1-ddd3-414a-8f2d-85f4f3542383"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "21RVUjN2JMpKnRfsSuUQHI"
},
{
"__type__": "cc.Node",
"_name": "video",
"_name": "dragonBones",
"_objFlags": 0,
"_parent": {
"__id__": 22
......@@ -1201,7 +1260,7 @@
"_active": true,
"_components": [
{
"__id__": 24
"__id__": 26
}
],
"_prefab": null,
......@@ -1215,8 +1274,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 534,
"height": 278
"width": 388,
"height": 397
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1227,8 +1286,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
30,
-2,
0,
0,
0,
0,
0,
......@@ -1250,44 +1309,68 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "5dDGb4m3VNWLXVzyWPW5HX"
"_id": "c65g142Q1Ot5hUwPHKrILy"
},
{
"__type__": "cc.VideoPlayer",
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 23
"__id__": 25
},
"_enabled": true,
"_resourceType": 1,
"_remoteURL": "https://fd.aigei.com/pvvdo_fast/vdo/mp4/50/50dc7a2bb8714da38b2c10971fce51d4.mp4",
"_clip": {
"__uuid__": "712e66dd-a0ad-47ce-981b-f05fa133db57"
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "apple",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "cc2fde72-3c3b-4574-9741-c57a28bab1fc#50e92afc-ad08-473d-8aba-ec7911f5fcd1",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "cc2fde72-3c3b-4574-9741-c57a28bab1fc"
},
"_volume": 1,
"_mute": false,
"_isFullscreen": true,
"_N$isFullscreen": true,
"_stayOnBottom": true,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_id": "7fn4AgAtJIZanX7bc/nzLj"
"_N$dragonAtlasAsset": {
"__uuid__": "50e92afc-ad08-473d-8aba-ec7911f5fcd1"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "bfn3YVOO9LmbRVBrdzSLW/"
},
{
"__type__": "cc.Node",
"_name": "bg_A",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 22
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
"_children": [
{
"__id__": 26
"__id__": 28
},
{
"__id__": 31
},
{
"__id__": 34
}
],
"_active": false,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1299,8 +1382,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 668,
"height": 353
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1311,7 +1394,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-1.638,
0,
0,
0,
0,
......@@ -1334,50 +1417,18 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c0NYIsSCZFZr3NPWVwlHAn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "1519107e-2f68-4aeb-bb2e-d47e9e8785d9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "12TIQc9L1O1rIp4hQFAqb3"
"_id": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "text_container",
"_name": "font",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 27
},
"_children": [
{
"__id__": 28
"__id__": 29
}
],
"_active": true,
......@@ -1393,8 +1444,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 36
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1405,8 +1456,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-220,
-180,
0,
0,
0,
0,
0,
......@@ -1428,20 +1479,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "0frwQYF7lIwIB7eNDQYIcp"
"_id": "9bLfcYeeNKrr524vzWchiM"
},
{
"__type__": "cc.Node",
"_name": "bg_A",
"_name": "Comic Sans MS",
"_objFlags": 0,
"_parent": {
"__id__": 27
"__id__": 28
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 29
"__id__": 30
}
],
"_prefab": null,
......@@ -1455,8 +1506,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 602,
"height": 164
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1490,53 +1541,50 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a97JLq9pVAua7wVjGxeFDh"
"_id": "14gBFjSd5AgIeRMwZXPOfe"
},
{
"__type__": "cc.Sprite",
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 28
"__id__": 29
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "24c5be88-f09f-42aa-bf3c-e0248a81c629"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
"_useOriginalSize": true,
"_string": "",
"_N$string": "",
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "4278e1b0-1b0e-4c36-a439-b8e331576335"
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7dkqY/AVNGFJQQifsWIdIt"
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "d8F48Jm3BLF7sjDfekyb3R"
},
{
"__type__": "cc.Node",
"_name": "right_container",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 2
"__id__": 27
},
"_children": [
{
"__id__": 31
},
{
"__id__": 33
"__id__": 32
}
],
"_active": true,
......@@ -1552,8 +1600,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 430,
"height": 550
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1564,7 +1612,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
378.363,
0,
0,
0,
0,
......@@ -1587,20 +1635,20 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "a9j0dyDaxAWJKitYTpJXu0"
"_id": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "bg",
"_name": "black",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 31
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 32
"__id__": 33
}
],
"_prefab": null,
......@@ -1614,8 +1662,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 430,
"height": 550
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1626,8 +1674,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-21.293,
14.742,
0,
0,
0,
0,
0,
......@@ -1649,28 +1697,24 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "90aXo7FMVM2rUKSLcGwMV1"
"_id": "dbn85feHFExo1q+nsQtN4n"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 31
"__id__": 32
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_materials": [],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "a9aec2e1-ddd3-414a-8f2d-85f4f3542383"
"__uuid__": "7a2d99d6-2009-4341-83f8-f18980e6405d"
},
"_type": 0,
"_sizeMode": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
......@@ -1681,22 +1725,18 @@
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "21RVUjN2JMpKnRfsSuUQHI"
"_id": "86147ZoQBOpKg5wejgeXRf"
},
{
"__type__": "cc.Node",
"_name": "dragonBones",
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 30
"__id__": 27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 34
}
],
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
......@@ -1708,8 +1748,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 388,
"height": 397
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -1743,47 +1783,7 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "c65g142Q1Ot5hUwPHKrILy"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "apple",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "cc2fde72-3c3b-4574-9741-c57a28bab1fc#50e92afc-ad08-473d-8aba-ec7911f5fcd1",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "cc2fde72-3c3b-4574-9741-c57a28bab1fc"
},
"_N$dragonAtlasAsset": {
"__uuid__": "50e92afc-ad08-473d-8aba-ec7911f5fcd1"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "bfn3YVOO9LmbRVBrdzSLW/"
"_id": "b823DIVC9L+Ihc3T9Bt7m3"
},
{
"__type__": "cc.Canvas",
......
......@@ -6,6 +6,12 @@
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
import GameLogic from "./GameLogic"
// cc.game.onStart = function(){
// cc.director.runScene(new MyScene());
// console.log("Test")
// cc.game.run();
// };
// cc.game.run();
cc.Class({
extends: cc.Component,
......@@ -14,10 +20,18 @@ cc.Class({
},
onStart() {
},
// 生命周期 onLoad
onLoad() {
this.initSceneData();
this.initSize();
cc.macro.ENABLE_TRANSPARENT_CANVAS = true;
cc.director.setClearColor(new cc.Color(255 ,255 ,255 , 0));
},
_imageResList: null,
......
......@@ -67,6 +67,8 @@
loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
}
else {
cc.macro.ENABLE_TRANSPARENT_CANVAS = true;
cc.director.setClearColor(new cc.Color(255 ,255 ,255 , 0));
window.boot();
}
});
......
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