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
615d8cb7
Commit
615d8cb7
authored
Jul 21, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 标题表单项
- 标题自动播放 - 321计时 + 点击开始功能
parent
ec11ef81
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
405 additions
and
68 deletions
+405
-68
form.component.html
form/src/app/form/form.component.html
+2
-2
WL01.fire
play/assets/WL01/scene/WL01.fire
+347
-44
WL01.js
play/assets/WL01/scene/WL01.js
+20
-22
start.png
play/assets/WL01/textures/start.png
+0
-0
start.png.meta
play/assets/WL01/textures/start.png.meta
+36
-0
No files found.
form/src/app/form/form.component.html
View file @
615d8cb7
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
<nz-divider
nzText=
"主题"
nzOrientation=
"left"
></nz-divider>
<nz-divider
nzText=
"主题"
nzOrientation=
"left"
></nz-divider>
<div
nz-row
style=
"width: 800;"
>
<div
nz-row
style=
"width: 800;"
>
<div
style=
"display: flex; margin-bottom: 10px;"
>
<
!-- <
div style="display: flex; margin-bottom: 10px;">
<div style="flex:1;margin-left: 10px;">
<div style="flex:1;margin-left: 10px;">
标题
标题
</div>
</div>
<div style="flex:5">
<div style="flex:5">
<input type="text" nz-input placeholder="" [(ngModel)]="item.title" (blur)="saveItem()" style="width: 160px;"/>
<input type="text" nz-input placeholder="" [(ngModel)]="item.title" (blur)="saveItem()" style="width: 160px;"/>
</div>
</div>
</div>
</div>
-->
<div
style=
"display: flex; margin-bottom: 10px;"
>
<div
style=
"display: flex; margin-bottom: 10px;"
>
<div
style=
"flex:1;margin-left: 10px;"
>
<div
style=
"flex:1;margin-left: 10px;"
>
...
...
play/assets/WL01/scene/WL01.fire
View file @
615d8cb7
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"__id__": 2
"__id__": 2
},
},
{
{
"__id__": 2
45
"__id__": 2
51
}
}
],
],
"_active": false,
"_active": false,
...
@@ -127,18 +127,21 @@
...
@@ -127,18 +127,21 @@
},
},
{
{
"__id__": 239
"__id__": 239
},
{
"__id__": 242
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 24
2
"__id__": 24
8
},
},
{
{
"__id__": 24
3
"__id__": 24
9
},
},
{
{
"__id__": 2
44
"__id__": 2
50
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13150,6 +13153,306 @@
...
@@ -13150,6 +13153,306 @@
"_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__": 246
},
{
"__id__": 247
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_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": "27wd2xL5tPfpmY+vMjLqqP"
},
{
"__type__": "cc.Node",
"_name": "start",
"_objFlags": 0,
"_parent": {
"__id__": 242
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 244
},
{
"__id__": 245
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 456,
"height": 102
},
"_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": "82Ls4VyANPTI8+oVrQ08OR"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "48da20e9-d4e5-4907-8f4d-c054da231b2f"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "8dGavDdrZMT7ae7M3UjJrP"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 243
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 18,
"_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": 0,
"_originalHeight": 0,
"_id": "f6YlMwiF5Ijqyvvp0jVz19"
},
{
"__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": null,
"_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__": 242
},
"_id": "e8/uaTqCBDTbiDoKmOjxdR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 242
},
"_enabled": true,
"alignMode": 1,
"_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": 1280,
"_originalHeight": 720,
"_id": "12gJ1+9T9IFpW6KFJOANRF"
},
{
{
"__type__": "cc.Canvas",
"__type__": "cc.Canvas",
"_name": "",
"_name": "",
...
@@ -13242,10 +13545,10 @@
...
@@ -13242,10 +13545,10 @@
},
},
"_children": [
"_children": [
{
{
"__id__": 2
46
"__id__": 2
52
},
},
{
{
"__id__": 25
1
"__id__": 25
7
}
}
],
],
"_active": true,
"_active": true,
...
@@ -13303,11 +13606,11 @@
...
@@ -13303,11 +13606,11 @@
"_name": "img",
"_name": "img",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
45
"__id__": 2
51
},
},
"_children": [
"_children": [
{
{
"__id__": 2
47
"__id__": 2
53
}
}
],
],
"_active": true,
"_active": true,
...
@@ -13365,17 +13668,17 @@
...
@@ -13365,17 +13668,17 @@
"_name": "icon_0",
"_name": "icon_0",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
46
"__id__": 2
52
},
},
"_children": [
"_children": [
{
{
"__id__": 2
48
"__id__": 2
54
}
}
],
],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 25
0
"__id__": 25
6
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13431,13 +13734,13 @@
...
@@ -13431,13 +13734,13 @@
"_name": "icon_1",
"_name": "icon_1",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
47
"__id__": 2
53
},
},
"_children": [],
"_children": [],
"_active": false,
"_active": false,
"_components": [
"_components": [
{
{
"__id__": 2
49
"__id__": 2
55
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13493,7 +13796,7 @@
...
@@ -13493,7 +13796,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
48
"__id__": 2
54
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -13525,7 +13828,7 @@
...
@@ -13525,7 +13828,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
47
"__id__": 2
53
},
},
"_enabled": true,
"_enabled": true,
"_materials": [
"_materials": [
...
@@ -13557,29 +13860,29 @@
...
@@ -13557,29 +13860,29 @@
"_name": "audio",
"_name": "audio",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 2
45
"__id__": 2
51
},
},
"_children": [
"_children": [
{
{
"__id__": 25
2
"__id__": 25
8
},
},
{
{
"__id__": 2
54
"__id__": 2
60
},
},
{
{
"__id__": 2
56
"__id__": 2
62
},
},
{
{
"__id__": 2
58
"__id__": 2
64
},
},
{
{
"__id__": 26
0
"__id__": 26
6
},
},
{
{
"__id__": 26
2
"__id__": 26
8
},
},
{
{
"__id__": 2
64
"__id__": 2
70
}
}
],
],
"_active": true,
"_active": true,
...
@@ -13637,13 +13940,13 @@
...
@@ -13637,13 +13940,13 @@
"_name": "correct",
"_name": "correct",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 25
3
"__id__": 25
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13699,7 +14002,7 @@
...
@@ -13699,7 +14002,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 25
2
"__id__": 25
8
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -13718,13 +14021,13 @@
...
@@ -13718,13 +14021,13 @@
"_name": "incorrect",
"_name": "incorrect",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
55
"__id__": 2
61
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13780,7 +14083,7 @@
...
@@ -13780,7 +14083,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
54
"__id__": 2
60
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -13799,13 +14102,13 @@
...
@@ -13799,13 +14102,13 @@
"_name": "time321",
"_name": "time321",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
57
"__id__": 2
63
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13861,7 +14164,7 @@
...
@@ -13861,7 +14164,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
56
"__id__": 2
62
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -13880,13 +14183,13 @@
...
@@ -13880,13 +14183,13 @@
"_name": "victory",
"_name": "victory",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
59
"__id__": 2
65
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -13942,7 +14245,7 @@
...
@@ -13942,7 +14245,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
58
"__id__": 2
64
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -13961,13 +14264,13 @@
...
@@ -13961,13 +14264,13 @@
"_name": "dizzy",
"_name": "dizzy",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 26
1
"__id__": 26
7
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14023,7 +14326,7 @@
...
@@ -14023,7 +14326,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 26
0
"__id__": 26
6
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14042,13 +14345,13 @@
...
@@ -14042,13 +14345,13 @@
"_name": "laugh",
"_name": "laugh",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 26
3
"__id__": 26
9
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14104,7 +14407,7 @@
...
@@ -14104,7 +14407,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 26
2
"__id__": 26
8
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
@@ -14123,13 +14426,13 @@
...
@@ -14123,13 +14426,13 @@
"_name": "lose",
"_name": "lose",
"_objFlags": 0,
"_objFlags": 0,
"_parent": {
"_parent": {
"__id__": 25
1
"__id__": 25
7
},
},
"_children": [],
"_children": [],
"_active": true,
"_active": true,
"_components": [
"_components": [
{
{
"__id__": 2
65
"__id__": 2
71
}
}
],
],
"_prefab": null,
"_prefab": null,
...
@@ -14185,7 +14488,7 @@
...
@@ -14185,7 +14488,7 @@
"_name": "",
"_name": "",
"_objFlags": 0,
"_objFlags": 0,
"node": {
"node": {
"__id__": 2
64
"__id__": 2
70
},
},
"_enabled": true,
"_enabled": true,
"_clip": {
"_clip": {
...
...
play/assets/WL01/scene/WL01.js
View file @
615d8cb7
...
@@ -162,15 +162,6 @@ cc.Class({
...
@@ -162,15 +162,6 @@ cc.Class({
this
.
initView
();
this
.
initView
();
},
},
startAudio
(){
let
audio_url
=
this
.
data
.
audio_url
;
if
(
audio_url
&&
audio_url
!=
""
){
playAudioByUrl
(
audio_url
,
()
=>
{
this
.
playGame
();
});
}
},
initView
()
{
initView
()
{
window
.
WL
=
this
;
window
.
WL
=
this
;
this
.
shuffle
(
this
.
data
.
mouses
);
this
.
shuffle
(
this
.
data
.
mouses
);
...
@@ -183,15 +174,20 @@ cc.Class({
...
@@ -183,15 +174,20 @@ cc.Class({
this
.
title
.
string
=
this
.
data
.
title
;
this
.
title
.
string
=
this
.
data
.
title
;
if
(
window
&&
window
.
courseware
)
{
window
.
courseware
.
onEvent
(
"
course-in-screen
"
,
(
data
,
next
)
=>
{
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
this
.
startAudio
();
this
.
_start
.
on
(
'
click
'
,()
=>
{
next
();
this
.
_start
.
active
=
false
;
});
// let audio_url = this.data.audio_url;
}
// if (audio_url && audio_url!=""){
else
{
// playAudioByUrl(audio_url, ()=>{
this
.
startAudio
();
// this.playGame();
}
// });
// }
// else{
this
.
playGame
();
// }
});
...
@@ -252,10 +248,10 @@ cc.Class({
...
@@ -252,10 +248,10 @@ cc.Class({
playGame
(){
playGame
(){
this
.
updateFlagArea
(()
=>
{
this
.
updateFlagArea
(()
=>
{
this
.
playAudioByName
(
'
time321
'
);
//
this.playAudioByName('time321');
this
.
playTimer
(()
=>
{
//
this.playTimer(()=>{
this
.
nextMouse
();
this
.
nextMouse
();
})
//
})
});
});
},
},
...
@@ -394,7 +390,9 @@ cc.Class({
...
@@ -394,7 +390,9 @@ cc.Class({
if
(
this
.
allWrong
()
==
true
){
if
(
this
.
allWrong
()
==
true
){
this
.
playAudioByName
(
'
lose
'
);
this
.
playAudioByName
(
'
lose
'
);
this
.
_comeon
.
active
=
true
;
this
.
_comeon
.
active
=
true
;
playDragonBoneAnimation
(
this
.
_comeon
,
'
newAnimation
'
);
playDragonBoneAnimation
(
this
.
_comeon
,
'
newAnimation
'
,
1
,
()
=>
{
this
.
_comeon
.
active
=
false
;
});
}
}
else
{
else
{
this
.
playAudioByName
(
'
victory
'
);
this
.
playAudioByName
(
'
victory
'
);
...
...
play/assets/WL01/textures/start.png
0 → 100644
View file @
615d8cb7
5.42 KB
play/assets/WL01/textures/start.png.meta
0 → 100644
View file @
615d8cb7
{
"ver": "2.3.5",
"uuid": "b46e49c9-e06e-4eda-bd45-d6853dc66681",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 456,
"height": 102,
"platformSettings": {},
"subMetas": {
"start": {
"ver": "1.0.4",
"uuid": "48da20e9-d4e5-4907-8f4d-c054da231b2f",
"rawTextureUuid": "b46e49c9-e06e-4eda-bd45-d6853dc66681",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 456,
"height": 102,
"rawWidth": 456,
"rawHeight": 102,
"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