Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP32
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
OP32
Commits
454cbced
Commit
454cbced
authored
Mar 24, 2022
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meta
parent
dbd87590
Changes
51
Show whitespace changes
Inline
Side-by-side
Showing
51 changed files
with
270 additions
and
238 deletions
+270
-238
OP32.meta
assets/OP32.meta
+1
-1
audios.meta
assets/OP32/audios.meta
+1
-1
CoolCatBegin.mp3.meta
assets/OP32/audios/CoolCatBegin.mp3.meta
+1
-1
CoolCatFinish.mp3.meta
assets/OP32/audios/CoolCatFinish.mp3.meta
+1
-1
CoolCatRight.mp3.meta
assets/OP32/audios/CoolCatRight.mp3.meta
+1
-1
CoolCatWrong.mp3.meta
assets/OP32/audios/CoolCatWrong.mp3.meta
+1
-1
boxJump.mp3.meta
assets/OP32/audios/boxJump.mp3.meta
+1
-1
flyBack.mp3.meta
assets/OP32/audios/flyBack.mp3.meta
+1
-1
flyBackAll.mp3.meta
assets/OP32/audios/flyBackAll.mp3.meta
+1
-1
jumpAll.mp3.meta
assets/OP32/audios/jumpAll.mp3.meta
+1
-1
next.mp3.meta
assets/OP32/audios/next.mp3.meta
+1
-1
submit.mp3.meta
assets/OP32/audios/submit.mp3.meta
+1
-1
dragonBones.meta
assets/OP32/dragonBones.meta
+1
-1
mao.meta
assets/OP32/dragonBones/mao.meta
+1
-1
mao_ske.json.meta
assets/OP32/dragonBones/mao/mao_ske.json.meta
+1
-1
mao_tex.json.meta
assets/OP32/dragonBones/mao/mao_tex.json.meta
+1
-1
mao_tex.png.meta
assets/OP32/dragonBones/mao/mao_tex.png.meta
+3
-3
烟花.meta
assets/OP32/dragonBones/烟花.meta
+1
-1
烟花_ske.json.meta
assets/OP32/dragonBones/烟花/烟花_ske.json.meta
+2
-1
烟花_tex.json.meta
assets/OP32/dragonBones/烟花/烟花_tex.json.meta
+2
-1
烟花_tex.png.meta
assets/OP32/dragonBones/烟花/烟花_tex.png.meta
+3
-3
fonts.meta
assets/OP32/fonts.meta
+1
-1
BRLNSDB.TTF.meta
assets/OP32/fonts/BRLNSDB.TTF.meta
+1
-1
scene.meta
assets/OP32/scene.meta
+1
-1
OP32.fire
assets/OP32/scene/OP32.fire
+31
-31
OP32.fire.meta
assets/OP32/scene/OP32.fire.meta
+1
-1
OP32.js
assets/OP32/scene/OP32.js
+2
-1
OP32.js.meta
assets/OP32/scene/OP32.js.meta
+1
-1
script.meta
assets/OP32/script.meta
+1
-1
defaultData.js.meta
assets/OP32/script/defaultData.js.meta
+1
-1
runtime.js.meta
assets/OP32/script/runtime.js.meta
+1
-1
util.js.meta
assets/OP32/script/util.js.meta
+1
-1
textures.meta
assets/OP32/textures.meta
+1
-1
bg_bg.png.meta
assets/OP32/textures/bg_bg.png.meta
+3
-3
bg_box_behind.png.meta
assets/OP32/textures/bg_box_behind.png.meta
+3
-3
bg_box_front.png.meta
assets/OP32/textures/bg_box_front.png.meta
+3
-3
bg_circle.png.meta
assets/OP32/textures/bg_circle.png.meta
+3
-3
bg_deck.png.meta
assets/OP32/textures/bg_deck.png.meta
+3
-3
btn_next.png.meta
assets/OP32/textures/btn_next.png.meta
+3
-3
btn_replay.png.meta
assets/OP32/textures/btn_replay.png.meta
+3
-3
btn_return.png.meta
assets/OP32/textures/btn_return.png.meta
+3
-3
btn_submit.png.meta
assets/OP32/textures/btn_submit.png.meta
+3
-3
new.meta
assets/OP32/textures/new.meta
+1
-1
bg_bg.jpg.meta
assets/OP32/textures/new/bg_bg.jpg.meta
+3
-3
bg_box_behind.png.meta
assets/OP32/textures/new/bg_box_behind.png.meta
+3
-3
bg_box_front.png.meta
assets/OP32/textures/new/bg_box_front.png.meta
+3
-3
bg_deck.png.meta
assets/OP32/textures/new/bg_deck.png.meta
+3
-3
bg_left.png.meta
assets/OP32/textures/new/bg_left.png.meta
+3
-3
bg_right.png.meta
assets/OP32/textures/new/bg_right.png.meta
+3
-3
bg_top.png.meta
assets/OP32/textures/new/bg_top.png.meta
+3
-3
buildCocos.js
bin/buildCocos.js
+151
-122
No files found.
assets/OP32.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
0644b079-4147-489d-ad68-72f2ca1ffe1e
",
"uuid": "
f8fcbc87-1e5f-4ecc-8901-9304c0508ef8
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/audios.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
cb9fa4ea-66ca-45af-ad31-e445c7b0ef32
",
"uuid": "
bc6cd503-0f6c-438d-9160-8dfb0f94613e
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/audios/CoolCatBegin.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
d7ee13c8-7c6f-4ed4-bf81-c85ae91edfa9
",
"uuid": "
06b5903d-7518-4557-83bf-e6cbd8a21b5e
",
"downloadMode": 0,
"duration": 7.74,
"subMetas": {}
...
...
assets/OP32/audios/CoolCatFinish.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
fc2be55f-3d94-44e0-9ebf-09e0eaa47873
",
"uuid": "
c9739cb5-88c5-4d2d-b70a-8242cf7a50be
",
"downloadMode": 0,
"duration": 10.944,
"subMetas": {}
...
...
assets/OP32/audios/CoolCatRight.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
4d2df5f4-a774-4e06-a410-4e38195952ad
",
"uuid": "
aa1651af-195f-496e-94b8-30803995ddef
",
"downloadMode": 0,
"duration": 0.972,
"subMetas": {}
...
...
assets/OP32/audios/CoolCatWrong.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
0d2dd7a8-9bc2-4cd5-a432-a13f8fb43033
",
"uuid": "
cd03fbbb-bae4-4770-b78c-14cf6dfdd4d8
",
"downloadMode": 0,
"duration": 1.188,
"subMetas": {}
...
...
assets/OP32/audios/boxJump.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
a544c1e7-32f5-4754-95a2-823398db0dcc
",
"uuid": "
e34c63cc-e6c3-4cf0-a638-ed0a959821a3
",
"downloadMode": 0,
"duration": 0.287347,
"subMetas": {}
...
...
assets/OP32/audios/flyBack.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
293ae196-a9b5-4da0-a0b6-597baa25f7b1
",
"uuid": "
fbe26765-0578-4869-98c7-cfd9c0c38ba7
",
"downloadMode": 0,
"duration": 0.365714,
"subMetas": {}
...
...
assets/OP32/audios/flyBackAll.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
b733b7d3-4082-4320-9fe0-2ce28088b687
",
"uuid": "
f95b1d6c-c14b-487a-8a07-605b14510208
",
"downloadMode": 0,
"duration": 0.966531,
"subMetas": {}
...
...
assets/OP32/audios/jumpAll.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
e87d3f15-54b2-4a37-9793-9923fa34fda9
",
"uuid": "
266f613c-2c23-4f19-b790-804eb26f2bc1
",
"downloadMode": 0,
"duration": 0.626939,
"subMetas": {}
...
...
assets/OP32/audios/next.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
d9be9283-652e-44da-98d6-680406e71a03
",
"uuid": "
e72ca4d9-3c4f-404c-b122-e3b68f9237f6
",
"downloadMode": 0,
"duration": 0.168,
"subMetas": {}
...
...
assets/OP32/audios/submit.mp3.meta
View file @
454cbced
{
"ver": "2.0.1",
"uuid": "
7bf9c308-8dd5-411d-8770-ddc8341386d0
",
"uuid": "
9ea86391-43ec-4be6-9778-86cc84f5651b
",
"downloadMode": 0,
"duration": 0.39185,
"subMetas": {}
...
...
assets/OP32/dragonBones.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
0853721c-3f55-4eb2-873d-e3081cfadd4b
",
"uuid": "
f5209677-183a-42bf-a082-558a5237a532
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/dragonBones/mao.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
ac17bb63-beac-4d42-bc52-1d53b848082f
",
"uuid": "
6ba97d78-86fa-4cc6-82ee-4bc5a8e1e993
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/dragonBones/mao/mao_ske.json.meta
View file @
454cbced
{
"ver": "1.0.1",
"uuid": "
42cb15db-315a-4d11-9814-0fe5f8808a72
",
"uuid": "
c8b3abec-edc3-4d74-8cf4-e305f2eec883
",
"subMetas": {}
}
\ No newline at end of file
assets/OP32/dragonBones/mao/mao_tex.json.meta
View file @
454cbced
{
"ver": "1.0.1",
"uuid": "
b2242a6f-c54f-4b2d-8151-89a713576e41
",
"uuid": "
a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8
",
"subMetas": {}
}
\ No newline at end of file
assets/OP32/dragonBones/mao/mao_tex.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
c8f02f6a-80f7-4712-8a8c-26db0a90ab03
",
"uuid": "
35fe652f-4670-472b-ac71-40a039e072b9
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"mao_tex": {
"ver": "1.0.4",
"uuid": "
837a88a0-d171-4421-8e58-63a525eabc62
",
"rawTextureUuid": "
c8f02f6a-80f7-4712-8a8c-26db0a90ab03
",
"uuid": "
2facbe16-71dc-4db1-aeeb-0f9d762e10aa
",
"rawTextureUuid": "
35fe652f-4670-472b-ac71-40a039e072b9
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/dragonBones/烟花.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
70b06f27-303c-4ea7-ab54-90e916ebd541
",
"uuid": "
54a81905-a5cc-420d-8bca-2d266cf3702b
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/dragonBones/烟花/烟花_ske.json.meta
View file @
454cbced
{
"ver": "1.0.1",
"uuid": "
bce4f069-c7dc-4d7c-bdae-9528d291dc8
3",
"uuid": "
c22a8350-4cb3-4228-a643-d306668a427
3",
"subMetas": {}
}
\ No newline at end of file
assets/OP32/dragonBones/烟花/烟花_tex.json.meta
View file @
454cbced
{
"ver": "1.0.1",
"uuid": "
6edbd32c-4733-466b-a910-5cf85b3eaef8
",
"uuid": "
84b89413-963c-4bc2-a463-f4aa9b21d981
",
"subMetas": {}
}
\ No newline at end of file
assets/OP32/dragonBones/烟花/烟花_tex.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
c138e5ff-6afa-4eef-8c24-7308cc6e2f7b
",
"uuid": "
b863ba99-3b99-424f-8526-7f65336674be
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"烟花_tex": {
"ver": "1.0.4",
"uuid": "9
1a38a51-4650-4bb3-89db-b1827ed75bf2
",
"rawTextureUuid": "
c138e5ff-6afa-4eef-8c24-7308cc6e2f7b
",
"uuid": "9
6e3ad18-b292-413b-b2f7-35d8561885c6
",
"rawTextureUuid": "
b863ba99-3b99-424f-8526-7f65336674be
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/fonts.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
20185448-a1ca-4de2-8b37-7bf6cdfccbae
",
"uuid": "
98384acc-f407-430e-b7e2-2ce9cf026512
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/fonts/BRLNSDB.TTF.meta
View file @
454cbced
{
"ver": "1.1.0",
"uuid": "
c551970e-b095-45f3-9f1d-25cde8b8deb1
",
"uuid": "
d2da988b-9de1-42cb-83f0-d78586685ea7
",
"subMetas": {}
}
\ No newline at end of file
assets/OP32/scene.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
e8bd16b0-3804-45a9-a8ca-f52c02224f55
",
"uuid": "
64795d2e-f020-471b-b8f9-3ba28070259e
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/scene/OP32.fire
View file @
454cbced
...
...
@@ -64,7 +64,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": true,
"_id": "
074720a3-f261-4ae9-9af1-1adabd8f4c6d
"
"_id": "
742a0a48-593b-473b-a582-f3888324c81b
"
},
{
"__type__": "cc.Node",
...
...
@@ -425,7 +425,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
97f1d65d-ea03-4276-acd5-7fc3ebbb125c
"
"__uuid__": "
81e4b4f2-3c83-4a8a-8c7c-39d5d2fff044
"
},
"_type": 0,
"_sizeMode": 0,
...
...
@@ -549,7 +549,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
a6e219f9-4946-4b9b-b638-6e160a0df435
"
"__uuid__": "
5b6f5434-8274-47bb-8bfe-0677dda0e859
"
},
"_type": 0,
"_sizeMode": 0,
...
...
@@ -673,7 +673,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
3468d78d-e7e3-4876-b449-64423a774323
"
"__uuid__": "
0ab7fa35-1678-4ab5-a60a-f8b58547ad51
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -797,7 +797,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
e84554ff-b59e-49a7-a7cd-f573b0a828c2
"
"__uuid__": "
6105074d-7282-41a3-b4d8-b6302134a0d7
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -921,7 +921,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
87675918-d434-4db9-8ce4-228f911d989e
"
"__uuid__": "
d6aa297b-d13a-4c33-b348-808f0adb4478
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -1042,7 +1042,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
b793b0d3-fd30-4d34-8264-28821c329c1
d"
"__uuid__": "
83b6dc20-bff7-419d-a45a-d40fa1f1b78
d"
},
"_type": 0,
"_sizeMode": 0,
...
...
@@ -1139,7 +1139,7 @@
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "
bce4f069-c7dc-4d7c-bdae-9528d291dc83#6edbd32c-4733-466b-a910-5cf85b3eaef8
",
"_armatureKey": "
c22a8350-4cb3-4228-a643-d306668a4273#84b89413-963c-4bc2-a463-f4aa9b21d981
",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
...
...
@@ -1147,10 +1147,10 @@
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "
bce4f069-c7dc-4d7c-bdae-9528d291dc8
3"
"__uuid__": "
c22a8350-4cb3-4228-a643-d306668a427
3"
},
"_N$dragonAtlasAsset": {
"__uuid__": "
6edbd32c-4733-466b-a910-5cf85b3eaef8
"
"__uuid__": "
84b89413-963c-4bc2-a463-f4aa9b21d981
"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 1,
...
...
@@ -1296,7 +1296,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
33fc1308-9256-403d-a9fc-1567ef02f890
"
"__uuid__": "
d74e555a-ca30-4daa-94da-f1a2937f21a1
"
},
"_type": 0,
"_sizeMode": 0,
...
...
@@ -1454,7 +1454,7 @@
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
b9d7ec09-fa5f-4f90-be2c-e8d035b0f74d
"
"__uuid__": "
812ccb53-cb51-435b-9f9c-25a6b53f9bcf
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -1649,7 +1649,7 @@
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
e666ed9c-0ebf-4802-8d58-7473ddde1634
"
"__uuid__": "
abe51019-2116-415d-bdca-701500843ba7
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -1910,7 +1910,7 @@
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "
42cb15db-315a-4d11-9814-0fe5f8808a72#b2242a6f-c54f-4b2d-8151-89a713576e41
",
"_armatureKey": "
c8b3abec-edc3-4d74-8cf4-e305f2eec883#a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8
",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
...
...
@@ -1918,10 +1918,10 @@
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "
42cb15db-315a-4d11-9814-0fe5f8808a72
"
"__uuid__": "
c8b3abec-edc3-4d74-8cf4-e305f2eec883
"
},
"_N$dragonAtlasAsset": {
"__uuid__": "
b2242a6f-c54f-4b2d-8151-89a713576e41
"
"__uuid__": "
a5a1fa11-3a51-4ee9-a5b4-2d578850e0d8
"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 3,
...
...
@@ -2274,7 +2274,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
75bb0910-bb15-4daf-9a6d-6873c400a148
"
"__uuid__": "
a0c510e8-ad89-472b-b36f-3a727fc56a12
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -2368,7 +2368,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "
75bb0910-bb15-4daf-9a6d-6873c400a148
"
"__uuid__": "
a0c510e8-ad89-472b-b36f-3a727fc56a12
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -2462,7 +2462,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c
2f5963d-2ed1-4add-91b8-f3c4ff0d893e
"
"__uuid__": "c
56c2950-ffa4-47b7-91f5-fb774bb50b48
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -2494,7 +2494,7 @@
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "c
2f5963d-2ed1-4add-91b8-f3c4ff0d893e
"
"__uuid__": "c
56c2950-ffa4-47b7-91f5-fb774bb50b48
"
},
"_type": 0,
"_sizeMode": 1,
...
...
@@ -2677,7 +2677,7 @@
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "
0e7205TFJ1Pjogb2tsB2COD
",
"__type__": "
db033slSw9J4LqVGKFrVxC0
",
"_name": "",
"_objFlags": 0,
"node": {
...
...
@@ -2940,7 +2940,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
d9be9283-652e-44da-98d6-680406e71a03
"
"__uuid__": "
e72ca4d9-3c4f-404c-b122-e3b68f9237f6
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3021,7 +3021,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
a544c1e7-32f5-4754-95a2-823398db0dcc
"
"__uuid__": "
e34c63cc-e6c3-4cf0-a638-ed0a959821a3
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3102,7 +3102,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
e87d3f15-54b2-4a37-9793-9923fa34fda9
"
"__uuid__": "
266f613c-2c23-4f19-b790-804eb26f2bc1
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3183,7 +3183,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
7bf9c308-8dd5-411d-8770-ddc8341386d0
"
"__uuid__": "
9ea86391-43ec-4be6-9778-86cc84f5651b
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3264,7 +3264,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
293ae196-a9b5-4da0-a0b6-597baa25f7b1
"
"__uuid__": "
fbe26765-0578-4869-98c7-cfd9c0c38ba7
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3345,7 +3345,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
b733b7d3-4082-4320-9fe0-2ce28088b687
"
"__uuid__": "
f95b1d6c-c14b-487a-8a07-605b14510208
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3426,7 +3426,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
4d2df5f4-a774-4e06-a410-4e38195952ad
"
"__uuid__": "
aa1651af-195f-496e-94b8-30803995ddef
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3507,7 +3507,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
0d2dd7a8-9bc2-4cd5-a432-a13f8fb43033
"
"__uuid__": "
cd03fbbb-bae4-4770-b78c-14cf6dfdd4d8
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3588,7 +3588,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
d7ee13c8-7c6f-4ed4-bf81-c85ae91edfa9
"
"__uuid__": "
06b5903d-7518-4557-83bf-e6cbd8a21b5e
"
},
"_volume": 1,
"_mute": false,
...
...
@@ -3669,7 +3669,7 @@
},
"_enabled": true,
"_clip": {
"__uuid__": "
fc2be55f-3d94-44e0-9ebf-09e0eaa47873
"
"__uuid__": "
c9739cb5-88c5-4d2d-b70a-8242cf7a50be
"
},
"_volume": 1,
"_mute": false,
...
...
assets/OP32/scene/OP32.fire.meta
View file @
454cbced
{
"ver": "1.2.9",
"uuid": "
074720a3-f261-4ae9-9af1-1adabd8f4c6d
",
"uuid": "
742a0a48-593b-473b-a582-f3888324c81b
",
"asyncLoadAssets": false,
"autoReleaseAssets": true,
"subMetas": {}
...
...
assets/OP32/scene/OP32.js
View file @
454cbced
...
...
@@ -303,7 +303,7 @@ cc.Class({
const
box
=
cc
.
find
(
'
Canvas/bg/box
'
);
//copy-start 把物品的父节点换到中间的box上。
//
TODO:
copy-start 把物品的父节点换到中间的box上。
const
box_mid
=
cc
.
find
(
'
Canvas/bg/box_mid
'
);
let
children
=
box
.
children
.
concat
(
box_mid
.
children
);
if
(
children
.
every
(
child
=>
child
.
optionData
.
selected
==
child
.
optionData
.
is_right
))
{
...
...
@@ -519,6 +519,7 @@ cc.Class({
resetGame
()
{
this
.
initData
();
this
.
initView
();
this
.
initListener
();
this
.
hideRestartBtn
();
},
...
...
assets/OP32/scene/OP32.js.meta
View file @
454cbced
{
"ver": "1.0.8",
"uuid": "
0e720e53-149d-4f8e-881b-dadb01d82383
",
"uuid": "
db033b25-4b0f-49e0-ba95-18a16b5710b4
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/OP32/script.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "b
0c008bc-cf92-463b-8360-0984e13c2e4d
",
"uuid": "b
a75bd3b-633a-4dfd-8dc4-28ed5c42f730
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/script/defaultData.js.meta
View file @
454cbced
{
"ver": "1.0.8",
"uuid": "
c41b0e51-55d7-443c-af3a-b22c3dd9b9e5
",
"uuid": "
91fd9bef-8b16-4457-98f5-d75ab16e41cd
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/OP32/script/runtime.js.meta
View file @
454cbced
{
"ver": "1.0.8",
"uuid": "
b54300af-b8e5-4b4e-aa2f-9ac1cef7b598
",
"uuid": "
efd53289-d420-4f63-a957-2804be594fd7
",
"isPlugin": true,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/OP32/script/util.js.meta
View file @
454cbced
{
"ver": "1.0.8",
"uuid": "
ade7af40-d56d-4087-bbc6-2888fef55353
",
"uuid": "
77404e46-e97e-44c6-bdc8-e6643e6dc641
",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
...
...
assets/OP32/textures.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
8ba21262-178f-4fa5-afc9-2c1dd50ba3ab
",
"uuid": "
db61f467-05ac-466a-b733-03e26e29aff8
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/textures/bg_bg.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
6c8e488b-9cdf-4d20-89c5-4d432d8a2e23
",
"uuid": "
938cc81f-454b-4d44-a0fa-8be4647342b1
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "
95074812-ffd9-4326-9008-60a88279bd2e
",
"rawTextureUuid": "
6c8e488b-9cdf-4d20-89c5-4d432d8a2e23
",
"uuid": "
868ff6fb-024e-448d-b38b-d9690b77654b
",
"rawTextureUuid": "
938cc81f-454b-4d44-a0fa-8be4647342b1
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/bg_box_behind.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
e5d8b6de-dae4-4605-9f8f-8584b745b7f2
",
"uuid": "
4b1a3384-93e8-4455-8d53-5969f24bf24a
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_box_behind": {
"ver": "1.0.4",
"uuid": "
83ae63f9-5160-4995-af20-110757bb4d21
",
"rawTextureUuid": "
e5d8b6de-dae4-4605-9f8f-8584b745b7f2
",
"uuid": "
1306c628-a573-47ee-9358-56983a247c04
",
"rawTextureUuid": "
4b1a3384-93e8-4455-8d53-5969f24bf24a
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/bg_box_front.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
66f6b898-e326-4bab-89e3-78997d049e47
",
"uuid": "
894b9cc4-1993-499e-a392-bbc2f353b41a
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_box_front": {
"ver": "1.0.4",
"uuid": "
2b44a5d3-fe98-49c2-9099-8400d48c17c9
",
"rawTextureUuid": "
66f6b898-e326-4bab-89e3-78997d049e47
",
"uuid": "
06d7c07a-154e-4094-bf4e-6a242e3b77ec
",
"rawTextureUuid": "
894b9cc4-1993-499e-a392-bbc2f353b41a
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/bg_circle.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648
",
"uuid": "
7fba08a4-8877-4c62-8e0d-8b395c29fb67
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_circle": {
"ver": "1.0.4",
"uuid": "
75bb0910-bb15-4daf-9a6d-6873c400a148
",
"rawTextureUuid": "
40a7f7d6-3f30-46c7-b9e4-1d5fcfc0c648
",
"uuid": "
a0c510e8-ad89-472b-b36f-3a727fc56a12
",
"rawTextureUuid": "
7fba08a4-8877-4c62-8e0d-8b395c29fb67
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/bg_deck.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
e5a3f41e-df6e-4314-9db7-0771939bb4d6
",
"uuid": "
d060212f-0b11-4868-8879-d0af24f33afb
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_deck": {
"ver": "1.0.4",
"uuid": "
3d584bab-9dfe-4922-8dc7-821b4f063796
",
"rawTextureUuid": "
e5a3f41e-df6e-4314-9db7-0771939bb4d6
",
"uuid": "
cd474ac1-786d-41c0-865e-f03ba5515f7c
",
"rawTextureUuid": "
d060212f-0b11-4868-8879-d0af24f33afb
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/btn_next.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
e6d712f3-3bc6-4a7b-a140-9016e0628f67
",
"uuid": "
75062625-0eb7-4c4e-897b-c8c5f2344341
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"btn_next": {
"ver": "1.0.4",
"uuid": "
e666ed9c-0ebf-4802-8d58-7473ddde1634
",
"rawTextureUuid": "
e6d712f3-3bc6-4a7b-a140-9016e0628f67
",
"uuid": "
abe51019-2116-415d-bdca-701500843ba7
",
"rawTextureUuid": "
75062625-0eb7-4c4e-897b-c8c5f2344341
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/btn_replay.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
87cc865a-7ac0-44b4-8919-3b01f815748f
",
"uuid": "
2ee40e6c-b892-417f-899b-7f736d14ee47
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"btn_replay": {
"ver": "1.0.4",
"uuid": "c
2f5963d-2ed1-4add-91b8-f3c4ff0d893e
",
"rawTextureUuid": "
87cc865a-7ac0-44b4-8919-3b01f815748f
",
"uuid": "c
56c2950-ffa4-47b7-91f5-fb774bb50b48
",
"rawTextureUuid": "
2ee40e6c-b892-417f-899b-7f736d14ee47
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/btn_return.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
552ce11c-0f7d-4146-8c78-23fc7cd917cb
",
"uuid": "
e552357a-2106-4afe-bc43-1f764f4fe1dd
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "
70f3d2ee-ca1d-49fd-84dd-3cdc8164fba0
",
"rawTextureUuid": "
552ce11c-0f7d-4146-8c78-23fc7cd917cb
",
"uuid": "
6136a1d0-a0ec-46d3-ac73-dd8808318be1
",
"rawTextureUuid": "
e552357a-2106-4afe-bc43-1f764f4fe1dd
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/btn_submit.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
52a666fa-b2b9-41a0-8254-1ff8ef313a43
",
"uuid": "
8d226b74-bf5a-4b13-b6d4-6e2c61264c8b
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"btn_submit": {
"ver": "1.0.4",
"uuid": "
b9d7ec09-fa5f-4f90-be2c-e8d035b0f74d
",
"rawTextureUuid": "
52a666fa-b2b9-41a0-8254-1ff8ef313a43
",
"uuid": "
812ccb53-cb51-435b-9f9c-25a6b53f9bcf
",
"rawTextureUuid": "
8d226b74-bf5a-4b13-b6d4-6e2c61264c8b
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new.meta
View file @
454cbced
{
"ver": "1.1.2",
"uuid": "
77e39803-4b9e-4735-aad5-98a2054bca4d
",
"uuid": "
8e15806d-2377-471c-bc93-ceb0769a4fc3
",
"isBundle": false,
"bundleName": "",
"priority": 1,
...
...
assets/OP32/textures/new/bg_bg.jpg.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
3c28c3e3-3241-4a69-a8cc-c69596312b21
",
"uuid": "
a6009639-f8f1-480b-9edc-7bb946f7633b
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "
97f1d65d-ea03-4276-acd5-7fc3ebbb125c
",
"rawTextureUuid": "
3c28c3e3-3241-4a69-a8cc-c69596312b21
",
"uuid": "
81e4b4f2-3c83-4a8a-8c7c-39d5d2fff044
",
"rawTextureUuid": "
a6009639-f8f1-480b-9edc-7bb946f7633b
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_box_behind.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
8823c170-967d-416f-b65b-f297baa16bb2
",
"uuid": "
c1ad0d46-5990-43dd-a334-2a9dd4f07af9
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_box_behind": {
"ver": "1.0.4",
"uuid": "
b793b0d3-fd30-4d34-8264-28821c329c1
d",
"rawTextureUuid": "
8823c170-967d-416f-b65b-f297baa16bb2
",
"uuid": "
83b6dc20-bff7-419d-a45a-d40fa1f1b78
d",
"rawTextureUuid": "
c1ad0d46-5990-43dd-a334-2a9dd4f07af9
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_box_front.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
964bbe0d-3431-4e1b-a704-db4a78fe0fac
",
"uuid": "
d37319a9-dbd2-4407-9b31-d0e83e884134
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_box_front": {
"ver": "1.0.4",
"uuid": "
33fc1308-9256-403d-a9fc-1567ef02f890
",
"rawTextureUuid": "
964bbe0d-3431-4e1b-a704-db4a78fe0fac
",
"uuid": "
d74e555a-ca30-4daa-94da-f1a2937f21a1
",
"rawTextureUuid": "
d37319a9-dbd2-4407-9b31-d0e83e884134
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_deck.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
cce12600-aa0b-43dd-a056-21100aeea8d
b",
"uuid": "
91410f22-ebf5-4752-b503-a9575883ed4
b",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_deck": {
"ver": "1.0.4",
"uuid": "
a6e219f9-4946-4b9b-b638-6e160a0df435
",
"rawTextureUuid": "
cce12600-aa0b-43dd-a056-21100aeea8d
b",
"uuid": "
5b6f5434-8274-47bb-8bfe-0677dda0e859
",
"rawTextureUuid": "
91410f22-ebf5-4752-b503-a9575883ed4
b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_left.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
17449abf-084e-4208-adbf-2d4aa25dbfc0
",
"uuid": "
9e684510-a78c-4e81-affc-e9050a8a61fb
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_left": {
"ver": "1.0.4",
"uuid": "
3468d78d-e7e3-4876-b449-64423a774323
",
"rawTextureUuid": "
17449abf-084e-4208-adbf-2d4aa25dbfc0
",
"uuid": "
0ab7fa35-1678-4ab5-a60a-f8b58547ad51
",
"rawTextureUuid": "
9e684510-a78c-4e81-affc-e9050a8a61fb
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_right.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
3ce8ae56-e8e5-4fd2-9660-2a74a4c039e8
",
"uuid": "
df4fc028-882a-4fe6-a770-5d2dc296b835
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_right": {
"ver": "1.0.4",
"uuid": "
e84554ff-b59e-49a7-a7cd-f573b0a828c2
",
"rawTextureUuid": "
3ce8ae56-e8e5-4fd2-9660-2a74a4c039e8
",
"uuid": "
6105074d-7282-41a3-b4d8-b6302134a0d7
",
"rawTextureUuid": "
df4fc028-882a-4fe6-a770-5d2dc296b835
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
assets/OP32/textures/new/bg_top.png.meta
View file @
454cbced
{
"ver": "2.3.5",
"uuid": "
ee21a24d-a03f-4280-8dd7-99ffa7531c19
",
"uuid": "
0eeeb02c-8386-4897-bee0-40ede6bcc09d
",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
...
...
@@ -13,8 +13,8 @@
"subMetas": {
"bg_top": {
"ver": "1.0.4",
"uuid": "
87675918-d434-4db9-8ce4-228f911d989e
",
"rawTextureUuid": "
ee21a24d-a03f-4280-8dd7-99ffa7531c19
",
"uuid": "
d6aa297b-d13a-4c33-b348-808f0adb4478
",
"rawTextureUuid": "
0eeeb02c-8386-4897-bee0-40ede6bcc09d
",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
...
...
bin/buildCocos.js
View file @
454cbced
...
...
@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) {
}
let
creatorBasePath
=
'
CocosCreator
'
;
let
creatorBasePath
=
'
D:
\\
work
\\
CocosDashboard_1.0.9
\\
resources
\\
.editors
\\
Creator
\\
2.4.5
\\
CocosCreator.exe
'
;
if
(
process
.
platform
!==
'
win32
'
)
{
creatorBasePath
=
"
/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator
"
;
}
...
...
@@ -128,10 +128,10 @@ async function buildWebBundle() {
await
buildCocos
(
args
);
}
function
createConfigFile
(
projectName
,
type
)
{
function
createConfigFile
(
projectName
,
type
)
{
let
iosVersion
=
""
;
let
androidVersion
=
""
;
if
(
!
type
)
{
if
(
!
type
)
{
const
androidPaths
=
fs
.
readdirSync
(
`dist/android/
${
projectName
}
`
);
const
androidConfigFileName
=
androidPaths
.
find
(
path
=>
path
.
indexOf
(
'
config
'
)
==
0
);
androidVersion
=
androidConfigFileName
.
split
(
'
.
'
)[
1
];
...
...
@@ -139,11 +139,11 @@ function createConfigFile (projectName, type) {
const
iosConfigFileName
=
iosPaths
.
find
(
path
=>
path
.
indexOf
(
'
config
'
)
==
0
);
iosVersion
=
iosConfigFileName
.
split
(
'
.
'
)[
1
];
}
else
{
if
(
type
==
"
android
"
)
{
if
(
type
==
"
android
"
)
{
const
androidPaths
=
fs
.
readdirSync
(
`dist/android/
${
projectName
}
`
);
const
androidConfigFileName
=
androidPaths
.
find
(
path
=>
path
.
indexOf
(
'
config
'
)
==
0
);
androidVersion
=
androidConfigFileName
.
split
(
'
.
'
)[
1
];
}
else
{
}
else
{
const
iosPaths
=
fs
.
readdirSync
(
`dist/ios/
${
projectName
}
`
);
const
iosConfigFileName
=
iosPaths
.
find
(
path
=>
path
.
indexOf
(
'
config
'
)
==
0
);
iosVersion
=
iosConfigFileName
.
split
(
'
.
'
)[
1
];
...
...
@@ -164,7 +164,7 @@ function createConfigFile (projectName, type) {
fs
.
writeFileSync
(
'
dist/config.json
'
,
JSON
.
stringify
(
config
));
}
function
compressAll
(
projectName
)
{
function
compressAll
(
projectName
)
{
const
tarStream
=
new
compressing
.
zip
.
Stream
();
tarStream
.
addEntry
(
'
dist/play
'
);
tarStream
.
addEntry
(
'
dist/form
'
);
...
...
@@ -176,7 +176,7 @@ function compressAll (projectName) {
tarStream
.
pipe
(
destStream
);
}
function
build_check
()
{
function
build_check
()
{
const
dirNames
=
process
.
cwd
().
split
(
/
\/
|
\\
/
);
const
projectName
=
dirNames
[
dirNames
.
length
-
1
];
const
path
=
'
assets
'
...
...
@@ -211,58 +211,22 @@ function build_check () {
return
projectName
;
}
function
changeSettingToWebDesktop
()
{
function
changeSettingToWebDesktop
()
{
const
path
=
'
assets
'
const
folderName
=
getFolderName
(
path
);
editFolderMeta
(
path
,
folderName
,
false
);
}
function
changeSettingsToBundle
()
{
function
changeSettingsToBundle
()
{
const
path
=
'
assets
'
const
folderName
=
getFolderName
(
path
);
editFolderMeta
(
path
,
folderName
,
true
);
}
function
replaceUuids
()
{
async
function
replaceUuids
()
{
console
.
log
(
'
build_step_0 开始~!
'
);
const
path
=
'
assets
'
function
getFolderName
(
path
)
{
let
folderName
=
''
;
fs
.
readdirSync
(
path
).
find
(
fileName
=>
{
const
st
=
fs
.
statSync
(
`
${
path
}
/
${
fileName
}
`
);
if
(
st
.
isDirectory
())
{
folderName
=
fileName
;
}
});
return
folderName
;
}
const
folderName
=
getFolderName
(
path
);
let
oldFireUuid
=
''
;
let
oldJsUuid
=
''
;
let
oldJsShortUuid
=
''
;
let
oldJsId
=
''
;
const
fireMetaStr
=
fs
.
readFileSync
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire.meta`
);
if
(
fireMetaStr
.
indexOf
(
'
57ea7c61-9b8b-498a-b024-c98ee9124beb
'
)
>
0
)
{
// 老Cocos脚手架
oldFireUuid
=
'
57ea7c61-9b8b-498a-b024-c98ee9124beb
'
;
oldJsUuid
=
'
f4ede462-f8d7-4069-ba80-915611c058ca
'
;
oldJsShortUuid
=
'
f4edeRi+NdAabqAkVYRwFjK
'
;
oldJsId
=
'
e687yyoRBIzZAOVRL8Sseh
'
;
}
if
(
fireMetaStr
.
indexOf
(
'
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
'
)
>
0
)
{
// 新Cocos脚手架
oldFireUuid
=
'
0737ce42-24f0-45c6-8e1a-8bdab4f74ba3
'
;
oldJsUuid
=
'
408a67f8-65fa-4cf1-8cf2-83e20e1a0fd5
'
;
oldJsShortUuid
=
'
408a6f4ZfpM8Yzyg+IOGg/V
'
;
oldJsId
=
'
eaTVUpqahPfZeO9+sUI7RP
'
;
}
if
(
oldFireUuid
===
''
)
{
return
;
}
function
editFolderMeta
(
path
,
folderName
)
{
const
metaPath
=
`
${
path
}
/
${
folderName
}
.meta`
;
const
metaDataStr
=
fs
.
readFileSync
(
metaPath
);
...
...
@@ -274,7 +238,6 @@ function replaceUuids () {
if
(
!
fs
.
existsSync
(
path
))
{
return
;
}
const
fileStr
=
fs
.
readFileSync
(
path
);
const
newFileStr
=
fileStr
.
toString
().
replace
(
new
RegExp
(
replaceStr
.
replace
(
/
[
.*+?^${}()|[
\]\\]
/g
,
"
\\
$&
"
),
'
g
'
),
newStr
);
fs
.
writeFileSync
(
path
,
newFileStr
);
...
...
@@ -284,26 +247,92 @@ function replaceUuids () {
return
uuid
.
substring
(
0
,
5
)
+
Base64
.
fromUint8Array
(
bytes
).
substring
(
2
);
}
editFolderMeta
(
path
,
folderName
);
const
path
=
'
assets
'
function
getFolderName
(
path
)
{
let
folderName
=
''
;
fs
.
readdirSync
(
path
).
find
(
fileName
=>
{
const
st
=
fs
.
statSync
(
`
${
path
}
/
${
fileName
}
`
);
if
(
st
.
isDirectory
())
{
folderName
=
fileName
;
}
});
return
folderName
;
}
async
function
fileForEach
(
src
,
func
)
{
//读取目录
const
st
=
fs
.
statSync
(
src
);
if
(
st
.
isFile
())
{
await
func
(
src
);
return
;
}
const
paths
=
fs
.
readdirSync
(
src
);
for
(
let
i
=
0
;
i
<
paths
.
length
;
i
++
)
{
let
path
=
paths
[
i
];
const
newSrc
=
`
${
src
}
/
${
path
}
`
;
const
st
=
fs
.
statSync
(
newSrc
);
if
(
st
.
isFile
())
{
await
func
(
newSrc
);
}
else
if
(
st
.
isDirectory
())
{
await
fileForEach
(
newSrc
,
func
);
}
}
}
const
newFireUuid
=
v4
();
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire.meta`
,
oldFireUuid
,
newFireUuid
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire`
,
oldFireUuid
,
newFireUuid
);
fileReplace
(
'
settings/builder.json
'
,
oldFireUuid
,
newFireUuid
);
function
createUuidData
(
uuid
)
{
const
shortUuid
=
getShortUuid
(
uuid
);
const
newUuid
=
v4
();
const
newShortUuid
=
getShortUuid
(
newUuid
);
return
{
oldUuid
:
uuid
,
oldShortUuid
:
shortUuid
,
newUuid
:
newUuid
,
newShortUuid
:
newShortUuid
,
};
}
const
newJsUuid
=
v4
();
const
newJsShortUuid
=
getShortUuid
(
newJsUuid
);
const
newJsId
=
v4
().
replace
(
/-/g
,
''
).
substring
(
0
,
oldJsId
.
length
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.ts.meta`
,
oldJsUuid
,
newJsUuid
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.js.meta`
,
oldJsUuid
,
newJsUuid
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire`
,
oldFireUuid
,
newFireUuid
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire`
,
oldJsShortUuid
,
newJsShortUuid
);
fileReplace
(
`assets/
${
folderName
}
/scene/
${
folderName
}
.fire`
,
oldJsId
,
newJsId
);
const
uuidList
=
[];
await
fileForEach
(
path
,
(
path
)
=>
{
const
nameList
=
path
.
split
(
'
.
'
);
if
(
nameList
[
nameList
.
length
-
1
]
==
'
meta
'
)
{
const
data
=
JSON
.
parse
(
fs
.
readFileSync
(
path
));
uuidList
.
push
(
createUuidData
(
data
.
uuid
));
if
(
data
.
subMetas
)
{
for
(
const
key
in
data
.
subMetas
)
{
const
subMet
=
data
.
subMetas
[
key
];
if
(
subMet
.
uuid
)
{
uuidList
.
push
(
createUuidData
(
subMet
.
uuid
));
}
}
}
}
});
const
pathList
=
[
path
,
'
settings
'
,
'
project.json
'
];
for
(
let
i
=
0
;
i
<
pathList
.
length
;
i
++
)
{
const
path
=
pathList
[
i
];
await
fileForEach
(
path
,
(
path
)
=>
{
const
nameList
=
path
.
split
(
'
.
'
);
const
expectNameList
=
[
'
png
'
,
'
jpg
'
,
'
mp3
'
,
'
wav
'
];
if
(
expectNameList
.
includes
(
nameList
[
nameList
.
length
-
1
]))
{
return
;
}
const
data
=
fs
.
readFileSync
(
path
);
uuidList
.
forEach
(
uuiddata
=>
{
if
(
data
.
includes
(
uuiddata
.
oldUuid
))
{
fileReplace
(
path
,
uuiddata
.
oldUuid
,
uuiddata
.
newUuid
);
}
if
(
data
.
includes
(
uuiddata
.
oldShortUuid
))
{
fileReplace
(
path
,
uuiddata
.
oldShortUuid
,
uuiddata
.
newShortUuid
);
}
});
});
}
console
.
log
(
'
build_step_0 完成~!
'
);
}
function
replaceIndexHtml
()
{
function
replaceIndexHtml
()
{
const
data
=
fs
.
readFileSync
(
'
index.html
'
);
fs
.
writeFileSync
(
'
dist/play/index.html
'
,
data
);
}
...
...
@@ -320,56 +349,56 @@ module.exports = {
// 清理旧文件
// 构建form
await
removeDir
(
'
dist/form
'
);
await
buildForm
();
//
await removeDir('dist/form');
//
await buildForm();
// 替换uuid
replaceUuids
();
await
replaceUuids
();
// 改设置为非bundle
changeSettingToWebDesktop
();
//
changeSettingToWebDesktop();
// 构建play
await
removeDir
(
'
dist/play
'
);
await
buildWebDesktop
();
await
copyDir
(
'
build/web-desktop
'
,
'
dist/play
'
);
replaceIndexHtml
();
console
.
log
(
'
构建 web desktop 成功!
'
);
//
//
构建play
//
await removeDir('dist/play');
//
await buildWebDesktop();
//
await copyDir('build/web-desktop', 'dist/play');
//
replaceIndexHtml();
//
console.log('构建 web desktop 成功!');
// 改设置为bundle
changeSettingsToBundle
();
//
//
改设置为bundle
//
changeSettingsToBundle();
await
removeDir
(
'
dist/android
'
);
await
buildAndroidBundle
();
await
copyDir
(
'
build_android/jsb-link/remote
'
,
'
dist/android
'
);
console
.
log
(
'
构建 android bundle 成功!
'
);
//
await removeDir('dist/android');
//
await buildAndroidBundle();
//
await copyDir('build_android/jsb-link/remote', 'dist/android');
//
console.log('构建 android bundle 成功!');
await
removeDir
(
'
dist/ios
'
);
await
buildIosBundle
();
await
copyDir
(
'
build_ios/jsb-link/remote
'
,
'
dist/ios
'
);
console
.
log
(
'
构建 ios bundle 成功!
'
);
//
await removeDir('dist/ios');
//
await buildIosBundle();
//
await copyDir('build_ios/jsb-link/remote', 'dist/ios');
//
console.log('构建 ios bundle 成功!');
await
removeDir
(
'
dist/web_desktop
'
);
await
buildWebBundle
();
await
copyDir
(
`build_web_desktop/web-desktop/assets/
${
projectName
}
`
,
'
dist/web_desktop
'
);
console
.
log
(
'
构建 web bundle 成功!
'
);
//
await removeDir('dist/web_desktop');
//
await buildWebBundle();
//
await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop');
//
console.log('构建 web bundle 成功!');
// 改设置为非bundle
changeSettingToWebDesktop
();
//
//
改设置为非bundle
//
changeSettingToWebDesktop();
createConfigFile
(
projectName
);
//
createConfigFile(projectName);
compressAll
(
projectName
);
//
compressAll(projectName);
await
removeDir
(
'
build
'
);
await
removeDir
(
'
build_android
'
);
await
removeDir
(
'
build_ios
'
);
await
removeDir
(
'
build_web_desktop
'
);
//
await removeDir('build');
//
await removeDir('build_android');
//
await removeDir('build_ios');
//
await removeDir('build_web_desktop');
const
endTime
=
new
Date
().
getTime
();
const
duration
=
new
Date
(
endTime
-
startTime
);
console
.
log
(
`打包完成!`
);
console
.
log
(
`用时
${
duration
.
getMinutes
()}
分
${
duration
.
getSeconds
()}
秒。`
);
//
const endTime = new Date().getTime();
//
const duration = new Date(endTime - startTime);
//
console.log(`打包完成!`);
//
console.log(`用时${duration.getMinutes()}分${duration.getSeconds()}秒。`);
},
buildAndroid
:
async
function
()
{
...
...
@@ -377,7 +406,7 @@ module.exports = {
// 构建前检查
const
projectName
=
build_check
();
// 替换uuid
replaceUuids
();
await
replaceUuids
();
// 改设置为bundle
changeSettingsToBundle
();
...
...
@@ -397,7 +426,7 @@ module.exports = {
// 构建前检查
const
projectName
=
build_check
();
// 替换uuid
replaceUuids
();
await
replaceUuids
();
// 改设置为bundle
changeSettingsToBundle
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment