Deploy website - based on b241545287

This commit is contained in:
SmallMain
2022-06-23 18:09:23 +08:00
parent 47c8be2ffb
commit 8eda0a5ca4
501 changed files with 228352 additions and 215 deletions

BIN
demo/.DS_Store vendored Normal file

Binary file not shown.

BIN
demo/jsb-link/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,7 @@
{
"engine_version": "2.4.9",
"has_native": true,
"project_type": "js",
"projectName": "Cocos-Service-Pack-Demo",
"packageName": "org.cocos2d.demo"
}

View File

@@ -0,0 +1,274 @@
{
"paths": {
"3e30KyALhNkZttyuW0A6EU": [
"effects/custom-2d-sprite",
"cc.EffectAsset"
],
"e8ql4cBzBOvoGh5/oNub59": [
"fonts/SFNSMonoItalic",
"cc.TTFFont"
],
"45vlnzVlVDaZ6fRVyB0t3Z": [
"fonts/normalFont",
"cc.Texture2D"
],
"80AR/OlBFOoajT99htLYeJ": [
"fonts/normalFont",
"cc.BitmapFont"
],
"92aqwImq1Ik7GrBSFnKTF2": [
"fonts/normalFont",
"cc.SpriteFrame",
1
],
"a7ZscqX+JCIZRS157bMyhq": [
"images/1655112479313",
"cc.SpriteFrame",
1
],
"c1Hf3Sl8ZAnJwP/fpoHxap": [
"images/1655112479313",
"cc.Texture2D"
],
"62MQQadaVK8qQN8n6UmJAa": [
"images/1655112514006",
"cc.Texture2D"
],
"85yTK+9shIo7RQfQ1TDEUi": [
"images/1655112514006",
"cc.SpriteFrame",
1
],
"09o3P/9gBP/Yc7AnxUBZ+Q": [
"images/1655112526123",
"cc.SpriteFrame",
1
],
"39jYWzSTREwI2OOBK5nwFe": [
"images/1655112526123",
"cc.Texture2D"
],
"70VXjGE0JMUqGli0jmCmTF": [
"images/1655112538161",
"cc.SpriteFrame",
1
],
"d0bST/wYpJQIL5T+PCq46W": [
"images/1655112538161",
"cc.Texture2D"
],
"68Q/ALDvRLfKrAQu5CY15V": [
"images/1655112548981",
"cc.Texture2D"
],
"87/8ZHBEVIkKeNxmalrn9r": [
"images/1655112548981",
"cc.SpriteFrame",
1
],
"70JFWsm5JN17FDywI0Lb5I": [
"images/1655112563832",
"cc.Texture2D"
],
"d0Bu8c2MBCKJc+mKBWzjsJ": [
"images/1655112563832",
"cc.SpriteFrame",
1
],
"1cijzBpFJCdoSNK98w5oUq": [
"images/1655112624336",
"cc.Texture2D"
],
"8029xEf4FHy49dWo6NK8c7": [
"images/1655112624336",
"cc.SpriteFrame",
1
],
"34Wm35ZlJBApgKytyVFWhX": [
"images/1655799093442",
"cc.SpriteFrame",
1
],
"a97PGbCjtNjr/hYUBJUJ3p": [
"images/1655799093442",
"cc.Texture2D"
],
"2cDGL4OAVN0ZbEl3w2urT8": [
"materials/custom-2d-sprite",
"cc.Material"
],
"69Fj/0+E5NeI6nlG9iAH/N": [
"spines/huatuo",
"cc.Asset"
],
"80ThG1v09KeKxKhEPnFmvh": [
"spines/huatuo",
"cc.Texture2D"
],
"93dM6KrkZCf5dgNpQwf7T6": [
"spines/huatuo",
"sp.SkeletonData"
],
"b5ObM0rx1GDKGN3k5VlH0s": [
"spines/huatuo",
"cc.SpriteFrame",
1
],
"b6OkwTsm1LK5cvRTwFehiy": [
"spines/spineboy",
"cc.TextAsset"
],
"bc2ZOJo5NCbrI0FXxitEvE": [
"spines/spineboy",
"sp.SkeletonData"
],
"d9xFMK7wVFwbAS60aG9McP": [
"spines/spineboy",
"cc.Texture2D"
],
"f2P0YcCjtHDqebnuMp4CMZ": [
"spines/spineboy",
"cc.SpriteFrame",
1
]
},
"uuids": [
"09o3P/9gBP/Yc7AnxUBZ+Q",
"1cijzBpFJCdoSNK98w5oUq",
"2cDGL4OAVN0ZbEl3w2urT8",
"34Wm35ZlJBApgKytyVFWhX",
"39jYWzSTREwI2OOBK5nwFe",
"3e30KyALhNkZttyuW0A6EU",
"45vlnzVlVDaZ6fRVyB0t3Z",
"62MQQadaVK8qQN8n6UmJAa",
"68Q/ALDvRLfKrAQu5CY15V",
"69Fj/0+E5NeI6nlG9iAH/N",
"6eBWFz0oVHPLIGQKf/9Thu",
"70JFWsm5JN17FDywI0Lb5I",
"70VXjGE0JMUqGli0jmCmTF",
"80AR/OlBFOoajT99htLYeJ",
"80ThG1v09KeKxKhEPnFmvh",
"8029xEf4FHy49dWo6NK8c7",
"85yTK+9shIo7RQfQ1TDEUi",
"87/8ZHBEVIkKeNxmalrn9r",
"92aqwImq1Ik7GrBSFnKTF2",
"93dM6KrkZCf5dgNpQwf7T6",
"a7ZscqX+JCIZRS157bMyhq",
"a97PGbCjtNjr/hYUBJUJ3p",
"b5ObM0rx1GDKGN3k5VlH0s",
"b6OkwTsm1LK5cvRTwFehiy",
"bc2ZOJo5NCbrI0FXxitEvE",
"c1Hf3Sl8ZAnJwP/fpoHxap",
"d0Bu8c2MBCKJc+mKBWzjsJ",
"d0bST/wYpJQIL5T+PCq46W",
"d9xFMK7wVFwbAS60aG9McP",
"e8ql4cBzBOvoGh5/oNub59",
"f2P0YcCjtHDqebnuMp4CMZ"
],
"scenes": {},
"redirect": [],
"deps": [],
"packs": {},
"name": "common",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"09o3P/9gBP/Yc7AnxUBZ+Q",
"eebfd",
"1cijzBpFJCdoSNK98w5oUq",
"7be92",
"2cDGL4OAVN0ZbEl3w2urT8",
"526c1",
"34Wm35ZlJBApgKytyVFWhX",
"560c7",
"39jYWzSTREwI2OOBK5nwFe",
"7be92",
"3e30KyALhNkZttyuW0A6EU",
"7f89c",
"45vlnzVlVDaZ6fRVyB0t3Z",
"7be92",
"62MQQadaVK8qQN8n6UmJAa",
"7be92",
"68Q/ALDvRLfKrAQu5CY15V",
"7be92",
"69Fj/0+E5NeI6nlG9iAH/N",
"a781b",
"6eBWFz0oVHPLIGQKf/9Thu",
"7be92",
"70JFWsm5JN17FDywI0Lb5I",
"7be92",
"70VXjGE0JMUqGli0jmCmTF",
"fac8a",
"80AR/OlBFOoajT99htLYeJ",
"becf9",
"80ThG1v09KeKxKhEPnFmvh",
"7be92",
"8029xEf4FHy49dWo6NK8c7",
"56dfc",
"85yTK+9shIo7RQfQ1TDEUi",
"2a41b",
"87/8ZHBEVIkKeNxmalrn9r",
"8fc04",
"92aqwImq1Ik7GrBSFnKTF2",
"99e2d",
"93dM6KrkZCf5dgNpQwf7T6",
"19765",
"a7ZscqX+JCIZRS157bMyhq",
"ee3e8",
"a97PGbCjtNjr/hYUBJUJ3p",
"7be92",
"b5ObM0rx1GDKGN3k5VlH0s",
"8c55c",
"b6OkwTsm1LK5cvRTwFehiy",
"75d8c",
"bc2ZOJo5NCbrI0FXxitEvE",
"6332d",
"c1Hf3Sl8ZAnJwP/fpoHxap",
"7be92",
"d0Bu8c2MBCKJc+mKBWzjsJ",
"1f6cd",
"d0bST/wYpJQIL5T+PCq46W",
"7be92",
"d9xFMK7wVFwbAS60aG9McP",
"7be92",
"e8ql4cBzBOvoGh5/oNub59",
"71945",
"f2P0YcCjtHDqebnuMp4CMZ",
"183bd"
],
"native": [
"1cijzBpFJCdoSNK98w5oUq",
"91637",
"39jYWzSTREwI2OOBK5nwFe",
"2eb47",
"45vlnzVlVDaZ6fRVyB0t3Z",
"ca872",
"62MQQadaVK8qQN8n6UmJAa",
"40d17",
"68Q/ALDvRLfKrAQu5CY15V",
"9a531",
"69Fj/0+E5NeI6nlG9iAH/N",
"b8970",
"6eBWFz0oVHPLIGQKf/9Thu",
"6d3cf",
"70JFWsm5JN17FDywI0Lb5I",
"7b3fa",
"80ThG1v09KeKxKhEPnFmvh",
"fd38c",
"a97PGbCjtNjr/hYUBJUJ3p",
"0f278",
"c1Hf3Sl8ZAnJwP/fpoHxap",
"d86d7",
"d0bST/wYpJQIL5T+PCq46W",
"9c555",
"d9xFMK7wVFwbAS60aG9McP",
"abf6b",
"e8ql4cBzBOvoGh5/oNub59",
"a6625"
]
}
}

