Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL01
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
WL01
Commits
f967aa90
Commit
f967aa90
authored
Jul 21, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 再尝试一下
parent
95b7686e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
434 deletions
+65
-434
WL01.fire
play/assets/WL01/scene/WL01.fire
+44
-420
WL01.js
play/assets/WL01/scene/WL01.js
+21
-14
No files found.
play/assets/WL01/scene/WL01.fire
View file @
f967aa90
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"__id__": 2
"__id__": 2
},
},
{
{
"__id__": 2
52
"__id__": 2
45
}
}
],
],
"_active": false,
"_active": false,
...
@@ -127,21 +127,18 @@
...
@@ -127,21 +127,18 @@
},
},
{
{
"__id__": 239
"__id__": 239
},
{
"__id__": 242
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 24
9
"__id__": 24
2
},
},
{
{
"__id__": 2
50
"__id__": 2
43
},
},
{
{
"__id__": 2
51
"__id__": 2
44
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13153,379 +13150,6 @@
...
@@ -13153,379 +13150,6 @@
"_originalHeight": 0,
"_originalHeight": 0,
"_id": "7dXRGWhgJH258ElrfYD+8y"
"_id": "7dXRGWhgJH258ElrfYD+8y"
},
},
{
"__type__": "cc.Node",
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 243
}
],
"_active": true,
"_components": [
{
"__id__": 248
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 80
},
"_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": "84iMFM0h1G/46J7tow9WFq"
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 242
},
"_children": [
{
"__id__": 244
}
],
"_active": true,
"_components": [
{
"__id__": 246
},
{
"__id__": 247
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 80
},
"_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": "00sNdeVolLZrTo70rGwX6n"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 512,
"_parent": {
"__id__": 243
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 245
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 80
},
"_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": "cfPicLVtZDV643bUXWTU+f"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 244
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Start",
"_N$string": "Start",
"_fontSize": 50,
"_lineHeight": 50,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "fabe0aa8-cd02-446b-843d-b57b30e55e66"
},
"_isSystemFontUsed": false,
"_spacingX": 0,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_N$cacheMode": 1,
"_id": "b8zMrOdQpNLISqKMOq2zfY"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "7bccr/QtdGMJn71FFDtwqF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"alignMode": 0,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 40,
"_id": "31LISGbMJKCYdCUHBfVYnX"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 242
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 2,
"transition": 2,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 230,
"g": 230,
"b": 230,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 120,
"g": 120,
"b": 120,
"a": 200
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 243
},
"_id": "ecDUB8dalBb4V+qWVVAZ/k"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
@@ -13618,10 +13242,10 @@
...
@@ -13618,10 +13242,10 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 2
53
"__id__": 2
46
},
},
{
{
"__id__": 25
8
"__id__": 25
1
}
}
],
],
"_active": true,
"_active": true,
...
@@ -13679,11 +13303,11 @@
...
@@ -13679,11 +13303,11 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
52
"__id__": 2
45
},
},
"_children": [
"_children": [
{
{
"__id__": 2
54
"__id__": 2
47
}
}
],
],
"_active": true,
"_active": true,
...
@@ -13741,17 +13365,17 @@
...
@@ -13741,17 +13365,17 @@
"_name": "icon_0",
"_name": "icon_0",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
53
"__id__": 2
46
},
},
"_children": [
"_children": [
{
{
"__id__": 2
55
"__id__": 2
48
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 25
7
"__id__": 25
0
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13807,13 +13431,13 @@
...
@@ -13807,13 +13431,13 @@
"_name": "icon_1",
"_name": "icon_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
54
"__id__": 2
47
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 2
56
"__id__": 2
49
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13869,7 +13493,7 @@
...
@@ -13869,7 +13493,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
55
"__id__": 2
48
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -13901,7 +13525,7 @@
...
@@ -13901,7 +13525,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
54
"__id__": 2
47
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -13933,29 +13557,29 @@
...
@@ -13933,29 +13557,29 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
52
"__id__": 2
45
},
},
"_children": [
"_children": [
{
{
"__id__": 25
9
"__id__": 25
2
},
},
{
{
"__id__": 2
61
"__id__": 2
54
},
},
{
{
"__id__": 2
63
"__id__": 2
56
},
},
{
{
"__id__": 2
65
"__id__": 2
58
},
},
{
{
"__id__": 26
7
"__id__": 26
0
},
},
{
{
"__id__": 26
9
"__id__": 26
2
},
},
{
{
"__id__": 2
71
"__id__": 2
64
}
}
],
],
"_active": true,
"_active": true,
...
@@ -14013,13 +13637,13 @@
...
@@ -14013,13 +13637,13 @@
"_name": "correct",
"_name": "correct",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
60
"__id__": 2
53
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14075,7 +13699,7 @@
...
@@ -14075,7 +13699,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 25
9
"__id__": 25
2
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14094,13 +13718,13 @@
...
@@ -14094,13 +13718,13 @@
"_name": "incorrect",
"_name": "incorrect",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
62
"__id__": 2
55
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14156,7 +13780,7 @@
...
@@ -14156,7 +13780,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
61
"__id__": 2
54
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14175,13 +13799,13 @@
...
@@ -14175,13 +13799,13 @@
"_name": "time321",
"_name": "time321",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
64
"__id__": 2
57
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14237,7 +13861,7 @@
...
@@ -14237,7 +13861,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
63
"__id__": 2
56
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14256,13 +13880,13 @@
...
@@ -14256,13 +13880,13 @@
"_name": "victory",
"_name": "victory",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
66
"__id__": 2
59
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14318,7 +13942,7 @@
...
@@ -14318,7 +13942,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
65
"__id__": 2
58
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14337,13 +13961,13 @@
...
@@ -14337,13 +13961,13 @@
"_name": "dizzy",
"_name": "dizzy",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 26
8
"__id__": 26
1
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14399,7 +14023,7 @@
...
@@ -14399,7 +14023,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 26
7
"__id__": 26
0
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14418,13 +14042,13 @@
...
@@ -14418,13 +14042,13 @@
"_name": "laugh",
"_name": "laugh",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
70
"__id__": 2
63
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14480,7 +14104,7 @@
...
@@ -14480,7 +14104,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 26
9
"__id__": 26
2
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14499,13 +14123,13 @@
...
@@ -14499,13 +14123,13 @@
"_name": "lose",
"_name": "lose",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
8
"__id__": 25
1
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
72
"__id__": 2
65
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14561,7 +14185,7 @@
...
@@ -14561,7 +14185,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
71
"__id__": 2
64
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
play/assets/WL01/scene/WL01.js
View file @
f967aa90
...
@@ -162,6 +162,18 @@ cc.Class({
...
@@ -162,6 +162,18 @@ cc.Class({
this
.
initView
();
this
.
initView
();
},
},
startAudio
(){
let
audio_url
=
this
.
data
.
audio_url
;
if
(
audio_url
&&
audio_url
!=
""
){
playAudioByUrl
(
audio_url
,
()
=>
{
this
.
playGame
();
});
}
else
{
this
.
playGame
();
}
},
initView
()
{
initView
()
{
window
.
WL
=
this
;
window
.
WL
=
this
;
this
.
shuffle
(
this
.
data
.
mouses
);
this
.
shuffle
(
this
.
data
.
mouses
);
...
@@ -173,21 +185,16 @@ cc.Class({
...
@@ -173,21 +185,16 @@ cc.Class({
this
.
updateFlagArea
();
this
.
updateFlagArea
();
this
.
title
.
string
=
this
.
data
.
title
;
this
.
title
.
string
=
this
.
data
.
title
;
let
audio_url
=
this
.
data
.
audio_url
;
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
if
(
window
&&
window
.
courseware
)
{
this
.
_start
.
on
(
'
click
'
,()
=>
{
window
.
courseware
.
onEvent
(
"
course-in-screen
"
,
(
data
,
next
)
=>
{
this
.
_start
.
active
=
false
;
this
.
startAudio
();
next
();
if
(
audio_url
&&
audio_url
!=
""
){
});
playAudioByUrl
(
audio_url
,
()
=>
{
}
this
.
playGame
();
else
{
});
this
.
startAudio
();
}
}
else
{
this
.
playGame
();
}
});
...
...
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