Commit 960e4b6c authored by limingzhe's avatar limingzhe

fix: 异常 调试

parent 38105715
No preview for this file type
......@@ -219,6 +219,10 @@ cc.Class({
initMusic() {
if (!this.data.bg_audio_url) {
return;
}
cc.assetManager.loadRemote(this.data.bg_audio_url, (err, clip) => {
cc.audioEngine.setMusicVolume(0.3);
const audioID = cc.audioEngine.playMusic(clip, true);
......@@ -382,7 +386,7 @@ cc.Class({
initBottomPart() {
const bgBottom = cc.find('Canvas/bgBottom');
const script = bgBottom.getComponent('bgBottom');
const script = bgBottom.getComponent('bgBottom_cc_mz_004');
const picArr = [];
this.data.hotZoneItemArr.forEach((item) => {
......@@ -726,6 +730,10 @@ cc.Class({
cc.tween(this._circle)
.to(1, {opacity: 0}, {easing: 'cubicOut'})
.start();
},
onDestroy() {
}
......
{
"paths": {
"30aC+Hnw1PF4pEcoY3kUYb": [
"effects/builtin-2d-graphics",
"cc.EffectAsset"
],
"14TDKXr2NJ6LjvHPops74o": [
"effects/builtin-2d-gray-sprite",
"cc.EffectAsset"
],
"f1h0LXVtJOta5JLZ1xCzfI": [
"effects/builtin-2d-label",
"cc.EffectAsset"
],
"0ek66qC1NOQLjgYmi04HvX": [
"effects/builtin-2d-spine",
"cc.EffectAsset"
],
"28dPjdQWxEQIG3VVl1Qm6T": [
"effects/builtin-2d-sprite",
"cc.EffectAsset"
],
"82migssElAGb04Ws6NimQX": [
"effects/builtin-3d-particle",
"cc.EffectAsset"
],
"2afAA24LNP4YmYiaVLiivs": [
"effects/builtin-3d-trail",
"cc.EffectAsset"
],
"c0BAyVxX9JzZy8EjFrc9DU": [
"effects/builtin-clear-stencil",
"cc.EffectAsset"
],
"6dkeWRTOBGXICfYQ7JUBnG": [
"effects/builtin-unlit",
"cc.EffectAsset"
],
"6fgBCSDDdPMInvyNlggls2": [
"materials/builtin-2d-base",
"cc.Material"
],
"a1U5RdJRFMFL57BdJC9H1X": [
"materials/builtin-2d-graphics",
"cc.Material"
],
"3ae7efMv1CLq2ilvUY/tQi": [
"materials/builtin-2d-gray-sprite",
"cc.Material"
],
"e0LYfU5ZlNFoAB4UiRrGUG": [
"materials/builtin-2d-label",
"cc.Material"
],
"7a/QZLET9IDreTiBfRn2PD": [
"materials/builtin-2d-spine",
"cc.Material"
],
"ecpdLyjvZBwrvm+cedCcQy": [
"materials/builtin-2d-sprite",
"cc.Material"
],
"43L6CczwNM/6GGmCYEQIoH": [
"materials/builtin-3d-particle",
"cc.Material"
],
"46bU+b5fROqIXVPG6aZWWK": [
"materials/builtin-3d-trail",
"cc.Material"
],
"cffgu4qBxEqa150o1DmRAy": [
"materials/builtin-clear-stencil",
"cc.Material"
],
"2aKWBXJHxKHLvrBUi2yYZQ": [
"materials/builtin-unlit",
"cc.Material"
]
},
"uuids": [
"02delMVqdBD70a/HSD99FK",
"0ek66qC1NOQLjgYmi04HvX",
"14TDKXr2NJ6LjvHPops74o",
"28dPjdQWxEQIG3VVl1Qm6T",
"2aKWBXJHxKHLvrBUi2yYZQ",
"2afAA24LNP4YmYiaVLiivs",
"30aC+Hnw1PF4pEcoY3kUYb",
"3ae7efMv1CLq2ilvUY/tQi",
"43L6CczwNM/6GGmCYEQIoH",
"46bU+b5fROqIXVPG6aZWWK",
"60AwGqM1dKELCGhPAR+jK6",
"6dkeWRTOBGXICfYQ7JUBnG",
"6fgBCSDDdPMInvyNlggls2",
"7a/QZLET9IDreTiBfRn2PD",
"82migssElAGb04Ws6NimQX",
"a1U5RdJRFMFL57BdJC9H1X",
"c0BAyVxX9JzZy8EjFrc9DU",
"cffgu4qBxEqa150o1DmRAy",
"e0LYfU5ZlNFoAB4UiRrGUG",
"ecpdLyjvZBwrvm+cedCcQy",
"f1h0LXVtJOta5JLZ1xCzfI"
],
"scenes": {},
"redirect": [],
"deps": [],
"packs": {
"0771a325d": [
"43L6CczwNM/6GGmCYEQIoH",
"82migssElAGb04Ws6NimQX"
],
"079499991": [
"2aKWBXJHxKHLvrBUi2yYZQ",
"6dkeWRTOBGXICfYQ7JUBnG"
],
"07ce7530a": [
"14TDKXr2NJ6LjvHPops74o",
"3ae7efMv1CLq2ilvUY/tQi"
],
"08018726a": [
"e0LYfU5ZlNFoAB4UiRrGUG",
"f1h0LXVtJOta5JLZ1xCzfI"
],
"0a5cba09d": [
"2afAA24LNP4YmYiaVLiivs",
"46bU+b5fROqIXVPG6aZWWK"
],
"0d5255670": [
"30aC+Hnw1PF4pEcoY3kUYb",
"a1U5RdJRFMFL57BdJC9H1X"
],
"0d669730c": [
"c0BAyVxX9JzZy8EjFrc9DU",
"cffgu4qBxEqa150o1DmRAy"
],
"0e4bc3b03": [
"0ek66qC1NOQLjgYmi04HvX",
"7a/QZLET9IDreTiBfRn2PD"
],
"0ea3dbfa0": [
"02delMVqdBD70a/HSD99FK",
"60AwGqM1dKELCGhPAR+jK6"
]
},
"name": "internal",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false
}
\ No newline at end of file
[
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-gray-sprite",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
}
},
"program": "builtin-2d-gray-sprite|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 4278481454,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nin vec3 a_position;\nin mediump vec2 a_uv0;\nout mediump vec2 v_uv0;\nin vec4 a_color;\nout vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nin mediump vec2 v_uv0;\nin vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nattribute vec3 a_position;\nattribute mediump vec2 a_uv0;\nvarying mediump vec2 v_uv0;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying mediump vec2 v_uv0;\nvarying vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [],
"samplers": []
}
},
"defines": [
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": []
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-gray-sprite|vs|fs"
}
]
},
{
"__type__": "cc.Material",
"_name": "builtin-2d-gray-sprite",
"_effectAsset": {
"__uuid__": "14TDKXr2NJ6LjvHPops74o"
},
"_techniqueData": {}
}
]
\ No newline at end of file
[
{
"__type__": "cc.Material",
"_name": "builtin-2d-label",
"_effectAsset": {
"__uuid__": "f1h0LXVtJOta5JLZ1xCzfI"
},
"_techniqueData": {
"0": {
"defines": {
"USE_TEXTURE": true
}
}
}
},
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-label",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"value": [
0.5
],
"type": 13
},
"outlineSize": {
"value": [
0
],
"type": 13
},
"outlineColor": {
"value": [
1,
1,
1,
1
],
"type": 16
}
},
"program": "builtin-2d-label|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 1105459032,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_SDF\nuniform Outline {\n vec4 outlineColor;\n float outlineSize;\n};\n#endif\nvoid main () {\n#if USE_SDF\n #if USE_TEXTURE_ALPHAONLY\n float dist = texture(texture, v_uv0).a;\n #else\n float dist = texture(texture, v_uv0).r;\n #endif\n #if USE_SDF_EXTEND\n const float EDGE_VALUE = 0.45;\n #else\n const float EDGE_VALUE = 0.5;\n #endif\n #if CC_SUPPORT_standard_derivatives\n float smoothing = fwidth(dist);\n #else\n float smoothing = 0.05;\n #endif\n float outEdge = EDGE_VALUE - outlineSize;\n float bg = smoothstep(outEdge - smoothing, outEdge, dist);\n float fg = smoothstep(EDGE_VALUE - smoothing, EDGE_VALUE, dist);\n vec4 fgColor = outlineColor * (1.0 - fg) + v_color * fg;\n gl_FragColor = vec4(fgColor.rgb, fgColor.a * bg);\n#else\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_TEXTURE_ALPHAONLY\n o.a *= texture(texture, v_uv0).a;\n #else\n o *= texture(texture, v_uv0);\n #endif\n #if CC_USE_ALPHA_ATLAS_TEXTURE\n o.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n#endif\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\n#if USE_SDF\nuniform vec4 outlineColor;\nuniform float outlineSize;\n#endif\nvoid main () {\n#if USE_SDF\n #if USE_TEXTURE_ALPHAONLY\n float dist = texture2D(texture, v_uv0).a;\n #else\n float dist = texture2D(texture, v_uv0).r;\n #endif\n #if USE_SDF_EXTEND\n const float EDGE_VALUE = 0.45;\n #else\n const float EDGE_VALUE = 0.5;\n #endif\n #if CC_SUPPORT_standard_derivatives\n float smoothing = fwidth(dist);\n #else\n float smoothing = 0.05;\n #endif\n float outEdge = EDGE_VALUE - outlineSize;\n float bg = smoothstep(outEdge - smoothing, outEdge, dist);\n float fg = smoothstep(EDGE_VALUE - smoothing, EDGE_VALUE, dist);\n vec4 fgColor = outlineColor * (1.0 - fg) + v_color * fg;\n gl_FragColor = vec4(fgColor.rgb, fgColor.a * bg);\n#else\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_TEXTURE_ALPHAONLY\n o.a *= texture2D(texture, v_uv0).a;\n #else\n o *= texture2D(texture, v_uv0);\n #endif\n #if CC_USE_ALPHA_ATLAS_TEXTURE\n o.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n#endif\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TEXTURE",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "CC_SUPPORT_standard_derivatives",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "USE_SDF",
"type": "boolean",
"defines": []
},
{
"name": "USE_TEXTURE_ALPHAONLY",
"type": "boolean",
"defines": [
"USE_SDF"
]
},
{
"name": "USE_SDF_EXTEND",
"type": "boolean",
"defines": [
"USE_SDF"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_TEXTURE",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
},
{
"name": "Outline",
"members": [
{
"name": "outlineColor",
"type": 16,
"count": 1
},
{
"name": "outlineSize",
"type": 13,
"count": 1
}
],
"defines": [
"USE_SDF"
],
"binding": 1
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [
"USE_TEXTURE"
],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-label|vs|fs"
}
]
}
]
\ No newline at end of file
[
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-graphics",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true,
"blendSrc": 1,
"blendDst": 771,
"blendSrcAlpha": 1,
"blendDstAlpha": 771
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-graphics|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 550349795,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\nin float a_dist;\nout float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\nin float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\nvarying float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "CC_SUPPORT_standard_derivatives",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [],
"record": null,
"name": "builtin-2d-graphics|vs|fs"
}
]
},
{
"__type__": "cc.Material",
"_name": "builtin-2d-graphics",
"_effectAsset": {
"__uuid__": "30aC+Hnw1PF4pEcoY3kUYb"
},
"_techniqueData": {
"0": {
"defines": {}
}
}
}
]
\ No newline at end of file
[
{
"__type__": "cc.EffectAsset",
"_name": "builtin-clear-stencil",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"program": "builtin-clear-stencil|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 2075641479,
"glsl3": {
"vert": "\nprecision highp float;\nin vec3 a_position;\nvoid main () {\n gl_Position = vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nvoid main () {\n gl_FragColor = vec4(1.0);\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nvoid main () {\n gl_FragColor = vec4(1.0);\n}"
},
"builtins": {
"globals": {
"blocks": [],
"samplers": []
},
"locals": {
"blocks": [],
"samplers": []
}
},
"defines": [],
"blocks": [],
"samplers": [],
"record": null,
"name": "builtin-clear-stencil|vs|fs"
}
]
},
{
"__type__": "cc.Material",
"_name": "builtin-clear-stencil",
"_effectAsset": {
"__uuid__": "c0BAyVxX9JzZy8EjFrc9DU"
},
"_techniqueData": {}
}
]
\ No newline at end of file
[
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-spine",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-spine|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 3550530479,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\n#if USE_TINT\n in vec4 a_color0;\n#endif\nin vec2 a_uv0;\nout vec2 v_uv0;\nout vec4 v_light;\n#if USE_TINT\n out vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nin vec2 v_uv0;\nin vec4 v_light;\n#if USE_TINT\n in vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\n#if USE_TINT\n attribute vec4 a_color0;\n#endif\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TINT",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": []
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-spine|vs|fs"
}
]
},
{
"__type__": "cc.Material",
"_name": "builtin-2d-spine",
"_effectAsset": {
"__uuid__": "0ek66qC1NOQLjgYmi04HvX"
},
"_techniqueData": {}
}
]
\ No newline at end of file
{
"type": "cc.Texture2D",
"data": "0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,1,0,0"
}
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-sprite",
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-sprite|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 3278106612,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TEXTURE",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [
"USE_TEXTURE"
],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-sprite|vs|fs"
}
]
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-2d-base",
"_effectAsset": {
"__uuid__": "28dPjdQWxEQIG3VVl1Qm6T"
},
"_techniqueData": {}
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-2d-sprite",
"_effectAsset": {
"__uuid__": "28dPjdQWxEQIG3VVl1Qm6T"
},
"_techniqueData": {
"0": {
"defines": {
"USE_TEXTURE": true
}
}
}
}
\ No newline at end of file
(function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var b = o.split("/");
b = b[b.length - 1];
if (!t[b]) {
var a = "function" == typeof __require && __require;
if (!u && a) return a(b, !0);
if (i) return i(b, !0);
throw new Error("Cannot find module '" + o + "'");
}
o = b;
}
var f = n[o] = {
exports: {}
};
t[o][0].call(f.exports, function(e) {
var n = t[o][1][e];
return s(n || e);
}, f, f.exports, e, t, n, r);
}
return n[o].exports;
}
var i = "function" == typeof __require && __require;
for (var o = 0; o < r.length; o++) s(r[o]);
return s;
})({}, {}, []);
\ No newline at end of file
{
"paths": {},
"uuids": [
"02delMVqdBD70a/HSD99FK",
"10jEphdBFOu6ZZQmSeBs3z",
"1ejl+z0StELb2mEvEiZ6vl",
"23FwyEU6VHPL4kx+ue0b+s",
"35MdfsfclJvb6Ukmd9ybfA",
"3dKPHJglZBzI+eAcfj4Tcf",
"43dIM3eEVID7q17+J3if3y",
"47IBQCBJVA+JgCZj8hhYJe",
"58amK658xERYqfswqnS0cS",
"82nQe40gpGGLBfTRrGc7FO",
"8bAJ+sKehJ1J1k2EgZ9QAz",
"8e8ut3kpRBhpKmX4dq0oBB",
"8fjHmUGH5DnrGqgruYvYar",
"99k7fI5ORLSIkinFX0I72z",
"9bvaMerUlDyary99mJa6xp",
"a2MjXRFdtLlYQ5ouAFv/+R",
"a61QWNTm1PcKeDbmxqviuz",
"a8ok1LbyZDWKL7JK1OVhjE",
"abBAGcwMFDC6xD0tMtsFUn",
"b8nYBWqRFFm6W9ONFNUD7C",
"bcbmiDGrpPcaMERxUpJKEF",
"c38YYUxxZPH4mfCfBzrGxD",
"c8Gskh2AlF1Zhou/3P22sh",
"d8HsitJHxOYqo801xBk8ev",
"e5N4U/fdJDP7EIQ6GrCaVv",
"ecpdLyjvZBwrvm+cedCcQy"
],
"scenes": {
"db://assets/mz_004/scene/scene.fire": "c38YYUxxZPH4mfCfBzrGxD"
},
"redirect": [
"02delMVqdBD70a/HSD99FK",
0,
"ecpdLyjvZBwrvm+cedCcQy",
0
],
"deps": [
"internal"
],
"packs": {
"0cbb995cd": [
"10jEphdBFOu6ZZQmSeBs3z",
"23FwyEU6VHPL4kx+ue0b+s",
"58amK658xERYqfswqnS0cS",
"82nQe40gpGGLBfTRrGc7FO",
"8e8ut3kpRBhpKmX4dq0oBB",
"8fjHmUGH5DnrGqgruYvYar",
"99k7fI5ORLSIkinFX0I72z",
"9bvaMerUlDyary99mJa6xp",
"a2MjXRFdtLlYQ5ouAFv/+R",
"a8ok1LbyZDWKL7JK1OVhjE",
"abBAGcwMFDC6xD0tMtsFUn",
"b8nYBWqRFFm6W9ONFNUD7C",
"c38YYUxxZPH4mfCfBzrGxD",
"e5N4U/fdJDP7EIQ6GrCaVv"
],
"0fd04bd60": [
"1ejl+z0StELb2mEvEiZ6vl",
"35MdfsfclJvb6Ukmd9ybfA",
"3dKPHJglZBzI+eAcfj4Tcf",
"43dIM3eEVID7q17+J3if3y",
"47IBQCBJVA+JgCZj8hhYJe",
"8bAJ+sKehJ1J1k2EgZ9QAz",
"a61QWNTm1PcKeDbmxqviuz",
"bcbmiDGrpPcaMERxUpJKEF",
"c8Gskh2AlF1Zhou/3P22sh",
"d8HsitJHxOYqo801xBk8ev"
]
},
"name": "main",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false
}
\ No newline at end of file
This diff is collapsed.
{
"type": "cc.Texture2D",
"data": "0,9729,9729,33071,33071,0,0,1|1,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|1,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cocos Creator | play</title>
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1, minimum-scale=1,maximum-scale=1"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/>
<meta name="screen-orientation" content="portrait"/>
<meta name="x5-fullscreen" content="true"/>
<meta name="360-fullscreen" content="true"/>
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<link rel="stylesheet" type="text/css" href="style-desktop.css"/>
<link rel="icon" href="favicon.ico"/>
</head>
<body>
<h1 class="header">play</h1>
<div id="GameDiv" style="width:1280px; height: 720px;">
<canvas id="GameCanvas" width="1280" height="720"></canvas>
<div id="splash">
<div class="progress-bar stripes">
<span style="width: 0%"></span>
</div>
</div>
</div>
<p class="footer">Made with <a href="https://www.cocos.com/products#CocosCreator" title="Cocos Creator">Cocos Creator</a></p>
<script src="src/settings.js" charset="utf-8"></script>
<script src="main.js" charset="utf-8"></script>
<script type="text/javascript">
(function () {
// open web debugger console
if (typeof VConsole !== 'undefined') {
window.vConsole = new VConsole();
}
var debug = window._CCSettings.debug;
var splash = document.getElementById('splash');
splash.style.display = 'block';
function loadScript (moduleName, cb) {
function scriptLoaded () {
document.body.removeChild(domScript);
domScript.removeEventListener('load', scriptLoaded, false);
cb && cb();
};
var domScript = document.createElement('script');
domScript.async = true;
domScript.src = moduleName;
domScript.addEventListener('load', scriptLoaded, false);
document.body.appendChild(domScript);
}
loadScript(debug ? 'cocos2d-js.js' : 'cocos2d-js-min.js', function () {
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
loadScript(debug ? 'physics.js' : 'physics-min.js', window.boot);
}
else {
window.boot();
}
});
})();
</script>
</body>
</html>
window.boot = function () {
var settings = window._CCSettings;
window._CCSettings = undefined;
var onProgress = null;
let { RESOURCES, INTERNAL, MAIN, START_SCENE } = cc.AssetManager.BuiltinBundleName;
function setLoadingDisplay () {
// Loading splash scene
var splash = document.getElementById('splash');
var progressBar = splash.querySelector('.progress-bar span');
onProgress = function (finish, total) {
var percent = 100 * finish / total;
if (progressBar) {
progressBar.style.width = percent.toFixed(2) + '%';
}
};
splash.style.display = 'block';
progressBar.style.width = '0%';
cc.director.once(cc.Director.EVENT_AFTER_SCENE_LAUNCH, function () {
splash.style.display = 'none';
});
}
var onStart = function () {
cc.view.enableRetina(true);
cc.view.resizeWithBrowserSize(true);
if (cc.sys.isBrowser) {
setLoadingDisplay();
}
if (cc.sys.isMobile) {
if (settings.orientation === 'landscape') {
cc.view.setOrientation(cc.macro.ORIENTATION_LANDSCAPE);
}
else if (settings.orientation === 'portrait') {
cc.view.setOrientation(cc.macro.ORIENTATION_PORTRAIT);
}
cc.view.enableAutoFullScreen([
cc.sys.BROWSER_TYPE_BAIDU,
cc.sys.BROWSER_TYPE_BAIDU_APP,
cc.sys.BROWSER_TYPE_WECHAT,
cc.sys.BROWSER_TYPE_MOBILE_QQ,
cc.sys.BROWSER_TYPE_MIUI,
].indexOf(cc.sys.browserType) < 0);
}
// Limit downloading max concurrent task to 2,
// more tasks simultaneously may cause performance draw back on some android system / browsers.
// You can adjust the number based on your own test result, you have to set it before any loading process to take effect.
if (cc.sys.isBrowser && cc.sys.os === cc.sys.OS_ANDROID) {
cc.assetManager.downloader.maxConcurrency = 2;
cc.assetManager.downloader.maxRequestsPerFrame = 2;
}
var launchScene = settings.launchScene;
var bundle = cc.assetManager.bundles.find(function (b) {
return b.getSceneInfo(launchScene);
});
bundle.loadScene(launchScene, null, onProgress,
function (err, scene) {
if (!err) {
cc.director.runSceneImmediate(scene);
if (cc.sys.isBrowser) {
// show canvas
var canvas = document.getElementById('GameCanvas');
canvas.style.visibility = '';
var div = document.getElementById('GameDiv');
if (div) {
div.style.backgroundImage = '';
}
console.log('Success to load scene: ' + launchScene);
}
}
}
);
};
var option = {
id: 'GameCanvas',
debugMode: settings.debug ? cc.debug.DebugMode.INFO : cc.debug.DebugMode.ERROR,
showFPS: settings.debug,
frameRate: 60,
groupList: settings.groupList,
collisionMatrix: settings.collisionMatrix,
};
cc.assetManager.init({
bundleVers: settings.bundleVers,
remoteBundles: settings.remoteBundles,
server: settings.server
});
let bundleRoot = [INTERNAL, MAIN];
settings.hasStartSceneBundle && bundleRoot.push(START_SCENE);
settings.hasResourcesBundle && bundleRoot.push(RESOURCES);
var count = 0;
function cb (err) {
if (err) return console.error(err.message, err.stack);
count++;
if (count === bundleRoot.length + 1) {
cc.game.run(option, onStart);
}
}
cc.assetManager.loadScript(settings.jsList.map(function (x) { return 'src/' + x;}), cb);
for (let i = 0; i < bundleRoot.length; i++) {
cc.assetManager.loadBundle(bundleRoot[i], cb);
}
};
if (window.jsb) {
var isRuntime = (typeof loadRuntime === 'function');
if (isRuntime) {
require('src/settings.js');
require('src/cocos2d-runtime.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');
}
require('jsb-adapter/engine/index.js');
}
else {
require('src/settings.js');
require('src/cocos2d-jsb.js');
if (CC_PHYSICS_BUILTIN || CC_PHYSICS_CANNON) {
require('src/physics.js');
}
require('jsb-adapter/jsb-engine.js');
}
cc.macro.CLEANUP_IMAGE_CACHE = true;
window.boot();
}
\ No newline at end of file
window._CCSettings = {
platform: "web-desktop",
groupList: [
"default"
],
collisionMatrix: [
[
true
]
],
hasResourcesBundle: false,
hasStartSceneBundle: false,
remoteBundles: [],
subpackages: [],
launchScene: "db://assets/mz_004/scene/scene.fire",
orientation: "",
debug: true,
jsList: []
};
body {
cursor: default;
padding: 0;
border: 0;
margin: 0;
text-align: center;
background-color: white;
font-family: Helvetica, Verdana, Arial, sans-serif;
}
body, canvas, div {
outline: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
#Cocos2dGameContainer {
position: absolute;
margin: 0;
overflow: hidden;
left: 0px;
top: 0px;
}
canvas {
background-color: rgba(0, 0, 0, 0);
}
a:link, a:visited {
color: #000;
}
a:active, a:hover {
color: #666;
}
p.header {
font-size: small;
}
p.footer {
font-size: x-small;
}
#splash {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #171717 url(./splash.png) no-repeat center;
background-size: 350px;
}
.progress-bar {
background-color: #1a1a1a;
position: absolute;
left: 50%;
top: 80%;
height: 5px;
width: 300px;
margin: 0 -150px;
border-radius: 5px;
box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
}
.progress-bar span {
display: block;
height: 100%;
border-radius: 5px;
box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
transition: width .4s ease-in-out;
background-color: #3dc5de;
}
.stripes span {
background-size: 30px 30px;
background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
transparent 75%, transparent);
animation: animate-stripes 1s linear infinite;
}
@keyframes animate-stripes {
0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}
h1 {
color: #444;
text-shadow: 3px 3px 15px;
}
#GameDiv {
width: 800px;
height: 450px;
margin: 0 auto;
background: black;
position: relative;
border: 3px solid black;
border-radius: 6px;
box-shadow: 0 5px 40px #333
}
This diff is collapsed.
{"paths":{"0":["prefab/KGMissKindyMarker",0],"1":["texture/arrow_down",2],"2":["texture/arrow_up",2],"3":["texture/bg_bottom",2],"4":["texture/bg_points",2],"5":["texture/bg",2],"6":["texture/circle",2],"7":["texture/page_down",2],"8":["texture/page_up",2],"9":["texture/white_bg",2],"11":["prefab/bgBottom",1],"12":["texture/arrow_down",3,1],"13":["texture/arrow_up",3,1],"14":["texture/bg_bottom",3,1],"15":["texture/bg_points",3,1],"16":["texture/bg",3,1],"17":["texture/circle",3,1],"18":["texture/page_down",3,1],"19":["texture/page_up",3,1],"20":["texture/white_bg",3,1]},"types":["cc.TTFFont","cc.Prefab","cc.Texture2D","cc.SpriteFrame"],"uuids":["8e8ut3kpRBhpKmX4dq0oBB","43dIM3eEVID7q17+J3if3y","3dKPHJglZBzI+eAcfj4Tcf","a61QWNTm1PcKeDbmxqviuz","1ejl+z0StELb2mEvEiZ6vl","35MdfsfclJvb6Ukmd9ybfA","bcbmiDGrpPcaMERxUpJKEF","c8Gskh2AlF1Zhou/3P22sh","8bAJ+sKehJ1J1k2EgZ9QAz","47IBQCBJVA+JgCZj8hhYJe","3bIuyI4qdCfopLOoZCz8s6","99k7fI5ORLSIkinFX0I72z","b8nYBWqRFFm6W9ONFNUD7C","e5N4U/fdJDP7EIQ6GrCaVv","a8ok1LbyZDWKL7JK1OVhjE","abBAGcwMFDC6xD0tMtsFUn","58amK658xERYqfswqnS0cS","23FwyEU6VHPL4kx+ue0b+s","82nQe40gpGGLBfTRrGc7FO","8fjHmUGH5DnrGqgruYvYar","10jEphdBFOu6ZZQmSeBs3z","d8HsitJHxOYqo801xBk8ev","ecpdLyjvZBwrvm+cedCcQy","a2MjXRFdtLlYQ5ouAFv/+R","9bvaMerUlDyary99mJa6xp","02delMVqdBD70a/HSD99FK"],"scenes":{"db://assets/cc_mz_004/scene/cc_mz_004.fire":10},"redirect":[22,0,25,0],"deps":["internal"],"name":"cc_mz_004","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":true,"versions":{"import":[20,"be2e2",4,"7871f",17,"e9362",5,"4b3a3",10,"efdb4",2,"7871f",1,"7871f",9,"4b3a3",16,"64e86",18,"27f77",8,"7871f",0,"87e5f",19,"c7c69",11,"ff6c3",24,"95264",23,"43d76",3,"7871f",14,"a6c1c",15,"55fe4",12,"de764",6,"7871f",7,"7871f",21,"7871f",13,"3c80b"],"native":[4,"ab3f9",5,"44413",2,"63a5c",1,"86eec",9,"8ebb1",8,"5fbba",0,"95550",3,"7c662",6,"c5c99",7,"73036",21,"cdbc9"]}}
\ No newline at end of file
[1,["47IBQCBJVA+JgCZj8hhYJe"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"white_bg","rect":[0,0,1280,640],"offset":[0,0],"originalSize":[1280,640],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["0,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,["bcbmiDGrpPcaMERxUpJKEF"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"circle","rect":[0,0,1026,1026],"offset":[0,0],"originalSize":[1026,1026],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["1,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,["ecpdLyjvZBwrvm+cedCcQy","9bvaMerUlDyary99mJa6xp","58amK658xERYqfswqnS0cS","abBAGcwMFDC6xD0tMtsFUn","10jEphdBFOu6ZZQmSeBs3z","a2MjXRFdtLlYQ5ouAFv/+R","e5N4U/fdJDP7EIQ6GrCaVv","b8nYBWqRFFm6W9ONFNUD7C","8fjHmUGH5DnrGqgruYvYar","82nQe40gpGGLBfTRrGc7FO","8e8ut3kpRBhpKmX4dq0oBB","a8ok1LbyZDWKL7JK1OVhjE","23FwyEU6VHPL4kx+ue0b+s"],["node","_spriteFrame","_parent","_N$file","root","scene"],[["cc.Node",["_name","_active","_id","_opacity","_components","_contentSize","_parent","_trs","_prefab","_children"],-1,9,5,1,7,4,2],["cc.Widget",["_alignFlags","_originalWidth","_originalHeight","alignMode","_left","_top","_bottom","node"],-4,1],["cc.Sprite",["_sizeMode","_enabled","_type","node","_materials","_spriteFrame"],0,1,3,6],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Scene",["_name","_active","_children","_anchorPoint","_trs"],1,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.Button",["node"],3,1],["cc.PrefabInfo",["fileId","root"],2,1],["cc.Layout",["_enabled","node","_layoutSize"],2,1,5],["cc.Label",["_string","_isSystemFontUsed","_N$horizontalAlign","_N$verticalAlign","node","_materials","_N$file"],-1,1,3,6],["ff0e9h++NlKOLbC+Bu/RH2+",["node"],3,1],["cc.Canvas",["_fitHeight","node","_designResolution"],2,1,5],["96526IQf8RNELRT3dR6wRPt",["node"],3,1]],[[7,0,1,2],[2,3,4,5,1],[0,0,6,4,8,5,7,2],[2,0,3,4,5,2],[6,0,1],[0,0,6,4,5,2],[0,0,6,4,5,7,2],[0,0,6,9,4,8,5,7,2],[2,1,2,0,3,4,5,4],[3,0,1,3],[4,0,1,2,3,4,3],[0,0,2,9,4,5,7,3],[0,0,9,4,8,5,7,2],[0,0,3,6,4,8,5,7,3],[0,0,1,6,4,8,5,3],[0,0,1,6,4,5,3],[5,0,1,2,3],[1,0,1,2,7,4],[1,3,4,5,1,2,7,6],[1,0,6,1,7,4],[1,0,7,2],[8,0,1,2,2],[9,0,1,2,3,4,5,6,5],[10,0,1],[11,0,1,2,2],[12,0,1]],[[9,"cc_mz_004",null],[12,"bgBottom",[-4,-5,-6,-7,-8,-9],[[3,0,-2,[22],23],[23,-3]],[0,"b4DhAnBsxPoJbGH3BcGt5i",-1],[5,1280,132],[0,-360,0,0,0,0,1,1,1,1]],[11,"Canvas","a5esZu+45LA5mBpvttspPD",[-13,-14,-15,-16,1,-17],[[24,false,-10,[5,1280,720]],[20,45,-11],[25,-12]],[5,1280,720],[640,360,0,0,0,0,1,1,1,1]],[7,"pageDown",1,[-21],[[8,false,1,0,-18,[18],19],[21,false,-19,[5,40,40]],[4,-20]],[0,"295OcbmFNPGKH4Ej0r/d1D",1],[5,40,40],[618.054,-43.563,0,0,0,0,1,1,1,1]],[7,"pageUp",1,[-24],[[8,false,1,0,-22,[14],15],[4,-23]],[0,"a9Fom8DbRPSZOeMw0Jqr8X",1],[5,40,40],[618.054,-2.429,0,0,0,0,1,1,1,1]],[5,"Main Camera",2,[[16,7,-1,-25],[17,45,1280,720,-26]],[5,1280,720]],[5,"bg",2,[[3,0,-27,[0],1],[18,2,282.5,2.5,715,715,-28]],[5,715,715]],[6,"bgPoint",2,[[3,0,-29,[2],3],[19,44,-10,1280,-30]],[5,1280,720],[0,-10,0,0,0,0,1,1,1,1]],[13,"btn",0,1,[[3,0,-31,[6],7],[4,-32]],[0,"084fApz9JAurWaytg+oJAF",1],[5,70,50],[1.55,33.325,0,0,0,0,1,1,1,1]],[10,"New Node",false,[2],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[6,"bgWhite",2,[[1,-33,[4],5]],[5,1280,640],[0,38.789,0,0,0,0,1,1,1,1]],[2,"arrowUp",1,[[1,-34,[8],9]],[0,"edRAfQIkFF1YKIsDN8VNAl",1],[5,24,18],[0,33,0,0,0,0,1,1,1,1]],[2,"arrowDown",1,[[1,-35,[10],11]],[0,"d7byJPt2FE3KHHfVE1bP90",1],[5,24,18],[0,33,0,0,0,0,1,0,0,1]],[2,"spr",4,[[1,-36,[12],13]],[0,"7aCx+Zp2ROf6cAIGRgh4ap",1],[5,22,23],[0,-3,0,0,0,0,1,1,1,1]],[2,"spr",3,[[1,-37,[16],17]],[0,"acNVn9rVVHIrqRc23p2mf8",1],[5,22,23],[0,3,0,0,0,0,1,1,1,1]],[14,"font",false,1,[[22,"Label",false,1,1,-38,[20],21]],[0,"352OaAKCxOMYj+KGjjLk/4",1],[5,122.85,50.4]],[15,"circle",false,2,[[1,-39,[24],25]],[5,1026,1026]]],0,[0,4,1,0,0,1,0,0,1,0,-1,8,0,-2,11,0,-3,12,0,-4,4,0,-5,3,0,-6,15,0,0,2,0,0,2,0,0,2,0,-1,5,0,-2,6,0,-3,7,0,-4,10,0,-6,16,0,0,3,0,0,3,0,0,3,0,-1,14,0,0,4,0,0,4,0,-1,13,0,0,5,0,0,5,0,0,6,0,0,6,0,0,7,0,0,7,0,0,8,0,0,8,0,0,10,0,0,11,0,0,12,0,0,13,0,0,14,0,0,15,0,0,16,0,5,9,1,2,2,2,2,9,39],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,3,-1,1,-1,1],[0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,1,0,9,0,1,0,10,0,11,0,12]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["0,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["0,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["1,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,["35MdfsfclJvb6Ukmd9ybfA"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"bg","rect":[0,0,715,715],"offset":[0,0],"originalSize":[715,715],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
\ No newline at end of file
[1,["c8Gskh2AlF1Zhou/3P22sh"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"page_down","rect":[0,0,22,23],"offset":[0,0],"originalSize":[22,23],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["0,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
[1,0,0,[["cc.TTFFont",["_name","_native"],1]],[[0,0,1,3]],[[0,"KGMissKindyMarker","KGMissKindyMarker.ttf"],-1],0,0,[],[],[]]
\ No newline at end of file
[1,["8bAJ+sKehJ1J1k2EgZ9QAz"],["_textureSetter"],["cc.SpriteFrame"],0,[{"name":"page_up","rect":[0,0,22,23],"offset":[0,0],"originalSize":[22,23],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]
\ No newline at end of file
[1,["ecpdLyjvZBwrvm+cedCcQy","9bvaMerUlDyary99mJa6xp","a2MjXRFdtLlYQ5ouAFv/+R","e5N4U/fdJDP7EIQ6GrCaVv","b8nYBWqRFFm6W9ONFNUD7C","8fjHmUGH5DnrGqgruYvYar","82nQe40gpGGLBfTRrGc7FO","8e8ut3kpRBhpKmX4dq0oBB","a8ok1LbyZDWKL7JK1OVhjE"],["node","_spriteFrame","_N$file","root","data"],[["cc.Node",["_name","_active","_opacity","_components","_prefab","_contentSize","_trs","_parent","_children"],0,9,4,5,7,1,2],["cc.Sprite",["_sizeMode","_enabled","_type","node","_materials","_spriteFrame"],0,1,3,6],["cc.Prefab",["_name"],2],["cc.Button",["node"],3,1],["cc.PrefabInfo",["fileId","root"],2,1],["cc.Layout",["_enabled","node","_layoutSize"],2,1,5],["cc.Label",["_string","_isSystemFontUsed","_N$horizontalAlign","_N$verticalAlign","node","_materials","_N$file"],-1,1,3,6],["ff0e9h++NlKOLbC+Bu/RH2+",["node"],3,1]],[[4,0,1,2],[1,3,4,5,1],[0,0,7,3,4,5,6,2],[3,0,1],[0,0,7,8,3,4,5,6,2],[1,0,3,4,5,2],[1,1,2,0,3,4,5,4],[2,0,2],[0,0,8,3,4,5,6,2],[0,0,2,7,3,4,5,6,3],[0,0,1,7,3,4,5,6,3],[0,0,1,7,3,4,5,3],[5,0,1,2,2],[6,0,1,2,3,4,5,6,5],[7,0,1]],[[7,"bgBottom"],[8,"bgBottom",[-4,-5,-6,-7,-8,-9],[[5,0,-2,[16],17],[14,-3]],[0,"b4DhAnBsxPoJbGH3BcGt5i",-1],[5,1280,132],[0,-360,0,0,0,0,1,1,1,1]],[4,"pageDown",1,[-13],[[6,false,1,0,-10,[12],13],[12,false,-11,[5,40,40]],[3,-12]],[0,"295OcbmFNPGKH4Ej0r/d1D",1],[5,40,40],[618.054,-43.563,0,0,0,0,1,1,1,1]],[4,"pageUp",1,[-16],[[6,false,1,0,-14,[8],9],[3,-15]],[0,"a9Fom8DbRPSZOeMw0Jqr8X",1],[5,40,40],[618.054,-2.429,0,0,0,0,1,1,1,1]],[9,"btn",0,1,[[5,0,-17,[0],1],[3,-18]],[0,"084fApz9JAurWaytg+oJAF",1],[5,70,50],[1.55,33.325,0,0,0,0,1,1,1,1]],[2,"arrowUp",1,[[1,-19,[2],3]],[0,"edRAfQIkFF1YKIsDN8VNAl",1],[5,24,18],[0,33,0,0,0,0,1,1,1,1]],[10,"arrowDown",false,1,[[1,-20,[4],5]],[0,"d7byJPt2FE3KHHfVE1bP90",1],[5,24,18],[0,33,0,0,0,0,1,1,1,1]],[2,"spr",3,[[1,-21,[6],7]],[0,"7aCx+Zp2ROf6cAIGRgh4ap",1],[5,22,23],[0,-3,0,0,0,0,1,1,1,1]],[2,"spr",2,[[1,-22,[10],11]],[0,"acNVn9rVVHIrqRc23p2mf8",1],[5,22,23],[0,3,0,0,0,0,1,1,1,1]],[11,"font",false,1,[[13,"Label",false,1,1,-23,[14],15]],[0,"352OaAKCxOMYj+KGjjLk/4",1],[5,122.85,50.4]]],0,[0,3,1,0,0,1,0,0,1,0,-1,4,0,-2,5,0,-3,6,0,-4,3,0,-5,2,0,-6,9,0,0,2,0,0,2,0,0,2,0,-1,8,0,0,3,0,0,3,0,-1,7,0,0,4,0,0,4,0,0,5,0,0,6,0,0,7,0,0,8,0,0,9,0,4,1,23],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,2,-1,1],[0,2,0,3,0,4,0,5,0,1,0,6,0,1,0,7,0,8]]
\ No newline at end of file
[1,0,0,["cc.Texture2D"],0,["0,9729,9729,33071,33071,0,0,1",-1],[0],0,[],[],[]]
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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