View File

@@ -0,0 +1,51 @@
[
1,
[
"39jYWzSTREwI2OOBK5nwFe"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112526123",
"rect": [
0,
0,
656,
992
],
"offset": [
0,
0
],
"originalSize": [
656,
992
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,83 @@
[
1,
[
"62MQQadaVK8qQN8n6UmJAa",
"6eBWFz0oVHPLIGQKf/9Thu",
"3e30KyALhNkZttyuW0A6EU"
],
[
"texture",
"texture2",
"_effectAsset"
],
[
[
"cc.Material",
[
"_name",
"_techniqueData"
],
2,
11
]
],
[
[
0,
0,
1,
2
]
],
[
[
0,
"custom-2d-sprite",
[
{},
"0",
11,
[
{
"defines": {
"USE_TEXTURE": true,
"USE_MULTI_TEXTURE": true
}
},
"props",
11,
[
{
"blur": 0.01,
"wh_ratio": 1,
"radius": 0.45
},
"texture",
6,
0,
"texture2",
6,
1
]
]
]
]
],
0,
0,
[
0,
0,
0
],
[
0,
1,
2
],
[
0,
1,
2
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"a97PGbCjtNjr/hYUBJUJ3p"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655799093442",
"rect": [
0,
0,
306,
262
],
"offset": [
0,
0
],
"originalSize": [
306,
262
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,385 @@
[
1,
0,
0,
[
[
"cc.EffectAsset",
[
"_name",
"shaders",
"techniques"
],
0
]
],
[
[
0,
0,
1,
2,
4
]
],
[
[
0,
"custom-2d-sprite",
[
{
"hash": 2734998855,
"record": null,
"name": "custom-2d-sprite|vs|fs",
"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#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\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 #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\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#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform ARGS{\n float radius;\n float blur;\n vec2 center;\n float wh_ratio;\n};\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 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 o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\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 #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\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#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\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 #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\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#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nuniform float radius;\nuniform float blur;\nuniform vec2 center;\nuniform float wh_ratio;\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 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 o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\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 #endif\n o *= v_color;\n ALPHA_TEST(o);\n float circle = radius * radius;\n float rx = center.x * wh_ratio;\n float ry = center.y;\n float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);\n o.a = smoothstep(circle, circle - blur, dis);\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": "USE_MULTI_TEXTURE",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"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"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture2",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture3",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture4",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture5",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture6",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture7",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture8",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"binding": 0,
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
]
},
{
"name": "ARGS",
"binding": 1,
"members": [
{
"name": "radius",
"type": 13,
"count": 1
},
{
"name": "blur",
"type": 13,
"count": 1
},
{
"name": "center",
"type": 14,
"count": 1
},
{
"name": "wh_ratio",
"type": 13,
"count": 1
}
],
"defines": []
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"binding": 30,
"defines": [
"USE_TEXTURE"
]
},
{
"name": "texture2",
"type": 29,
"count": 1,
"binding": 31,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture3",
"type": 29,
"count": 1,
"binding": 32,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture4",
"type": 29,
"count": 1,
"binding": 33,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture5",
"type": 29,
"count": 1,
"binding": 34,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture6",
"type": 29,
"count": 1,
"binding": 35,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture7",
"type": 29,
"count": 1,
"binding": 36,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture8",
"type": 29,
"count": 1,
"binding": 37,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
]
}
],
[
{
"passes": [
{
"program": "custom-2d-sprite|vs|fs",
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"texture2": {
"value": "white",
"type": 29
},
"texture3": {
"value": "white",
"type": 29
},
"texture4": {
"value": "white",
"type": 29
},
"texture5": {
"value": "white",
"type": 29
},
"texture6": {
"value": "white",
"type": 29
},
"texture7": {
"value": "white",
"type": 29
},
"texture8": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"type": 13,
"value": [
0.5
]
},
"wh_ratio": {
"type": 13,
"value": [
1
],
"editor": {
"tooltip": "宽高比"
}
},
"blur": {
"type": 13,
"value": [
0.35
],
"editor": {
"tooltip": "光圈模糊程度"
}
},
"radius": {
"type": 13,
"value": [
0.5
],
"editor": {
"tooltip": "光圈半径"
}
},
"center": {
"type": 14,
"value": [
0.5,
0.5
],
"editor": {
"tooltip": "光圈起点"
}
}
}
}
]
}
]
]
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,36 @@
[
1,
0,
0,
[
[
"cc.Asset",
[
"_name",
"_native"
],
1
]
],
[
[
0,
0,
1,
3
]
],
[
[
0,
"huatuo",
".atlas"
],
-1
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"d0bST/wYpJQIL5T+PCq46W"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112538161",
"rect": [
0,
0,
596,
672
],
"offset": [
0,
0
],
"originalSize": [
596,
672
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"1cijzBpFJCdoSNK98w5oUq"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112624336",
"rect": [
0,
0,
564,
882
],
"offset": [
0,
0
],
"originalSize": [
564,
882
],
"capInsets": [
192,
176,
198,
155
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"62MQQadaVK8qQN8n6UmJAa"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112514006",
"rect": [
0,
0,
556,
606
],
"offset": [
0,
0
],
"originalSize": [
556,
606
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"68Q/ALDvRLfKrAQu5CY15V"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112548981",
"rect": [
0,
0,
396,
570
],
"offset": [
0,
0
],
"originalSize": [
396,
570
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"45vlnzVlVDaZ6fRVyB0t3Z"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "normalFont",
"rect": [
2,
2,
737,
742
],
"offset": [
-0.5,
20
],
"originalSize": [
742,
786
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"c1Hf3Sl8ZAnJwP/fpoHxap"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112479313",
"rect": [
0,
0,
402,
370
],
"offset": [
0,
0
],
"originalSize": [
402,
370
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"80ThG1v09KeKxKhEPnFmvh"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "huatuo",
"rect": [
5,
0,
696,
208
],
"offset": [
2.5,
0
],
"originalSize": [
701,
208
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,35 @@
[
1,
0,
0,
[
[
"cc.TextAsset",
[
"_name",
"text"
],
1
]
],
[
[
0,
0,
1,
3
]
],
[
[
0,
"spineboy",
"\nspineboy.png\nsize:1024,256\nformat: RGBA8888\nfilter: Linear,Linear\nrepeat: none\neye_indifferent\n rotate: true\n xy: 389, 5\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\neye_surprised\n rotate: false\n xy: 580, 34\n size: 56, 53\n orig: 56, 53\n offset: 0, 0\n index: -1\nfront_bracer\n rotate: false\n xy: 732, 85\n size: 35, 48\n orig: 35, 48\n offset: 0, 0\n index: -1\nfront_fist_closed\n rotate: false\n xy: 556, 91\n size: 45, 49\n orig: 45, 49\n offset: 0, 0\n index: -1\nfront_fist_open\n rotate: false\n xy: 668, 32\n size: 52, 52\n orig: 52, 52\n offset: 0, 0\n index: -1\nfront_foot\n rotate: false\n xy: 924, 201\n size: 76, 41\n orig: 76, 41\n offset: 0, 0\n index: -1\nfront_foot_bend1\n rotate: false\n xy: 845, 200\n size: 77, 42\n orig: 77, 42\n offset: 0, 0\n index: -1\nfront_foot_bend2\n rotate: false\n xy: 778, 186\n size: 65, 56\n orig: 65, 56\n offset: 0, 0\n index: -1\nfront_shin\n rotate: true\n xy: 444, 91\n size: 49, 110\n orig: 49, 110\n offset: 0, 0\n index: -1\nfront_thigh\n rotate: true\n xy: 603, 89\n size: 29, 67\n orig: 29, 67\n offset: 0, 0\n index: -1\nfront_upper_arm\n rotate: true\n xy: 672, 86\n size: 32, 58\n orig: 32, 58\n offset: 0, 0\n index: -1\ngoggles\n rotate: false\n xy: 444, 142\n size: 157, 100\n orig: 157, 100\n offset: 0, 0\n index: -1\ngun\n rotate: false\n xy: 603, 120\n size: 126, 122\n orig: 126, 122\n offset: 0, 0\n index: -1\nhead\n rotate: false\n xy: 279, 63\n size: 163, 179\n orig: 163, 179\n offset: 0, 0\n index: -1\nmouth_grind\n rotate: false\n xy: 845, 163\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_oooo\n rotate: false\n xy: 842, 126\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmouth_smile\n rotate: false\n xy: 769, 97\n size: 56, 35\n orig: 56, 35\n offset: 0, 0\n index: -1\nmuzzle\n rotate: false\n xy: 2, 2\n size: 275, 240\n orig: 277, 240\n offset: 0, 0\n index: -1\nneck\n rotate: false\n xy: 903, 173\n size: 22, 25\n orig: 22, 25\n offset: 0, 0\n index: -1\nrear_bracer\n rotate: false\n xy: 722, 40\n size: 34, 43\n orig: 34, 43\n offset: 0, 0\n index: -1\nrear_foot\n rotate: false\n xy: 444, 11\n size: 68, 36\n orig: 68, 36\n offset: 0, 0\n index: -1\nrear_foot_bend1\n rotate: false\n xy: 444, 49\n size: 70, 40\n orig: 70, 40\n offset: 0, 0\n index: -1\nrear_foot_bend2\n rotate: false\n xy: 778, 134\n size: 62, 50\n orig: 62, 50\n offset: 0, 0\n index: -1\nrear_shin\n rotate: false\n xy: 731, 135\n size: 45, 107\n orig: 45, 107\n offset: 0, 0\n index: -1\nrear_thigh\n rotate: true\n xy: 516, 50\n size: 39, 62\n orig: 39, 62\n offset: 0, 0\n index: -1\nrear_upper_arm\n rotate: false\n xy: 638, 35\n size: 28, 52\n orig: 28, 52\n offset: 0, 0\n index: -1\ntorso\n rotate: true\n xy: 279, 2\n size: 59, 108\n orig: 59, 108\n offset: 0, 0\n index: -1\n"
]
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"70JFWsm5JN17FDywI0Lb5I"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "1655112563832",
"rect": [
0,
0,
660,
554
],
"offset": [
0,
0
],
"originalSize": [
660,
554
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,36 @@
[
1,
0,
0,
[
[
"cc.TTFFont",
[
"_name",
"_native"
],
1
]
],
[
[
0,
0,
1,
3
]
],
[
[
0,
"SFNSMonoItalic",
"SFNSMonoItalic.ttf"
],
-1
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"d9xFMK7wVFwbAS60aG9McP"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "spineboy",
"rect": [
2,
2,
998,
240
],
"offset": [
-11,
6
],
"originalSize": [
1024,
256
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,29 @@
(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;
})({}, {}, []);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

View File

@@ -0,0 +1,209 @@
huatuo.png
size: 701,208
format: RGBA8888
filter: Linear,Linear
repeat: none
Body
rotate: false
xy: 487, 72
size: 90, 91
orig: 90, 91
offset: 0, 0
index: -1
Eye
rotate: false
xy: 473, 44
size: 45, 24
orig: 45, 24
offset: 0, 0
index: -1
Eye-beiji
rotate: false
xy: 360, 60
size: 57, 23
orig: 57, 23
offset: 0, 0
index: -1
Eye-fennu
rotate: false
xy: 570, 39
size: 39, 21
orig: 39, 21
offset: 0, 0
index: -1
Eye-shengli
rotate: false
xy: 421, 64
size: 45, 19
orig: 45, 19
offset: 0, 0
index: -1
Eye-siwang
rotate: false
xy: 522, 48
size: 44, 20
orig: 44, 20
offset: 0, 0
index: -1
Head
rotate: false
xy: 581, 64
size: 89, 99
orig: 89, 99
offset: 0, 0
index: -1
L-Forearm
rotate: false
xy: 613, 29
size: 32, 31
orig: 32, 31
offset: 0, 0
index: -1
L-Hand
rotate: false
xy: 674, 150
size: 27, 26
orig: 27, 26
offset: 0, 0
index: -1
L-Lowerleg
rotate: false
xy: 674, 117
size: 26, 29
orig: 26, 29
offset: 0, 0
index: -1
L-Thigh
rotate: false
xy: 649, 25
size: 29, 35
orig: 29, 35
offset: 0, 0
index: -1
L-Upperarm
rotate: false
xy: 318, 7
size: 50, 49
orig: 50, 49
offset: 0, 0
index: -1
Mouth
rotate: false
xy: 682, 36
size: 18, 10
orig: 18, 10
offset: 0, 0
index: -1
Mouth-beiji
rotate: false
xy: 470, 72
size: 13, 11
orig: 13, 11
offset: 0, 0
index: -1
Mouth-fennu
rotate: false
xy: 674, 66
size: 22, 17
orig: 22, 17
offset: 0, 0
index: -1
Mouth-shengli
rotate: false
xy: 581, 17
size: 20, 18
orig: 20, 18
offset: 0, 0
index: -1
Mouth-siwang
rotate: false
xy: 682, 50
size: 18, 12
orig: 18, 12
offset: 0, 0
index: -1
Pelvis
rotate: false
xy: 641, 180
size: 43, 28
orig: 43, 28
offset: 0, 0
index: -1
R-Forearm
rotate: false
xy: 473, 9
size: 38, 31
orig: 38, 31
offset: 0, 0
index: -1
R-Hand
rotate: false
xy: 549, 12
size: 28, 23
orig: 28, 23
offset: 0, 0
index: -1
R-Lowerleg
rotate: false
xy: 674, 87
size: 26, 26
orig: 26, 26
offset: 0, 0
index: -1
R-Thigh
rotate: false
xy: 515, 4
size: 30, 36
orig: 30, 36
offset: 0, 0
index: -1
R-Upperarm
rotate: false
xy: 431, 12
size: 38, 48
orig: 38, 48
offset: 0, 0
index: -1
SE-daoguang
rotate: false
xy: 0, 0
size: 239, 208
orig: 239, 208
offset: 0, 0
index: -1
SE-guang
rotate: false
xy: 360, 87
size: 123, 121
orig: 123, 121
offset: 0, 0
index: -1
Weapon
rotate: false
xy: 243, 10
size: 71, 46
orig: 71, 46
offset: 0, 0
index: -1
beilou
rotate: false
xy: 243, 60
size: 113, 148
orig: 113, 148
offset: 0, 0
index: -1
hulu
rotate: false
xy: 372, 4
size: 55, 52
orig: 55, 52
offset: 0, 0
index: -1
shadow
rotate: false
xy: 487, 167
size: 150, 41
orig: 150, 41
offset: 0, 0
index: -1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

View File

@@ -0,0 +1,95 @@
{
"paths": {
"e3EaADwKFP+ZmDIVTeFF63": [
"home",
"cc.Prefab"
]
},
"uuids": [
"02kcE0s9pAmLe145ftvpR/",
"29FYIk+N1GYaeWH/q1NxQO",
"312JYturtOx74Zjp9UpOqZ",
"34Wm35ZlJBApgKytyVFWhX",
"56fc2Ai/RFNYpaMT8crweK",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"68J8oyAQdFUrqy37MXmbtE",
"71VhFCTINJM6/Ky3oX9nBT",
"73oJA92A5OPKpn+ZlUPAj1",
"7a/QZLET9IDreTiBfRn2PD",
"90AErWL21A4ZPvtxQ3XG8G",
"93dM6KrkZCf5dgNpQwf7T6",
"a2MjXRFdtLlYQ5ouAFv/+R",
"d2kHe6FidKcpV5e1aiNTQM",
"e3EaADwKFP+ZmDIVTeFF63",
"e7q6FL+VZEgLJUjVeDLic/",
"ecpdLyjvZBwrvm+cedCcQy"
],
"scenes": {},
"redirect": [
"34Wm35ZlJBApgKytyVFWhX",
0,
"5cO7kybDxGj4ipyMYdRYZB",
1,
"5f5dyqtRNNxaFmVzYns6FZ",
1,
"7a/QZLET9IDreTiBfRn2PD",
2,
"93dM6KrkZCf5dgNpQwf7T6",
0,
"a2MjXRFdtLlYQ5ouAFv/+R",
1,
"ecpdLyjvZBwrvm+cedCcQy",
2
],
"deps": [
"common",
"main",
"internal"
],
"packs": {},
"name": "home",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"02kcE0s9pAmLe145ftvpR/",
"7be92",
"29FYIk+N1GYaeWH/q1NxQO",
"22d68",
"312JYturtOx74Zjp9UpOqZ",
"4bc74",
"56fc2Ai/RFNYpaMT8crweK",
"7be92",
"68J8oyAQdFUrqy37MXmbtE",
"13090",
"71VhFCTINJM6/Ky3oX9nBT",
"7be92",
"73oJA92A5OPKpn+ZlUPAj1",
"7be92",
"90AErWL21A4ZPvtxQ3XG8G",
"9fda3",
"d2kHe6FidKcpV5e1aiNTQM",
"7be92",
"e3EaADwKFP+ZmDIVTeFF63",
"7fa62",
"e7q6FL+VZEgLJUjVeDLic/",
"4ed63"
],
"native": [
"02kcE0s9pAmLe145ftvpR/",
"b7a3e",
"56fc2Ai/RFNYpaMT8crweK",
"5f1d9",
"71VhFCTINJM6/Ky3oX9nBT",
"c06a9",
"73oJA92A5OPKpn+ZlUPAj1",
"7661e",
"d2kHe6FidKcpV5e1aiNTQM",
"65417"
]
}
}

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"71VhFCTINJM6/Ky3oX9nBT"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_btn_disabled",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"02kcE0s9pAmLe145ftvpR/"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_scrollbar",
"rect": [
0,
0,
30,
15
],
"offset": [
0,
0
],
"originalSize": [
30,
15
],
"capInsets": [
10,
4,
10,
4
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"d2kHe6FidKcpV5e1aiNTQM"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_toggle_normal",
"rect": [
0,
0,
28,
28
],
"offset": [
0,
0
],
"originalSize": [
28,
28
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"73oJA92A5OPKpn+ZlUPAj1"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_toggle_checkmark",
"rect": [
4,
5,
20,
18
],
"offset": [
0,
0
],
"originalSize": [
28,
28
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"56fc2Ai/RFNYpaMT8crweK"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_radio_button_off",
"rect": [
3,
3,
26,
26
],
"offset": [
0,
0
],
"originalSize": [
32,
32
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,135 @@
window.__require = 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;
}({
home: [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "fae4avBZoFIhLI0tl2YbZCe", "home");
"use strict";
var __extends = this && this.__extends || function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
};
return extendStatics(d, b);
};
return function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", {
value: true
});
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var Home = function(_super) {
__extends(Home, _super);
function Home() {
var _this = null !== _super && _super.apply(this, arguments) || this;
_this.objectNumLabel = null;
_this.objectNumSlider = null;
_this.enbaleMultiNode = null;
_this.objects = null;
_this.nums = [ 10, 1e4 ];
_this.num = _this.nums[0];
_this.enableMultiRender = true;
_this.prefabs = [];
return _this;
}
Home.prototype.onLoad = function() {
var _this = this;
this.prefabs = this.objects.children.concat();
this.objects.removeAllChildren(false);
this.objectNumSlider.node.on("slide", function(slider) {
var offset = (_this.nums[1] - _this.nums[0]) * slider.progress;
_this.num = _this.nums[0] + Math.ceil(offset);
_this.numUpdate();
});
this.enbaleMultiNode.on("toggle", function(toggle) {
_this.enableMultiRender = toggle.isChecked;
_this.multiRenderUpdate();
});
this.objectNumSlider.progress = .02;
var offset = (this.nums[1] - this.nums[0]) * this.objectNumSlider.progress;
this.num = this.nums[0] + Math.ceil(offset);
this.numUpdate();
this.multiRenderUpdate();
};
Home.prototype.numUpdate = function() {
this.objectNumLabel.string = "\u5bf9\u8c61\u6570\u91cf\uff1a" + this.num;
var offset = this.num - this.objects.children.length;
if (offset > 0) for (var i = 0; i < offset; i++) this.createObject(); else {
offset = -offset;
for (var i = 0; i < offset; i++) this.objects.children[i].destroy();
}
};
Home.prototype.multiRenderUpdate = function() {
this.reCreateObjects();
};
Home.prototype.reCreateObjects = function() {
this.objects.destroyAllChildren();
for (var i = 0; i < this.num; i++) this.createObject();
};
Home.prototype.createObject = function() {
var _a, _b, _c;
var random = Math.floor(Math.random() * this.prefabs.length);
var node = cc.instantiate(this.prefabs[random]);
if (this.enableMultiRender) {
var comp = null !== (_c = null !== (_b = null !== (_a = node.getComponent(cc.Label)) && void 0 !== _a ? _a : node.getComponent(cc.Sprite)) && void 0 !== _b ? _b : node.getComponent(cc.RichText)) && void 0 !== _c ? _c : node.getComponent(sp.Skeleton);
comp.autoSwitchMaterial = cc.RenderComponent.EnableType.ENABLE;
comp.allowDynamicAtlas = cc.RenderComponent.EnableType.ENABLE;
}
this.objects.addChild(node);
node.position = cc.v3(Math.floor(Math.random() * this.objects.width), Math.floor(Math.random() * this.objects.height));
cc.tween(node).by(3, {
angle: 360
}).repeatForever().start();
};
__decorate([ property(cc.Label) ], Home.prototype, "objectNumLabel", void 0);
__decorate([ property(cc.Slider) ], Home.prototype, "objectNumSlider", void 0);
__decorate([ property(cc.Node) ], Home.prototype, "enbaleMultiNode", void 0);
__decorate([ property(cc.Node) ], Home.prototype, "objects", void 0);
Home = __decorate([ ccclass ], Home);
return Home;
}(cc.Component);
exports.default = Home;
cc._RF.pop();
}, {} ]
}, {}, [ "home" ]);
//# sourceMappingURL=index.js.map

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,133 @@
{
"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"
],
"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"
],
"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",
"46bU+b5fROqIXVPG6aZWWK",
"6dkeWRTOBGXICfYQ7JUBnG",
"6fgBCSDDdPMInvyNlggls2",
"7a/QZLET9IDreTiBfRn2PD",
"a1U5RdJRFMFL57BdJC9H1X",
"c0BAyVxX9JzZy8EjFrc9DU",
"cffgu4qBxEqa150o1DmRAy",
"e0LYfU5ZlNFoAB4UiRrGUG",
"ecpdLyjvZBwrvm+cedCcQy",
"f1h0LXVtJOta5JLZ1xCzfI"
],
"scenes": {},
"redirect": [],
"deps": [],
"packs": {
"0967b326a": [
"02delMVqdBD70a/HSD99FK",
"0ek66qC1NOQLjgYmi04HvX",
"14TDKXr2NJ6LjvHPops74o",
"28dPjdQWxEQIG3VVl1Qm6T",
"2aKWBXJHxKHLvrBUi2yYZQ",
"2afAA24LNP4YmYiaVLiivs",
"30aC+Hnw1PF4pEcoY3kUYb",
"3ae7efMv1CLq2ilvUY/tQi",
"46bU+b5fROqIXVPG6aZWWK",
"6dkeWRTOBGXICfYQ7JUBnG",
"6fgBCSDDdPMInvyNlggls2",
"7a/QZLET9IDreTiBfRn2PD",
"a1U5RdJRFMFL57BdJC9H1X",
"c0BAyVxX9JzZy8EjFrc9DU",
"cffgu4qBxEqa150o1DmRAy",
"e0LYfU5ZlNFoAB4UiRrGUG",
"ecpdLyjvZBwrvm+cedCcQy",
"f1h0LXVtJOta5JLZ1xCzfI"
]
},
"name": "internal",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0967b326a",
"eef84"
],
"native": [
"02delMVqdBD70a/HSD99FK",
"cea68"
]
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
(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;
})({}, {}, []);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"index.js"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@@ -0,0 +1,53 @@
{
"paths": {},
"uuids": [
"02delMVqdBD70a/HSD99FK",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"61cyPdEfRN047sDK9rO0W5",
"a2MjXRFdtLlYQ5ouAFv/+R",
"catK9m3HRBtYgmebOjC6ma",
"d608qFRoFHwbXd0Dap056i",
"ecpdLyjvZBwrvm+cedCcQy"
],
"scenes": {
"db://assets/main.fire": "catK9m3HRBtYgmebOjC6ma"
},
"redirect": [
"02delMVqdBD70a/HSD99FK",
0,
"ecpdLyjvZBwrvm+cedCcQy",
0
],
"deps": [
"internal"
],
"packs": {
"0b206e9e9": [
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"61cyPdEfRN047sDK9rO0W5",
"a2MjXRFdtLlYQ5ouAFv/+R",
"catK9m3HRBtYgmebOjC6ma",
"d608qFRoFHwbXd0Dap056i"
]
},
"name": "main",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0b206e9e9",
"4db5f"
],
"native": [
"61cyPdEfRN047sDK9rO0W5",
"6d707",
"d608qFRoFHwbXd0Dap056i",
"d55c2"
]
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,238 @@
window.__require = 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;
}({
"left-area": [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "853f5uyG5pFHpEaXeXta1ML", "left-area");
"use strict";
var __extends = this && this.__extends || function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
};
return extendStatics(d, b);
};
return function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __values = this && this.__values || function(o) {
var s = "function" === typeof Symbol && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && "number" === typeof o.length) return {
next: function() {
o && i >= o.length && (o = void 0);
return {
value: o && o[i++],
done: !o
};
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
var __read = this && this.__read || function(o, n) {
var m = "function" === typeof Symbol && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((void 0 === n || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
} catch (error) {
e = {
error: error
};
} finally {
try {
r && !r.done && (m = i["return"]) && m.call(i);
} finally {
if (e) throw e.error;
}
}
return ar;
};
Object.defineProperty(exports, "__esModule", {
value: true
});
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var LeftArea = function(_super) {
__extends(LeftArea, _super);
function LeftArea() {
var _this = null !== _super && _super.apply(this, arguments) || this;
_this.home = null;
_this.multiMaterial = null;
_this.multiBatcher = null;
_this.charMode = null;
_this.highDPI = null;
_this.spineBatch = null;
_this.spineSkin = null;
_this.mainArea = null;
_this.tick = 0;
return _this;
}
LeftArea.prototype.start = function() {
this.map = new Map([ [ this.home, {
bundle: "home",
path: "home"
} ], [ this.multiMaterial, {
bundle: "multi-render",
path: "multi-material/multi-material"
} ], [ this.multiBatcher, {
bundle: "multi-render",
path: "multi-batcher/multi-batcher"
} ], [ this.charMode, {
bundle: "text-render",
path: "char-mode/char-mode"
} ], [ this.highDPI, {
bundle: "text-render",
path: "high-dpi/high-dpi"
} ], [ this.spineBatch, {
bundle: "spine",
path: "batch/spine-batch"
} ], [ this.spineSkin, {
bundle: "spine",
path: "skin/spine-skin"
} ] ]);
this.initBtns();
this.switchPage(this.map.get(this.home));
};
LeftArea.prototype.initBtns = function() {
var e_1, _a;
var _this = this;
var _loop_1 = function(node, route) {
node.on("toggle", function(toggle) {
toggle.isChecked && _this.switchPage(route);
});
};
try {
for (var _b = __values(this.map), _c = _b.next(); !_c.done; _c = _b.next()) {
var _d = __read(_c.value, 2), node = _d[0], route = _d[1];
_loop_1(node, route);
}
} catch (e_1_1) {
e_1 = {
error: e_1_1
};
} finally {
try {
_c && !_c.done && (_a = _b.return) && _a.call(_b);
} finally {
if (e_1) throw e_1.error;
}
}
};
LeftArea.prototype.switchPage = function(route) {
var _this = this;
var cur = ++this.tick;
this.mainArea.destroyAllChildren();
route && cc.assetManager.loadBundle("common", function() {
cc.assetManager.loadBundle(route.bundle, function(err, bundle) {
err || bundle.load(route.path, cc.Prefab, function(err, prefab) {
err || cur !== _this.tick || _this.mainArea.addChild(cc.instantiate(prefab));
});
});
});
};
__decorate([ property(cc.Node) ], LeftArea.prototype, "home", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "multiMaterial", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "multiBatcher", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "charMode", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "highDPI", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "spineBatch", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "spineSkin", void 0);
__decorate([ property(cc.Node) ], LeftArea.prototype, "mainArea", void 0);
LeftArea = __decorate([ ccclass ], LeftArea);
return LeftArea;
}(cc.Component);
exports.default = LeftArea;
cc._RF.pop();
}, {} ],
main: [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "2454fZB1jNNTbYkc7ryXmr1", "main");
"use strict";
var __extends = this && this.__extends || function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
};
return extendStatics(d, b);
};
return function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", {
value: true
});
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var Main = function(_super) {
__extends(Main, _super);
function Main() {
var _this = null !== _super && _super.apply(this, arguments) || this;
_this.version = null;
return _this;
}
Main.prototype.start = function() {
this.version.string = "Version: v" + cc.sp.version + "\n";
};
__decorate([ property(cc.Label) ], Main.prototype, "version", void 0);
Main = __decorate([ ccclass ], Main);
return Main;
}(cc.Component);
exports.default = Main;
cc.sp.labelRetinaScale = 2;
cc.dynamicAtlasManager.maxFrameSize = 2048;
cc._RF.pop();
}, {} ]
}, {}, [ "left-area", "main" ]);
//# sourceMappingURL=index.js.map

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,256 @@
{
"paths": {
"77hE9EwNpMlKl/+sGrhEVR": [
"multi-batcher/images/1",
"cc.Texture2D"
],
"c4+eoUuahAOa4lmC/4Hkdi": [
"multi-batcher/images/1",
"cc.SpriteFrame",
1
],
"b6FhIxTWVHXKa7qBmehR6I": [
"multi-batcher/images/etc1_rgb_a",
"cc.Texture2D"
],
"eahTDGUrZBV4Y+i+JslTuW": [
"multi-batcher/images/etc1_rgb_a",
"cc.SpriteFrame",
1
],
"0a5R1NT2lDxqcI2pwtgfb1": [
"multi-batcher/images/png",
"cc.SpriteFrame",
1
],
"ebcqWiiDdPRaJKJIbu9ft4": [
"multi-batcher/images/png",
"cc.Texture2D"
],
"22JHeF7zBLZqnS68r2p/bo": [
"multi-batcher/images/pvrtc2_rgb_a",
"cc.Texture2D"
],
"41Zz922rlJZZmZnFZqPxVK": [
"multi-batcher/images/pvrtc2_rgb_a",
"cc.SpriteFrame",
1
],
"43jA/TdMpFA7K8IIjNbb9M": [
"multi-batcher/images/sheep_down_0",
"cc.Texture2D"
],
"8fHzmU6I5EBqjpHEb0Xl3i": [
"multi-batcher/images/sheep_down_0",
"cc.SpriteFrame",
1
],
"10Drosz6JPsKWsqV+bRh/A": [
"multi-batcher/images/sheep_jump_2",
"cc.Texture2D"
],
"2dPOEW20pCTLs79c0WyZVp": [
"multi-batcher/images/sheep_jump_2",
"cc.SpriteFrame",
1
],
"44mZ0YUdFAF56mmNytjs31": [
"multi-batcher/images/sheep_jump_3",
"cc.Texture2D"
],
"b48cuQCqRMLaIzf9I1fTbW": [
"multi-batcher/images/sheep_jump_3",
"cc.SpriteFrame",
1
],
"55URLSNf5K3IyZBezfiMKa": [
"multi-batcher/images/sheep_run_1",
"cc.SpriteFrame",
1
],
"7aeIQwZiFL1YbOCVeiFt1p": [
"multi-batcher/images/sheep_run_1",
"cc.Texture2D"
],
"14W7pBGWJJ7q7JCPsVTovy": [
"multi-batcher/multi-batcher",
"cc.Prefab"
],
"c58wUeG09DhJOcuDi8uPW/": [
"multi-material/multi-material",
"cc.Prefab"
],
"0eAM9yHrBFe4PSAXHMHNl+": [
"multi-material/test-material",
"cc.Material"
]
},
"uuids": [
"0a5R1NT2lDxqcI2pwtgfb1",
"0eAM9yHrBFe4PSAXHMHNl+",
"10Drosz6JPsKWsqV+bRh/A",
"14W7pBGWJJ7q7JCPsVTovy",
"1cijzBpFJCdoSNK98w5oUq",
"22JHeF7zBLZqnS68r2p/bo",
"29FYIk+N1GYaeWH/q1NxQO",
"2cDGL4OAVN0ZbEl3w2urT8",
"2dPOEW20pCTLs79c0WyZVp",
"41Zz922rlJZZmZnFZqPxVK",
"43jA/TdMpFA7K8IIjNbb9M",
"44mZ0YUdFAF56mmNytjs31",
"45vlnzVlVDaZ6fRVyB0t3Z",
"55URLSNf5K3IyZBezfiMKa",
"5cO7kybDxGj4ipyMYdRYZB",
"5dz/wYuRNGDqDZXXT0zaEr",
"5f5dyqtRNNxaFmVzYns6FZ",
"6eBWFz0oVHPLIGQKf/9Thu",
"71VhFCTINJM6/Ky3oX9nBT",
"77hE9EwNpMlKl/+sGrhEVR",
"7aeIQwZiFL1YbOCVeiFt1p",
"80AR/OlBFOoajT99htLYeJ",
"8029xEf4FHy49dWo6NK8c7",
"8c20Sso/ZEn7NUfNSM+EBh",
"8fHzmU6I5EBqjpHEb0Xl3i",
"a2MjXRFdtLlYQ5ouAFv/+R",
"a7ZscqX+JCIZRS157bMyhq",
"b4P/PCArtIdIH38t6mlw8Y",
"b48cuQCqRMLaIzf9I1fTbW",
"b6FhIxTWVHXKa7qBmehR6I",
"bc2ZOJo5NCbrI0FXxitEvE",
"c1Hf3Sl8ZAnJwP/fpoHxap",
"c4+eoUuahAOa4lmC/4Hkdi",
"c58wUeG09DhJOcuDi8uPW/",
"d9xFMK7wVFwbAS60aG9McP",
"e8Ueib+qJEhL6mXAHdnwbi",
"e97GVMl6JHh5Ml5qEDdSGa",
"eahTDGUrZBV4Y+i+JslTuW",
"ebcqWiiDdPRaJKJIbu9ft4",
"ecpdLyjvZBwrvm+cedCcQy",
"f0BIwQ8D5Ml7nTNQbh1YlS"
],
"scenes": {},
"redirect": [
"1cijzBpFJCdoSNK98w5oUq",
0,
"2cDGL4OAVN0ZbEl3w2urT8",
0,
"45vlnzVlVDaZ6fRVyB0t3Z",
0,
"5cO7kybDxGj4ipyMYdRYZB",
1,
"5f5dyqtRNNxaFmVzYns6FZ",
1,
"6eBWFz0oVHPLIGQKf/9Thu",
0,
"80AR/OlBFOoajT99htLYeJ",
0,
"8029xEf4FHy49dWo6NK8c7",
0,
"a2MjXRFdtLlYQ5ouAFv/+R",
1,
"a7ZscqX+JCIZRS157bMyhq",
0,
"bc2ZOJo5NCbrI0FXxitEvE",
0,
"c1Hf3Sl8ZAnJwP/fpoHxap",
0,
"d9xFMK7wVFwbAS60aG9McP",
0,
"ecpdLyjvZBwrvm+cedCcQy",
2
],
"deps": [
"common",
"main",
"internal"
],
"packs": {},
"name": "multi-render",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"0a5R1NT2lDxqcI2pwtgfb1",
"97533",
"0eAM9yHrBFe4PSAXHMHNl+",
"588d4",
"10Drosz6JPsKWsqV+bRh/A",
"96693",
"14W7pBGWJJ7q7JCPsVTovy",
"86261",
"22JHeF7zBLZqnS68r2p/bo",
"96693",
"29FYIk+N1GYaeWH/q1NxQO",
"22d68",
"2dPOEW20pCTLs79c0WyZVp",
"7974d",
"41Zz922rlJZZmZnFZqPxVK",
"a530e",
"43jA/TdMpFA7K8IIjNbb9M",
"96693",
"44mZ0YUdFAF56mmNytjs31",
"96693",
"55URLSNf5K3IyZBezfiMKa",
"c7066",
"5dz/wYuRNGDqDZXXT0zaEr",
"a50cc",
"71VhFCTINJM6/Ky3oX9nBT",
"7be92",
"77hE9EwNpMlKl/+sGrhEVR",
"96693",
"7aeIQwZiFL1YbOCVeiFt1p",
"96693",
"8c20Sso/ZEn7NUfNSM+EBh",
"6411d",
"8fHzmU6I5EBqjpHEb0Xl3i",
"d3477",
"b4P/PCArtIdIH38t6mlw8Y",
"7be92",
"b48cuQCqRMLaIzf9I1fTbW",
"9b27a",
"b6FhIxTWVHXKa7qBmehR6I",
"96693",
"c4+eoUuahAOa4lmC/4Hkdi",
"25682",
"c58wUeG09DhJOcuDi8uPW/",
"3d712",
"e8Ueib+qJEhL6mXAHdnwbi",
"7be92",
"e97GVMl6JHh5Ml5qEDdSGa",
"a358a",
"eahTDGUrZBV4Y+i+JslTuW",
"e63c4",
"ebcqWiiDdPRaJKJIbu9ft4",
"96693",
"f0BIwQ8D5Ml7nTNQbh1YlS",
"04143"
],
"native": [
"10Drosz6JPsKWsqV+bRh/A",
"eae97",
"22JHeF7zBLZqnS68r2p/bo",
"2ecc6",
"43jA/TdMpFA7K8IIjNbb9M",
"28847",
"44mZ0YUdFAF56mmNytjs31",
"99af5",
"71VhFCTINJM6/Ky3oX9nBT",
"c06a9",
"77hE9EwNpMlKl/+sGrhEVR",
"92cfc",
"7aeIQwZiFL1YbOCVeiFt1p",
"9e7e3",
"b4P/PCArtIdIH38t6mlw8Y",
"83fcc",
"b6FhIxTWVHXKa7qBmehR6I",
"6159f",
"e8Ueib+qJEhL6mXAHdnwbi",
"90cf4",
"ebcqWiiDdPRaJKJIbu9ft4",
"46cee"
]
}
}

View File

@@ -0,0 +1,51 @@
[
1,
[
"ebcqWiiDdPRaJKJIbu9ft4"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "png",
"rect": [
33,
5,
143,
150
],
"offset": [
-9.5,
-0.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,103 @@
[
1,
[
"c1Hf3Sl8ZAnJwP/fpoHxap",
"1cijzBpFJCdoSNK98w5oUq",
"6eBWFz0oVHPLIGQKf/9Thu",
"45vlnzVlVDaZ6fRVyB0t3Z",
"d9xFMK7wVFwbAS60aG9McP",
"5dz/wYuRNGDqDZXXT0zaEr"
],
[
"texture",
"texture2",
"texture3",
"texture4",
"texture5",
"_effectAsset"
],
[
[
"cc.Material",
[
"_name",
"_techniqueData"
],
2,
11
]
],
[
[
0,
0,
1,
2
]
],
[
[
0,
"test-material",
[
{},
"0",
11,
[
{
"defines": {
"USE_TEXTURE": true,
"USE_MULTI_TEXTURE": true
}
},
"props",
11,
[
{},
"texture",
6,
0,
"texture2",
6,
1,
"texture3",
6,
2,
"texture4",
6,
3,
"texture5",
6,
4
]
]
]
]
],
0,
0,
[
0,
0,
0,
0,
0,
0
],
[
0,
1,
2,
3,
4,
5
],
[
0,
1,
2,
3,
4,
5
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"71VhFCTINJM6/Ky3oX9nBT"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_btn_disabled",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"10Drosz6JPsKWsqV+bRh/A"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_jump_2",
"rect": [
24,
24,
160,
104
],
"offset": [
-10,
3.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"22JHeF7zBLZqnS68r2p/bo"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "pvrtc2_rgb_a",
"rect": [
29,
13,
147,
138
],
"offset": [
-11.5,
-2.5
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"7aeIQwZiFL1YbOCVeiFt1p"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_run_1",
"rect": [
27,
20,
176,
115
],
"offset": [
1,
2
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,321 @@
[
1,
0,
0,
[
[
"cc.EffectAsset",
[
"_name",
"shaders",
"techniques"
],
0
]
],
[
[
0,
0,
1,
2,
4
]
],
[
[
0,
"multi-2d-sprite",
[
{
"hash": 3894394603,
"record": null,
"name": "multi-2d-sprite|vs|fs",
"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#if USE_MULTI_TEXTURE\nin float a_texId;\nout float v_texId;\n#endif\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 #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\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#if USE_MULTI_TEXTURE\nin float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 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 o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\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 #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#if USE_MULTI_TEXTURE\nattribute float a_texId;\nvarying float v_texId;\n#endif\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 #if USE_MULTI_TEXTURE\n v_texId = a_texId;\n #endif\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#if USE_MULTI_TEXTURE\nvarying float v_texId;\nuniform sampler2D texture2;\nuniform sampler2D texture3;\nuniform sampler2D texture4;\nuniform sampler2D texture5;\nuniform sampler2D texture6;\nuniform sampler2D texture7;\nuniform sampler2D texture8;\n#endif\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n #if USE_MULTI_TEXTURE\n if(v_texId < 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 o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n } else if(v_texId < 2.0){\n vec4 texture2_tmp = texture2D(texture2, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture2\n texture2_tmp.a *= texture2D(texture2, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture2_tmp.rgb * texture2_tmp.rgb);\n o.a *= texture2_tmp.a;\n #else\n o *= texture2_tmp;\n #endif\n } else if(v_texId < 3.0){\n vec4 texture3_tmp = texture2D(texture3, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture3\n texture3_tmp.a *= texture2D(texture3, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture3_tmp.rgb * texture3_tmp.rgb);\n o.a *= texture3_tmp.a;\n #else\n o *= texture3_tmp;\n #endif\n } else if(v_texId < 4.0){\n vec4 texture4_tmp = texture2D(texture4, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture4\n texture4_tmp.a *= texture2D(texture4, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture4_tmp.rgb * texture4_tmp.rgb);\n o.a *= texture4_tmp.a;\n #else\n o *= texture4_tmp;\n #endif\n } else if(v_texId < 5.0){\n vec4 texture5_tmp = texture2D(texture5, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture5\n texture5_tmp.a *= texture2D(texture5, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture5_tmp.rgb * texture5_tmp.rgb);\n o.a *= texture5_tmp.a;\n #else\n o *= texture5_tmp;\n #endif\n } else if(v_texId < 6.0){\n vec4 texture6_tmp = texture2D(texture6, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture6\n texture6_tmp.a *= texture2D(texture6, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture6_tmp.rgb * texture6_tmp.rgb);\n o.a *= texture6_tmp.a;\n #else\n o *= texture6_tmp;\n #endif\n } else if(v_texId < 7.0){\n vec4 texture7_tmp = texture2D(texture7, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture7\n texture7_tmp.a *= texture2D(texture7, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture7_tmp.rgb * texture7_tmp.rgb);\n o.a *= texture7_tmp.a;\n #else\n o *= texture7_tmp;\n #endif\n } else {\n vec4 texture8_tmp = texture2D(texture8, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture8\n texture8_tmp.a *= texture2D(texture8, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture8_tmp.rgb * texture8_tmp.rgb);\n o.a *= texture8_tmp.a;\n #else\n o *= texture8_tmp;\n #endif\n }\n #else\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 #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": "USE_MULTI_TEXTURE",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"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"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture2",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture3",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture4",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture5",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture6",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture7",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "CC_USE_ALPHA_ATLAS_texture8",
"type": "boolean",
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"binding": 0,
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
]
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"binding": 30,
"defines": [
"USE_TEXTURE"
]
},
{
"name": "texture2",
"type": 29,
"count": 1,
"binding": 31,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture3",
"type": 29,
"count": 1,
"binding": 32,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture4",
"type": 29,
"count": 1,
"binding": 33,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture5",
"type": 29,
"count": 1,
"binding": 34,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture6",
"type": 29,
"count": 1,
"binding": 35,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture7",
"type": 29,
"count": 1,
"binding": 36,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
},
{
"name": "texture8",
"type": 29,
"count": 1,
"binding": 37,
"defines": [
"USE_TEXTURE",
"USE_MULTI_TEXTURE"
]
}
]
}
],
[
{
"passes": [
{
"program": "multi-2d-sprite|vs|fs",
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"texture2": {
"value": "white",
"type": 29
},
"texture3": {
"value": "white",
"type": 29
},
"texture4": {
"value": "white",
"type": 29
},
"texture5": {
"value": "white",
"type": 29
},
"texture6": {
"value": "white",
"type": 29
},
"texture7": {
"value": "white",
"type": 29
},
"texture8": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"type": 13,
"value": [
0.5
]
}
}
}
]
}
]
]
],
0,
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,0",
-1
],
[
0
],
0,
[],
[],
[]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"6eBWFz0oVHPLIGQKf/9Thu"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "default_sprite",
"rect": [
0,
2,
40,
36
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,51 @@
[
1,
[
"43jA/TdMpFA7K8IIjNbb9M"
],
[
"_textureSetter"
],
[
"cc.SpriteFrame"
],
0,
[
{
"name": "sheep_down_0",
"rect": [
2,
61,
224,
87
],
"offset": [
0,
-25
],
"originalSize": [
228,
159
],
"capInsets": [
0,
0,
0,
0
]
}
],
[
0
],
0,
[
0
],
[
0
],
[
0
]
]

View File

@@ -0,0 +1,20 @@
[
1,
0,
0,
[
"cc.Texture2D"
],
0,
[
"0,9729,9729,33071,33071,0,0,1",
-1
],
[
0
],
0,
[],
[],
[]
]

Some files were not shown because too many files have changed in this diff Show More