Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL02
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
WL02
Commits
78cf8d8c
Commit
78cf8d8c
authored
Jul 21, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 全错动画 音效
- 表单 标题声音 - 321动画 # 打错后立即打对
parent
58284ff8
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
674 additions
and
70 deletions
+674
-70
form.component.html
form/src/app/form/form.component.html
+2
-2
lose.mp3
play/assets/WL02/audios/lose.mp3
+0
-0
lose.mp3.meta
play/assets/WL02/audios/lose.mp3.meta
+7
-0
victory.mp3
play/assets/WL02/audios/victory.mp3
+0
-0
victory.mp3.meta
play/assets/WL02/audios/victory.mp3.meta
+1
-1
comeon_ske.json
play/assets/WL02/dragonBones/comeon_ske.json
+1
-0
comeon_ske.json.meta
play/assets/WL02/dragonBones/comeon_ske.json.meta
+5
-0
comeon_tex.json
play/assets/WL02/dragonBones/comeon_tex.json
+1
-0
comeon_tex.json.meta
play/assets/WL02/dragonBones/comeon_tex.json.meta
+5
-0
comeon_tex.png
play/assets/WL02/dragonBones/comeon_tex.png
+0
-0
comeon_tex.png.meta
play/assets/WL02/dragonBones/comeon_tex.png.meta
+36
-0
sound.anim
play/assets/WL02/dragonBones/sound.anim
+19
-11
WL02.fire
play/assets/WL02/scene/WL02.fire
+521
-41
WL02.js
play/assets/WL02/scene/WL02.js
+40
-15
start.png
play/assets/WL02/textures/start.png
+0
-0
start.png.meta
play/assets/WL02/textures/start.png.meta
+36
-0
No files found.
form/src/app/form/form.component.html
View file @
78cf8d8c
...
...
@@ -11,14 +11,14 @@
</div>
</div>
<div
style=
"display: flex; margin-bottom: 10px;"
>
<
!-- <
div style="display: flex; margin-bottom: 10px;">
<div style="flex:1;margin-left: 10px;">
音频
</div>
<div style="flex:5">
<app-audio-recorder [audioUrl]="item.audio_url" (audioUploaded)="onAudioUploadSuccess($event, item, 'audio_url')" ></app-audio-recorder>
</div>
</div>
</div>
-->
<div
style=
"display: flex; margin-bottom: 10px;"
>
<div
style=
"flex:1; margin-left: 10px;"
>
...
...
play/assets/WL02/audios/lose.mp3
0 → 100644
View file @
78cf8d8c
File added
play/assets/WL02/audios/lose.mp3.meta
0 → 100644
View file @
78cf8d8c
{
"ver": "2.0.1",
"uuid": "5d1f8368-bddf-471a-847a-e2a6876ec5f0",
"downloadMode": 0,
"duration": 3.761633,
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/audios/victory.mp3
View file @
78cf8d8c
No preview for this file type
play/assets/WL02/audios/victory.mp3.meta
View file @
78cf8d8c
...
...
@@ -2,6 +2,6 @@
"ver": "2.0.1",
"uuid": "8c14b3b8-8840-4464-bfee-0e9e1e70aac2",
"downloadMode": 0,
"duration":
3.787755
,
"duration":
2.298776
,
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/comeon_ske.json
0 → 100644
View file @
78cf8d8c
{
"frameRate"
:
24
,
"name"
:
"comeon"
,
"version"
:
"5.5"
,
"compatibleVersion"
:
"5.5"
,
"armature"
:[{
"type"
:
"Armature"
,
"frameRate"
:
24
,
"name"
:
"Armature"
,
"aabb"
:{
"x"
:
-360.46
,
"y"
:
-155.14
,
"width"
:
720
,
"height"
:
199
},
"bone"
:[{
"name"
:
"root"
},{
"name"
:
"WL-comeon"
,
"parent"
:
"root"
,
"transform"
:{
"x"
:
-2.65
,
"y"
:
-22.55
}}],
"slot"
:[{
"name"
:
"WL-comeon"
,
"parent"
:
"WL-comeon"
}],
"skin"
:[{
"slot"
:[{
"name"
:
"WL-comeon"
,
"display"
:[{
"name"
:
"WL-comeon"
,
"transform"
:{
"x"
:
2.19
,
"y"
:
-33.09
}}]}]}],
"animation"
:[{
"duration"
:
34
,
"playTimes"
:
0
,
"name"
:
"newAnimation"
,
"bone"
:[{
"name"
:
"WL-comeon"
,
"translateFrame"
:[{
"duration"
:
12
,
"tweenEasing"
:
0
,
"y"
:
-477.5
},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"y"
:
24.18
},{
"duration"
:
6
,
"tweenEasing"
:
0
,
"y"
:
-2.9
},{
"duration"
:
10
,
"tweenEasing"
:
0
,
"y"
:
24.18
},{
"duration"
:
0
,
"y"
:
567.5
}]}]}],
"defaultActions"
:[{
"gotoAndPlay"
:
"newAnimation"
}],
"canvas"
:{
"width"
:
1280
,
"height"
:
720
}}]}
\ No newline at end of file
play/assets/WL02/dragonBones/comeon_ske.json.meta
0 → 100644
View file @
78cf8d8c
{
"ver": "1.0.1",
"uuid": "38dc6f23-ad7c-40aa-b453-55fcf4ef11f2",
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/comeon_tex.json
0 → 100644
View file @
78cf8d8c
{
"width"
:
1024
,
"imagePath"
:
"comeon_tex.png"
,
"height"
:
256
,
"name"
:
"comeon"
,
"SubTexture"
:[{
"width"
:
720
,
"y"
:
1
,
"height"
:
199
,
"name"
:
"WL-comeon"
,
"x"
:
1
}]}
\ No newline at end of file
play/assets/WL02/dragonBones/comeon_tex.json.meta
0 → 100644
View file @
78cf8d8c
{
"ver": "1.0.1",
"uuid": "fabcd065-ac14-49cf-9f17-b066de40f358",
"subMetas": {}
}
\ No newline at end of file
play/assets/WL02/dragonBones/comeon_tex.png
0 → 100644
View file @
78cf8d8c
116 KB
play/assets/WL02/dragonBones/comeon_tex.png.meta
0 → 100644
View file @
78cf8d8c
{
"ver": "2.3.5",
"uuid": "bfacd412-f2b8-4bdd-a557-79117529901e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 256,
"platformSettings": {},
"subMetas": {
"comeon_tex": {
"ver": "1.0.4",
"uuid": "277729c8-034d-4837-827c-2da49aa5498e",
"rawTextureUuid": "bfacd412-f2b8-4bdd-a557-79117529901e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -151,
"offsetY": 27.5,
"trimX": 1,
"trimY": 1,
"width": 720,
"height": 199,
"rawWidth": 1024,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
play/assets/WL02/dragonBones/sound.anim
View file @
78cf8d8c
...
...
@@ -3,7 +3,7 @@
"_name": "sound",
"_objFlags": 0,
"_native": "",
"_duration":
0.25
,
"_duration":
1
,
"sample": 60,
"speed": 1,
"wrapMode": 2,
...
...
@@ -17,24 +17,28 @@
"value": true
},
{
"frame": 0.
05
,
"frame": 0.
16666666666666666
,
"value": false
},
{
"frame": 0.
1
,
"frame": 0.
3333333333333333
,
"value": true
},
{
"frame": 0.
1
5,
"frame": 0.5,
"value": false
},
{
"frame": 0.
2
,
"frame": 0.
6666666666666666
,
"value": true
},
{
"frame": 0.
25
,
"frame": 0.
8333333333333334
,
"value": false
},
{
"frame": 1,
"value": true
}
]
}
...
...
@@ -47,24 +51,28 @@
"value": false
},
{
"frame": 0.
05
,
"frame": 0.
16666666666666666
,
"value": true
},
{
"frame": 0.
1
,
"frame": 0.
3333333333333333
,
"value": false
},
{
"frame": 0.
1
5,
"frame": 0.5,
"value": true
},
{
"frame": 0.
2
,
"frame": 0.
6666666666666666
,
"value": false
},
{
"frame": 0.
25
,
"frame": 0.
8333333333333334
,
"value": true
},
{
"frame": 1,
"value": false
}
]
}
...
...
play/assets/WL02/scene/WL02.fire
View file @
78cf8d8c
...
...
@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 1
13
"__id__": 1
21
}
],
"_active": false,
...
...
@@ -85,18 +85,24 @@
},
{
"__id__": 104
},
{
"__id__": 110
},
{
"__id__": 116
}
],
"_active": true,
"_components": [
{
"__id__": 11
0
"__id__": 11
8
},
{
"__id__": 11
1
"__id__": 11
9
},
{
"__id__": 1
12
"__id__": 1
20
}
],
"_prefab": null,
...
...
@@ -3655,7 +3661,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 48,
"height": 4
5
"height": 4
6
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -3667,7 +3673,7 @@
"ctor": "Float64Array",
"array": [
-31.18,
-5
.5
,
-5,
0,
0,
0,
...
...
@@ -3710,7 +3716,7 @@
"__uuid__": "e24bb3c9-8ed9-4f0e-8df8-72fc6a012b12"
},
"_type": 0,
"_sizeMode":
1
,
"_sizeMode":
0
,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
...
...
@@ -5420,177 +5426,27 @@
"_width": 23,
"_id": "18KpZ5HgxA2JcSE8CdIA4V"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": false,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_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": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "f4edeRi+NdAabqAkVYRwFjK",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"flys": [
{
"__id__": 6
},
{
"__id__": 25
}
],
"flyPositions": [
{
"__id__": 62
},
{
"__id__": 63
}
],
"flyVirus": [
{
"__id__": 13
},
{
"__id__": 32
}
],
"virusOks": [
{
"__id__": 52
},
{
"__id__": 57
}
],
"titleText": {
"__id__": 92
},
"_id": "e687yyoRBIzZAOVRL8Sseh"
},
{
"__type__": "cc.Node",
"_name": "
res
",
"_name": "
start
",
"_objFlags": 0,
"_parent": {
"__id__":
1
"__id__":
2
},
"_children": [
{
"__id__": 114
},
{
"__id__": 119
},
{
"__id__": 130
"__id__": 111
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
-69.655,
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": "0aAzbH6R1E+6AmGRrkKa5O"
},
"_components": [
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 113
"__id__": 114
},
"_children": [
{
"__id__": 115
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
...
...
@@ -5602,8 +5458,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
"width":
128
0,
"height":
72
0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -5637,24 +5493,23 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
53LUHHG2pEr79fyrvazXJs
"
"_id": "
6absPXEfpB6ZCZtitXqca7
"
},
{
"__type__": "cc.Node",
"_name": "
flyswatter
",
"_name": "
start
",
"_objFlags": 0,
"_parent": {
"__id__": 11
4
"__id__": 11
0
},
"_children": [
{
"__id__": 116
}
],
"_children": [],
"_active": true,
"_components": [
{
"__id__": 118
"__id__": 112
},
{
"__id__": 113
}
],
"_prefab": null,
...
...
@@ -5668,8 +5523,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width":
32
,
"height":
46
"width":
456
,
"height":
102
},
"_anchorPoint": {
"__type__": "cc.Vec2",
...
...
@@ -5703,59 +5558,600 @@
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "
b7gLa2umtNuJ8+128NUae7
"
"_id": "
8fdxkVSxxKL4WabH7xfzll
"
},
{
"__type__": "cc.
Nod
e",
"_name": "
icon_1
",
"__type__": "cc.
Sprit
e",
"_name": "",
"_objFlags": 0,
"
_parent
": {
"__id__": 11
5
"
node
": {
"__id__": 11
1
},
"_children": [],
"_active": false,
"_components": [
"_enabled": true,
"_materials": [
{
"__
id__": 117
"__
uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 54
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "86c61d4f-3fc6-49f0-9cd5-a30c42d981c9"
},
"_anchorPoint": {
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__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
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "87WnHDIDNE45WQqNn/N9gj"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 111
},
"_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": "25A1SJoh9GtogC7n60a9RI"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_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": "85KGNeIFRKOJ5k2AcoTzQ5"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"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": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_id": "3b/KwNc+JEs6lozlhTbgqm"
},
{
"__type__": "cc.Node",
"_name": "comeon",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 117
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 199
},
"_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": "7aPbj5GKJK7L4DWdAwDXMK"
},
{
"__type__": "dragonBones.ArmatureDisplay",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_armatureName": "Armature",
"_animationName": "",
"_preCacheMode": 0,
"_cacheMode": 0,
"playTimes": -1,
"premultipliedAlpha": false,
"_armatureKey": "38dc6f23-ad7c-40aa-b453-55fcf4ef11f2#fabcd065-ac14-49cf-9f17-b066de40f358",
"_accTime": 0,
"_playCount": 0,
"_frameCache": null,
"_curFrame": null,
"_playing": false,
"_armatureCache": null,
"_N$dragonAsset": {
"__uuid__": "38dc6f23-ad7c-40aa-b453-55fcf4ef11f2"
},
"_N$dragonAtlasAsset": {
"__uuid__": "fabcd065-ac14-49cf-9f17-b066de40f358"
},
"_N$_defaultArmatureIndex": 0,
"_N$_animationIndex": 0,
"_N$_defaultCacheMode": 0,
"_N$timeScale": 1,
"_N$debugBones": false,
"_N$enableBatch": false,
"_id": "03ZsKGSRRONr0Jj27E9zc2"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_fitWidth": false,
"_fitHeight": false,
"_id": "59Cd0ovbdF4byw5sbjJDx7"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_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": 0,
"_originalHeight": 0,
"_id": "29zXboiXFBKoIV4PQ2liTe"
},
{
"__type__": "f4edeRi+NdAabqAkVYRwFjK",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"flys": [
{
"__id__": 6
},
{
"__id__": 25
}
],
"flyPositions": [
{
"__id__": 62
},
{
"__id__": 63
}
],
"flyVirus": [
{
"__id__": 13
},
{
"__id__": 32
}
],
"virusOks": [
{
"__id__": 52
},
{
"__id__": 57
}
],
"titleText": {
"__id__": 92
},
"_id": "e687yyoRBIzZAOVRL8Sseh"
},
{
"__type__": "cc.Node",
"_name": "res",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 122
},
{
"__id__": 127
},
{
"__id__": 140
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
640,
-69.655,
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": "0aAzbH6R1E+6AmGRrkKa5O"
},
{
"__type__": "cc.Node",
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 121
},
"_children": [
{
"__id__": 123
}
],
"_active": true,
"_components": [],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "53LUHHG2pEr79fyrvazXJs"
},
{
"__type__": "cc.Node",
"_name": "flyswatter",
"_objFlags": 0,
"_parent": {
"__id__": 122
},
"_children": [
{
"__id__": 124
}
],
"_active": true,
"_components": [
{
"__id__": 126
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 46
},
"_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": "b7gLa2umtNuJ8+128NUae7"
},
{
"__type__": "cc.Node",
"_name": "icon_1",
"_objFlags": 0,
"_parent": {
"__id__": 123
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 125
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 54
},
"_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
...
...
@@ -5772,7 +6168,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
16
"__id__": 1
24
},
"_enabled": true,
"_materials": [
...
...
@@ -5804,7 +6200,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
15
"__id__": 1
23
},
"_enabled": true,
"_materials": [
...
...
@@ -5836,23 +6232,26 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 1
13
"__id__": 1
21
},
"_children": [
{
"__id__": 12
0
"__id__": 12
8
},
{
"__id__": 1
22
"__id__": 1
30
},
{
"__id__": 1
24
"__id__": 1
32
},
{
"__id__": 1
26
"__id__": 1
34
},
{
"__id__": 128
"__id__": 136
},
{
"__id__": 138
}
],
"_active": true,
...
...
@@ -5910,13 +6309,13 @@
"_name": "correct",
"_objFlags": 0,
"_parent": {
"__id__": 1
19
"__id__": 1
27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
1
"__id__": 12
9
}
],
"_prefab": null,
...
...
@@ -5972,7 +6371,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 12
0
"__id__": 12
8
},
"_enabled": true,
"_clip": {
...
...
@@ -5991,13 +6390,13 @@
"_name": "dizzy",
"_objFlags": 0,
"_parent": {
"__id__": 1
19
"__id__": 1
27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
23
"__id__": 1
31
}
],
"_prefab": null,
...
...
@@ -6053,7 +6452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
22
"__id__": 1
30
},
"_enabled": true,
"_clip": {
...
...
@@ -6072,13 +6471,13 @@
"_name": "incorrect",
"_objFlags": 0,
"_parent": {
"__id__": 1
19
"__id__": 1
27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
25
"__id__": 1
33
}
],
"_prefab": null,
...
...
@@ -6134,7 +6533,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
24
"__id__": 1
32
},
"_enabled": true,
"_clip": {
...
...
@@ -6153,13 +6552,13 @@
"_name": "time321",
"_objFlags": 0,
"_parent": {
"__id__": 1
19
"__id__": 1
27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
27
"__id__": 1
35
}
],
"_prefab": null,
...
...
@@ -6215,7 +6614,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
26
"__id__": 1
34
},
"_enabled": true,
"_clip": {
...
...
@@ -6234,13 +6633,13 @@
"_name": "victory",
"_objFlags": 0,
"_parent": {
"__id__": 1
19
"__id__": 1
27
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 1
29
"__id__": 1
37
}
],
"_prefab": null,
...
...
@@ -6296,7 +6695,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
28
"__id__": 1
36
},
"_enabled": true,
"_clip": {
...
...
@@ -6310,12 +6709,93 @@
"preload": false,
"_id": "83CoCEd6FG7YVTnYdDV8yo"
},
{
"__type__": "cc.Node",
"_name": "lose",
"_objFlags": 0,
"_parent": {
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 139
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_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": "aeFoVY7qtALZp3LPeHllsR"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
},
"_enabled": true,
"_clip": {
"__uuid__": "5d1f8368-bddf-471a-847a-e2a6876ec5f0"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "c8twtkT8lNU5B6xcJC1FCa"
},
{
"__type__": "cc.Node",
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 1
13
"__id__": 1
21
},
"_children": [],
"_active": true,
...
...
play/assets/WL02/scene/WL02.js
View file @
78cf8d8c
...
...
@@ -121,6 +121,9 @@ cc.Class({
this
.
_flower
=
cc
.
find
(
'
Canvas/flower
'
);
this
.
_flower
.
active
=
false
;
this
.
_comeon
=
cc
.
find
(
'
Canvas/comeon
'
);
this
.
_comeon
.
active
=
false
;
this
.
cleanFlys
();
this
.
_cup
=
cc
.
find
(
'
Canvas/bg/cup
'
);
...
...
@@ -240,14 +243,19 @@ cc.Class({
this
.
updateItem
();
this
.
_cup
.
_y
=
this
.
_cup
.
y
;
if
(
audio_url
&&
audio_url
!=
""
){
playAudioByUrl
(
audio_url
,
()
=>
{
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
this
.
_start
.
on
(
'
click
'
,()
=>
{
this
.
_start
.
active
=
false
;
// let audio_url = this.data.audio_url;
// if (audio_url && audio_url!=""){
// playAudioByUrl(audio_url, ()=>{
// this.playGame();
// });
// }
// else{
this
.
playGame
();
// }
});
}
else
{
this
.
playGame
();
}
this
.
node
.
on
(
cc
.
Node
.
EventType
.
TOUCH_START
,
(
event
)
=>
{
if
(
this
.
_touched
==
true
)
...
...
@@ -301,9 +309,9 @@ cc.Class({
},
playGame
(){
this
.
playTimer
(()
=>
{
//
this.playTimer(()=>{
this
.
startItem
();
});
//
});
},
startItem
(){
...
...
@@ -463,6 +471,9 @@ cc.Class({
},
tryFinish
(){
if
(
this
.
_finished
==
true
)
return
;
if
(
this
.
_timer_ani
){
this
.
_timer_ani
.
stop
();
this
.
_timer_ani
=
null
;
...
...
@@ -470,9 +481,20 @@ cc.Class({
this
.
_index
++
;
if
(
this
.
_index
>=
this
.
data
.
length
){
this
.
_finished
=
true
;
if
(
this
.
allWrong
()
==
true
){
this
.
playAudioByName
(
'
lose
'
);
this
.
_comeon
.
active
=
true
;
playDragonBoneAnimation
(
this
.
_comeon
,
'
newAnimation
'
,
1
,
()
=>
{
this
.
_comeon
.
active
=
false
;
});
}
else
{
this
.
playAudioByName
(
'
victory
'
);
this
.
_flower
.
active
=
true
;
playDragonBoneAnimation
(
this
.
_flower
,
'
normal
'
);
}
return
;
}
...
...
@@ -555,8 +577,11 @@ cc.Class({
cc
.
tween
(
this
.
_time_node
)
.
delay
(
1
)
.
call
(()
=>
{
playDragonBoneAnimation
(
this
.
flys
[
0
],
'
normal
'
,
-
1
);
playDragonBoneAnimation
(
this
.
flys
[
1
],
'
normal
'
,
-
1
);
this
.
cleanTimer
();
for
(
let
i
=
0
;
i
<
2
;
i
++
){
this
.
flys
[
i
].
x
=
this
.
flys
[
i
].
_x
+
this
.
_frameSize
.
width
*
1.5
;
playDragonBoneAnimation
(
this
.
flys
[
i
],
'
normal
'
,
-
1
);
}
this
.
tryFinish
();
})
.
start
();
...
...
@@ -587,7 +612,7 @@ cc.Class({
allWrong
(){
let
item
,
len
=
this
.
_area
.
childrenCount
;
for
(
let
i
=
0
;
i
<
len
;
i
++
){
item
=
this
.
_area
[
i
];
item
=
this
.
_area
.
children
[
i
];
if
(
item
.
children
[
0
].
active
==
true
)
return
false
;
}
...
...
play/assets/WL02/textures/start.png
0 → 100644
View file @
78cf8d8c
5.42 KB
play/assets/WL02/textures/start.png.meta
0 → 100644
View file @
78cf8d8c
{
"ver": "2.3.5",
"uuid": "ce7f34ca-1c77-409b-9c2e-5e26b5dcd084",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 456,
"height": 102,
"platformSettings": {},
"subMetas": {
"start": {
"ver": "1.0.4",
"uuid": "86c61d4f-3fc6-49f0-9cd5-a30c42d981c9",
"rawTextureUuid": "ce7f34ca-1c77-409b-9c2e-5e26b5dcd084",
"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