Commit 78cf8d8c authored by linzhiguo's avatar linzhiguo

+ 全错动画 音效

- 表单 标题声音
- 321动画
# 打错后立即打对
parent 58284ff8
......@@ -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;">
......
{
"ver": "2.0.1",
"uuid": "5d1f8368-bddf-471a-847a-e2a6876ec5f0",
"downloadMode": 0,
"duration": 3.761633,
"subMetas": {}
}
\ No newline at end of file
......@@ -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
{"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
{
"ver": "1.0.1",
"uuid": "38dc6f23-ad7c-40aa-b453-55fcf4ef11f2",
"subMetas": {}
}
\ No newline at end of file
{"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
{
"ver": "1.0.1",
"uuid": "fabcd065-ac14-49cf-9f17-b066de40f358",
"subMetas": {}
}
\ No newline at end of file
{
"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
......@@ -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.15,
"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.15,
"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
}
]
}
......
......@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 113
"__id__": 121
}
],
"_active": false,
......@@ -85,18 +85,24 @@
},
{
"__id__": 104
},
{
"__id__": 110
},
{
"__id__": 116
}
],
"_active": true,
"_components": [
{
"__id__": 110
"__id__": 118
},
{
"__id__": 111
"__id__": 119
},
{
"__id__": 112
"__id__": 120
}
],
"_prefab": null,
......@@ -3655,7 +3661,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 48,
"height": 45
"height": 46
},
"_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": 1280,
"height": 720
},
"_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__": 114
"__id__": 110
},
"_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.Node",
"_name": "icon_1",
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"_parent": {
"__id__": 115
"node": {
"__id__": 111
},
"_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__": 116
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -5804,7 +6200,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 115
"__id__": 123
},
"_enabled": true,
"_materials": [
......@@ -5836,23 +6232,26 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 113
"__id__": 121
},
"_children": [
{
"__id__": 120
"__id__": 128
},
{
"__id__": 122
"__id__": 130
},
{
"__id__": 124
"__id__": 132
},
{
"__id__": 126
"__id__": 134
},
{
"__id__": 128
"__id__": 136
},
{
"__id__": 138
}
],
"_active": true,
......@@ -5910,13 +6309,13 @@
"_name": "correct",
"_objFlags": 0,
"_parent": {
"__id__": 119
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 121
"__id__": 129
}
],
"_prefab": null,
......@@ -5972,7 +6371,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 120
"__id__": 128
},
"_enabled": true,
"_clip": {
......@@ -5991,13 +6390,13 @@
"_name": "dizzy",
"_objFlags": 0,
"_parent": {
"__id__": 119
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 123
"__id__": 131
}
],
"_prefab": null,
......@@ -6053,7 +6452,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 122
"__id__": 130
},
"_enabled": true,
"_clip": {
......@@ -6072,13 +6471,13 @@
"_name": "incorrect",
"_objFlags": 0,
"_parent": {
"__id__": 119
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 133
}
],
"_prefab": null,
......@@ -6134,7 +6533,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 132
},
"_enabled": true,
"_clip": {
......@@ -6153,13 +6552,13 @@
"_name": "time321",
"_objFlags": 0,
"_parent": {
"__id__": 119
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 127
"__id__": 135
}
],
"_prefab": null,
......@@ -6215,7 +6614,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 126
"__id__": 134
},
"_enabled": true,
"_clip": {
......@@ -6234,13 +6633,13 @@
"_name": "victory",
"_objFlags": 0,
"_parent": {
"__id__": 119
"__id__": 127
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 137
}
],
"_prefab": null,
......@@ -6296,7 +6695,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 136
},
"_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__": 113
"__id__": 121
},
"_children": [],
"_active": true,
......
......@@ -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;
}
......
{
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment