Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MRBR_video
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
MRBR_video
Commits
fccce5a8
Commit
fccce5a8
authored
Nov 14, 2022
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加视频背景
parent
23ac0969
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
355 additions
and
123 deletions
+355
-123
MRBR_video.fire
assets/MRBR_video/scene/MRBR_video.fire
+304
-121
MRBR_video.js
assets/MRBR_video/scene/MRBR_video.js
+15
-2
bg_video.jpg
assets/MRBR_video/texture/bg_video.jpg
+0
-0
bg_video.jpg.meta
assets/MRBR_video/texture/bg_video.jpg.meta
+36
-0
No files found.
assets/MRBR_video/scene/MRBR_video.fire
View file @
fccce5a8
...
@@ -72,28 +72,31 @@
...
@@ -72,28 +72,31 @@
"__id__": 3
"__id__": 3
},
},
{
{
"__id__":
6
"__id__":
7
},
},
{
{
"__id__":
8
"__id__":
10
},
},
{
{
"__id__": 1
0
"__id__": 1
2
},
},
{
{
"__id__": 39
"__id__": 14
},
{
"__id__": 43
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
5
"__id__": 6
9
},
},
{
{
"__id__":
66
"__id__":
70
},
},
{
{
"__id__":
67
"__id__":
71
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -144,6 +147,186 @@
...
@@ -144,6 +147,186 @@
"groupIndex": 0,
"groupIndex": 0,
"_id": "a5esZu+45LA5mBpvttspPD"
"_id": "a5esZu+45LA5mBpvttspPD"
},
},
{
"__type__": "cc.Node",
"_name": "video_bg",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 4
}
],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 940
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "05K9heyf1A5aDb5SYhexfW"
},
{
"__type__": "cc.Node",
"_name": "bg_video",
"_objFlags": 0,
"_parent": {
"__id__": 3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 2000,
"height": 2000
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "bf9K6uSIJLK6LC8Qyw6+eT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 4
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "5509c4ec-1745-4fdd-9a1d-af63bae692a8"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "52rlpVhXVHLbhYxcLX3uSD"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_spriteFrame": null,
"_type": 0,
"_segments": 64,
"_N$alphaThreshold": 0.1,
"_N$inverted": true,
"_id": "74zvqtP2JFya0y/suNoRwM"
},
{
{
"__type__": "cc.Node",
"__type__": "cc.Node",
"_name": "Main Camera",
"_name": "Main Camera",
...
@@ -155,10 +338,10 @@
...
@@ -155,10 +338,10 @@
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
4
"__id__":
8
},
},
{
{
"__id__":
5
"__id__":
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -214,7 +397,7 @@
...
@@ -214,7 +397,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
3
"__id__":
7
},
},
"_enabled": true,
"_enabled": true,
"_cullingMask": 4294967295,
"_cullingMask": 4294967295,
...
@@ -250,7 +433,7 @@
...
@@ -250,7 +433,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
3
"__id__":
7
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -283,7 +466,7 @@
...
@@ -283,7 +466,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
7
"__id__":
11
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -339,7 +522,7 @@
...
@@ -339,7 +522,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
6
"__id__":
10
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -385,7 +568,7 @@
...
@@ -385,7 +568,7 @@
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__":
9
"__id__":
13
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -441,7 +624,7 @@
...
@@ -441,7 +624,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
8
"__id__":
12
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -485,32 +668,32 @@
...
@@ -485,32 +668,32 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 1
1
"__id__": 1
5
},
},
{
{
"__id__":
17
"__id__":
21
},
},
{
{
"__id__":
19
"__id__":
23
},
},
{
{
"__id__": 3
0
"__id__": 3
4
},
},
{
{
"__id__": 3
3
"__id__": 3
7
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
36
"__id__":
40
},
},
{
{
"__id__":
37
"__id__":
41
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
38
"__id__":
42
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -564,21 +747,21 @@
...
@@ -564,21 +747,21 @@
"_name": "progress",
"_name": "progress",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
0
"__id__": 1
4
},
},
"_children": [
"_children": [
{
{
"__id__": 1
2
"__id__": 1
6
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
5
"__id__": 1
9
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
16
"__id__":
20
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -632,17 +815,17 @@
...
@@ -632,17 +815,17 @@
"_name": "bar",
"_name": "bar",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
1
"__id__": 1
5
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 1
3
"__id__": 1
7
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 1
4
"__id__": 1
8
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -696,7 +879,7 @@
...
@@ -696,7 +879,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
2
"__id__": 1
6
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -726,7 +909,7 @@
...
@@ -726,7 +909,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -739,7 +922,7 @@
...
@@ -739,7 +922,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
1
"__id__": 1
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -769,7 +952,7 @@
...
@@ -769,7 +952,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -782,13 +965,13 @@
...
@@ -782,13 +965,13 @@
"_name": "markNode",
"_name": "markNode",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
0
"__id__": 1
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__":
18
"__id__":
22
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -840,7 +1023,7 @@
...
@@ -840,7 +1023,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -853,23 +1036,23 @@
...
@@ -853,23 +1036,23 @@
"_name": "controlButton",
"_name": "controlButton",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
0
"__id__": 1
4
},
},
"_children": [
"_children": [
{
{
"__id__": 2
0
"__id__": 2
4
},
},
{
{
"__id__": 2
3
"__id__": 2
7
},
},
{
{
"__id__":
26
"__id__":
30
}
}
],
],
"_active": true,
"_active": true,
"_components": [],
"_components": [],
"_prefab": {
"_prefab": {
"__id__":
29
"__id__":
33
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -923,17 +1106,17 @@
...
@@ -923,17 +1106,17 @@
"_name": "play",
"_name": "play",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
19
"__id__":
23
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
1
"__id__": 2
5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
2
"__id__": 2
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -987,7 +1170,7 @@
...
@@ -987,7 +1170,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
0
"__id__": 2
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1017,7 +1200,7 @@
...
@@ -1017,7 +1200,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1030,17 +1213,17 @@
...
@@ -1030,17 +1213,17 @@
"_name": "pause",
"_name": "pause",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
19
"__id__":
23
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
4
"__id__": 2
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 2
5
"__id__": 2
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1094,7 +1277,7 @@
...
@@ -1094,7 +1277,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
3
"__id__": 2
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1124,7 +1307,7 @@
...
@@ -1124,7 +1307,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1137,17 +1320,17 @@
...
@@ -1137,17 +1320,17 @@
"_name": "replay",
"_name": "replay",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
19
"__id__":
23
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
27
"__id__":
31
}
}
],
],
"_prefab": {
"_prefab": {
"__id__":
28
"__id__":
32
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1201,7 +1384,7 @@
...
@@ -1201,7 +1384,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
26
"__id__":
30
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1231,7 +1414,7 @@
...
@@ -1231,7 +1414,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1242,7 +1425,7 @@
...
@@ -1242,7 +1425,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1255,17 +1438,17 @@
...
@@ -1255,17 +1438,17 @@
"_name": "dragButton",
"_name": "dragButton",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
0
"__id__": 1
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 3
1
"__id__": 3
5
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 3
2
"__id__": 3
6
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1319,7 +1502,7 @@
...
@@ -1319,7 +1502,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
0
"__id__": 3
4
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1349,7 +1532,7 @@
...
@@ -1349,7 +1532,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1362,17 +1545,17 @@
...
@@ -1362,17 +1545,17 @@
"_name": "markPoint",
"_name": "markPoint",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 1
0
"__id__": 1
4
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 3
4
"__id__": 3
8
}
}
],
],
"_prefab": {
"_prefab": {
"__id__": 3
5
"__id__": 3
9
},
},
"_opacity": 255,
"_opacity": 255,
"_color": {
"_color": {
...
@@ -1426,7 +1609,7 @@
...
@@ -1426,7 +1609,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 3
3
"__id__": 3
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -1456,7 +1639,7 @@
...
@@ -1456,7 +1639,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1469,7 +1652,7 @@
...
@@ -1469,7 +1652,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
0
"__id__": 1
4
},
},
"_enabled": true,
"_enabled": true,
"_id": "42XWQfk9tE94NY0efe9K5z"
"_id": "42XWQfk9tE94NY0efe9K5z"
...
@@ -1479,7 +1662,7 @@
...
@@ -1479,7 +1662,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 1
0
"__id__": 1
4
},
},
"_enabled": true,
"_enabled": true,
"alignMode": 1,
"alignMode": 1,
...
@@ -1504,7 +1687,7 @@
...
@@ -1504,7 +1687,7 @@
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
"root": {
"root": {
"__id__": 1
0
"__id__": 1
4
},
},
"asset": {
"asset": {
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
"__uuid__": "a1cb871b-6ef5-410e-802f-f3a1c2d185e9"
...
@@ -1521,13 +1704,13 @@
...
@@ -1521,13 +1704,13 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 4
0
"__id__": 4
4
},
},
{
{
"__id__": 5
5
"__id__": 5
9
},
},
{
{
"__id__":
58
"__id__":
62
}
}
],
],
"_active": false,
"_active": false,
...
@@ -1585,15 +1768,9 @@
...
@@ -1585,15 +1768,9 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
39
"__id__":
43
},
},
"_children": [
"_children": [
{
"__id__": 41
},
{
"__id__": 43
},
{
{
"__id__": 45
"__id__": 45
},
},
...
@@ -1608,6 +1785,12 @@
...
@@ -1608,6 +1785,12 @@
},
},
{
{
"__id__": 53
"__id__": 53
},
{
"__id__": 55
},
{
"__id__": 57
}
}
],
],
"_active": true,
"_active": true,
...
@@ -1665,13 +1848,13 @@
...
@@ -1665,13 +1848,13 @@
"_name": "go_1",
"_name": "go_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
2
"__id__": 4
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1727,7 +1910,7 @@
...
@@ -1727,7 +1910,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
1
"__id__": 4
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1755,13 +1938,13 @@
...
@@ -1755,13 +1938,13 @@
"_name": "black",
"_name": "black",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 4
4
"__id__": 4
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1817,7 +2000,7 @@
...
@@ -1817,7 +2000,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
3
"__id__": 4
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1845,13 +2028,13 @@
...
@@ -1845,13 +2028,13 @@
"_name": "go_3",
"_name": "go_3",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
46
"__id__":
50
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1907,7 +2090,7 @@
...
@@ -1907,7 +2090,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 4
5
"__id__": 4
9
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -1935,13 +2118,13 @@
...
@@ -1935,13 +2118,13 @@
"_name": "go_2",
"_name": "go_2",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
48
"__id__":
52
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -1997,7 +2180,7 @@
...
@@ -1997,7 +2180,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
47
"__id__":
51
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2025,13 +2208,13 @@
...
@@ -2025,13 +2208,13 @@
"_name": "start_title",
"_name": "start_title",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
0
"__id__": 5
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2087,7 +2270,7 @@
...
@@ -2087,7 +2270,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
49
"__id__":
53
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2115,13 +2298,13 @@
...
@@ -2115,13 +2298,13 @@
"_name": "go_0",
"_name": "go_0",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
2
"__id__": 5
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2177,7 +2360,7 @@
...
@@ -2177,7 +2360,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
1
"__id__": 5
5
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2205,13 +2388,13 @@
...
@@ -2205,13 +2388,13 @@
"_name": "light",
"_name": "light",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 4
0
"__id__": 4
4
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 5
4
"__id__": 5
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2267,7 +2450,7 @@
...
@@ -2267,7 +2450,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 5
3
"__id__": 5
7
},
},
"_enabled": true,
"_enabled": true,
"_materials": [],
"_materials": [],
...
@@ -2295,11 +2478,11 @@
...
@@ -2295,11 +2478,11 @@
"_name": "font",
"_name": "font",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
39
"__id__":
43
},
},
"_children": [
"_children": [
{
{
"__id__":
56
"__id__":
60
}
}
],
],
"_active": true,
"_active": true,
...
@@ -2357,13 +2540,13 @@
...
@@ -2357,13 +2540,13 @@
"_name": "GOTHICB_1",
"_name": "GOTHICB_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 5
5
"__id__": 5
9
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__":
57
"__id__":
61
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2419,7 +2602,7 @@
...
@@ -2419,7 +2602,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
56
"__id__":
60
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -2454,17 +2637,17 @@
...
@@ -2454,17 +2637,17 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
39
"__id__":
43
},
},
"_children": [
"_children": [
{
{
"__id__":
59
"__id__":
63
},
},
{
{
"__id__": 6
1
"__id__": 6
5
},
},
{
{
"__id__": 6
3
"__id__": 6
7
}
}
],
],
"_active": true,
"_active": true,
...
@@ -2522,13 +2705,13 @@
...
@@ -2522,13 +2705,13 @@
"_name": "goodjob",
"_name": "goodjob",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
58
"__id__":
62
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
0
"__id__": 6
4
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2584,7 +2767,7 @@
...
@@ -2584,7 +2767,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__":
59
"__id__":
63
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2603,13 +2786,13 @@
...
@@ -2603,13 +2786,13 @@
"_name": "ready",
"_name": "ready",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
58
"__id__":
62
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
2
"__id__": 6
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2665,7 +2848,7 @@
...
@@ -2665,7 +2848,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
1
"__id__": 6
5
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2684,13 +2867,13 @@
...
@@ -2684,13 +2867,13 @@
"_name": "go",
"_name": "go",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__":
58
"__id__":
62
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 6
4
"__id__": 6
8
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -2746,7 +2929,7 @@
...
@@ -2746,7 +2929,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 6
3
"__id__": 6
7
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -2815,7 +2998,7 @@
...
@@ -2815,7 +2998,7 @@
"baseWidth": 1280,
"baseWidth": 1280,
"baseHeight": 940,
"baseHeight": 940,
"videoControlBar": {
"videoControlBar": {
"__id__": 1
0
"__id__": 1
4
},
},
"_id": "7akLvWOt5IlbhsZJIcu0P1"
"_id": "7akLvWOt5IlbhsZJIcu0P1"
}
}
...
...
assets/MRBR_video/scene/MRBR_video.js
View file @
fccce5a8
...
@@ -781,6 +781,13 @@ cc.Class({
...
@@ -781,6 +781,13 @@ cc.Class({
// this.checkStart();
// this.checkStart();
},
},
// 设置视频背景
initVideoBg
(
width
,
height
)
{
const
maskNode
=
cc
.
find
(
'
Canvas/video_bg
'
).
getComponent
(
cc
.
Mask
);
maskNode
.
width
=
width
;
maskNode
.
height
=
height
;
},
getVideoUrl
(
callback
)
{
getVideoUrl
(
callback
)
{
const
url1
=
this
.
data
.
video_url
;
const
url1
=
this
.
data
.
video_url
;
const
url2
=
url1
.
replace
(
/.mp4$/g
,
"
_m.mp4
"
);
const
url2
=
url1
.
replace
(
/.mp4$/g
,
"
_m.mp4
"
);
...
@@ -1047,8 +1054,14 @@ cc.Class({
...
@@ -1047,8 +1054,14 @@ cc.Class({
console
.
log
(
"
in initVideoRemote url:
"
,
url
);
console
.
log
(
"
in initVideoRemote url:
"
,
url
);
const
videoSizeW
=
1920
;
const
videoConfigSize
=
this
.
data
.
videoType
.
solit
(
'
_
'
);
const
videoSizeH
=
1080
;
let
videoSizeW
=
1920
;
let
videoSizeH
=
1080
;
if
(
videoConfigSize
.
length
==
2
&&
!
isNaN
(
Number
(
videoConfigSize
[
0
]))
&&
!
isNaN
(
Number
(
videoConfigSize
[
1
])))
{
videoSizeW
=
Number
(
videoConfigSize
[
0
]);
videoSizeH
=
Number
(
videoConfigSize
[
1
]);
}
this
.
initVideoBg
(
videoSizeW
,
videoSizeH
);
const
videoRemoteNode
=
new
cc
.
Node
();
const
videoRemoteNode
=
new
cc
.
Node
();
videoRemoteNode
.
width
=
videoSizeW
;
videoRemoteNode
.
width
=
videoSizeW
;
...
...
assets/MRBR_video/texture/bg_video.jpg
0 → 100644
View file @
fccce5a8
81.4 KB
assets/MRBR_video/texture/bg_video.jpg.meta
0 → 100644
View file @
fccce5a8
{
"ver": "2.3.5",
"uuid": "881bc070-a78c-4362-9165-750f7ebd04a7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2000,
"height": 2000,
"platformSettings": {},
"subMetas": {
"bg_video": {
"ver": "1.0.4",
"uuid": "5509c4ec-1745-4fdd-9a1d-af63bae692a8",
"rawTextureUuid": "881bc070-a78c-4362-9165-750f7ebd04a7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2000,
"height": 2000,
"rawWidth": 2000,
"rawHeight": 2000,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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