Commit 78cf8d8c authored by linzhiguo's avatar linzhiguo

+ 全错动画 音效

- 表单 标题声音
- 321动画
# 打错后立即打对
parent 58284ff8
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
</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;">
音频 音频
</div> </div>
<div style="flex:5"> <div style="flex:5">
<app-audio-recorder [audioUrl]="item.audio_url" (audioUploaded)="onAudioUploadSuccess($event, item, 'audio_url')" ></app-audio-recorder> <app-audio-recorder [audioUrl]="item.audio_url" (audioUploaded)="onAudioUploadSuccess($event, item, 'audio_url')" ></app-audio-recorder>
</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;">
......
{
"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 @@ ...@@ -2,6 +2,6 @@
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "8c14b3b8-8840-4464-bfee-0e9e1e70aac2", "uuid": "8c14b3b8-8840-4464-bfee-0e9e1e70aac2",
"downloadMode": 0, "downloadMode": 0,
"duration": 3.787755, "duration": 2.298776,
"subMetas": {} "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 @@ ...@@ -3,7 +3,7 @@
"_name": "sound", "_name": "sound",
"_objFlags": 0, "_objFlags": 0,
"_native": "", "_native": "",
"_duration": 0.25, "_duration": 1,
"sample": 60, "sample": 60,
"speed": 1, "speed": 1,
"wrapMode": 2, "wrapMode": 2,
...@@ -17,24 +17,28 @@ ...@@ -17,24 +17,28 @@
"value": true "value": true
}, },
{ {
"frame": 0.05, "frame": 0.16666666666666666,
"value": false "value": false
}, },
{ {
"frame": 0.1, "frame": 0.3333333333333333,
"value": true "value": true
}, },
{ {
"frame": 0.15, "frame": 0.5,
"value": false "value": false
}, },
{ {
"frame": 0.2, "frame": 0.6666666666666666,
"value": true "value": true
}, },
{ {
"frame": 0.25, "frame": 0.8333333333333334,
"value": false "value": false
},
{
"frame": 1,
"value": true
} }
] ]
} }
...@@ -47,24 +51,28 @@ ...@@ -47,24 +51,28 @@
"value": false "value": false
}, },
{ {
"frame": 0.05, "frame": 0.16666666666666666,
"value": true "value": true
}, },
{ {
"frame": 0.1, "frame": 0.3333333333333333,
"value": false "value": false
}, },
{ {
"frame": 0.15, "frame": 0.5,
"value": true "value": true
}, },
{ {
"frame": 0.2, "frame": 0.6666666666666666,
"value": false "value": false
}, },
{ {
"frame": 0.25, "frame": 0.8333333333333334,
"value": true "value": true
},
{
"frame": 1,
"value": false
} }
] ]
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"__id__": 2 "__id__": 2
}, },
{ {
"__id__": 113 "__id__": 121
} }
], ],
"_active": false, "_active": false,
...@@ -85,18 +85,24 @@ ...@@ -85,18 +85,24 @@
}, },
{ {
"__id__": 104 "__id__": 104
},
{
"__id__": 110
},
{
"__id__": 116
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 110 "__id__": 118
}, },
{ {
"__id__": 111 "__id__": 119
}, },
{ {
"__id__": 112 "__id__": 120
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -3655,7 +3661,7 @@ ...@@ -3655,7 +3661,7 @@
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 48, "width": 48,
"height": 45 "height": 46
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -3667,7 +3673,7 @@ ...@@ -3667,7 +3673,7 @@
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-31.18, -31.18,
-5.5, -5,
0, 0,
0, 0,
0, 0,
...@@ -3710,7 +3716,7 @@ ...@@ -3710,7 +3716,7 @@
"__uuid__": "e24bb3c9-8ed9-4f0e-8df8-72fc6a012b12" "__uuid__": "e24bb3c9-8ed9-4f0e-8df8-72fc6a012b12"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 0,
"_fillType": 0, "_fillType": 0,
"_fillCenter": { "_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -5420,177 +5426,27 @@ ...@@ -5420,177 +5426,27 @@
"_width": 23, "_width": 23,
"_id": "18KpZ5HgxA2JcSE8CdIA4V" "_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", "__type__": "cc.Node",
"_name": "res", "_name": "start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 1 "__id__": 2
}, },
"_children": [ "_children": [
{ {
"__id__": 114 "__id__": 111
},
{
"__id__": 119
},
{
"__id__": 130
} }
], ],
"_active": true, "_active": true,
"_components": [], "_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", "__id__": 114
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 113
}, },
"_children": [
{ {
"__id__": 115 "__id__": 115
} }
], ],
"_active": true,
"_components": [],
"_prefab": null, "_prefab": null,
"_opacity": 255, "_opacity": 255,
"_color": { "_color": {
...@@ -5602,8 +5458,8 @@ ...@@ -5602,8 +5458,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 0, "width": 1280,
"height": 0 "height": 720
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -5637,24 +5493,23 @@ ...@@ -5637,24 +5493,23 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "53LUHHG2pEr79fyrvazXJs" "_id": "6absPXEfpB6ZCZtitXqca7"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Node",
"_name": "flyswatter", "_name": "start",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 114 "__id__": 110
}, },
"_children": [ "_children": [],
{
"__id__": 116
}
],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 118 "__id__": 112
},
{
"__id__": 113
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5668,8 +5523,8 @@ ...@@ -5668,8 +5523,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 32, "width": 456,
"height": 46 "height": 102
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
...@@ -5703,59 +5558,600 @@ ...@@ -5703,59 +5558,600 @@
"_is3DNode": false, "_is3DNode": false,
"_groupIndex": 0, "_groupIndex": 0,
"groupIndex": 0, "groupIndex": 0,
"_id": "b7gLa2umtNuJ8+128NUae7" "_id": "8fdxkVSxxKL4WabH7xfzll"
}, },
{ {
"__type__": "cc.Node", "__type__": "cc.Sprite",
"_name": "icon_1", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "node": {
"__id__": 115 "__id__": 111
}, },
"_children": [], "_enabled": true,
"_active": false, "_materials": [
"_components": [
{ {
"__id__": 117 "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
} }
], ],
"_prefab": null, "_srcBlendFactor": 1,
"_opacity": 255, "_dstBlendFactor": 771,
"_color": { "_spriteFrame": {
"__type__": "cc.Color", "__uuid__": "86c61d4f-3fc6-49f0-9cd5-a30c42d981c9"
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 40,
"height": 54
}, },
"_anchorPoint": { "_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0,
"y": 0.5 "y": 0
}, },
"_trs": { "_fillStart": 0,
"__type__": "TypedArray", "_fillRange": 0,
"ctor": "Float64Array", "_isTrimmedMode": true,
"array": [ "_atlas": null,
0, "_id": "87WnHDIDNE45WQqNn/N9gj"
0, },
0, {
0, "__type__": "cc.Widget",
0, "_name": "",
0, "_objFlags": 0,
1, "node": {
1, "__id__": 111
1, },
1 "_enabled": true,
] "alignMode": 1,
}, "_target": null,
"_eulerAngles": { "_alignFlags": 18,
"__type__": "cc.Vec3", "_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, "x": 0,
"y": 0, "y": 0,
"z": 0 "z": 0
...@@ -5772,7 +6168,7 @@ ...@@ -5772,7 +6168,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 116 "__id__": 124
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5804,7 +6200,7 @@ ...@@ -5804,7 +6200,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 115 "__id__": 123
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -5836,23 +6232,26 @@ ...@@ -5836,23 +6232,26 @@
"_name": "audio", "_name": "audio",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 113 "__id__": 121
}, },
"_children": [ "_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, "_active": true,
...@@ -5910,13 +6309,13 @@ ...@@ -5910,13 +6309,13 @@
"_name": "correct", "_name": "correct",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 127
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 121 "__id__": 129
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -5972,7 +6371,7 @@ ...@@ -5972,7 +6371,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 120 "__id__": 128
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -5991,13 +6390,13 @@ ...@@ -5991,13 +6390,13 @@
"_name": "dizzy", "_name": "dizzy",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 127
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 123 "__id__": 131
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6053,7 +6452,7 @@ ...@@ -6053,7 +6452,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 122 "__id__": 130
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6072,13 +6471,13 @@ ...@@ -6072,13 +6471,13 @@
"_name": "incorrect", "_name": "incorrect",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 127
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 125 "__id__": 133
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6134,7 +6533,7 @@ ...@@ -6134,7 +6533,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 124 "__id__": 132
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6153,13 +6552,13 @@ ...@@ -6153,13 +6552,13 @@
"_name": "time321", "_name": "time321",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 127
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 127 "__id__": 135
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6215,7 +6614,7 @@ ...@@ -6215,7 +6614,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 126 "__id__": 134
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6234,13 +6633,13 @@ ...@@ -6234,13 +6633,13 @@
"_name": "victory", "_name": "victory",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 119 "__id__": 127
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 129 "__id__": 137
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -6296,7 +6695,7 @@ ...@@ -6296,7 +6695,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 128 "__id__": 136
}, },
"_enabled": true, "_enabled": true,
"_clip": { "_clip": {
...@@ -6310,12 +6709,93 @@ ...@@ -6310,12 +6709,93 @@
"preload": false, "preload": false,
"_id": "83CoCEd6FG7YVTnYdDV8yo" "_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", "__type__": "cc.Node",
"_name": "time", "_name": "time",
"_objFlags": 0, "_objFlags": 0,
"_parent": { "_parent": {
"__id__": 113 "__id__": 121
}, },
"_children": [], "_children": [],
"_active": true, "_active": true,
......
...@@ -121,6 +121,9 @@ cc.Class({ ...@@ -121,6 +121,9 @@ cc.Class({
this._flower = cc.find('Canvas/flower'); this._flower = cc.find('Canvas/flower');
this._flower.active = false; this._flower.active = false;
this._comeon = cc.find('Canvas/comeon');
this._comeon.active = false;
this.cleanFlys(); this.cleanFlys();
this._cup = cc.find('Canvas/bg/cup'); this._cup = cc.find('Canvas/bg/cup');
...@@ -240,14 +243,19 @@ cc.Class({ ...@@ -240,14 +243,19 @@ cc.Class({
this.updateItem(); this.updateItem();
this._cup._y = this._cup.y; this._cup._y = this._cup.y;
if (audio_url && audio_url!=""){ this._start = cc.find('Canvas/start');
playAudioByUrl(audio_url, ()=>{ 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(); this.playGame();
// }
}); });
}
else{
this.playGame();
}
this.node.on(cc.Node.EventType.TOUCH_START, (event)=>{ this.node.on(cc.Node.EventType.TOUCH_START, (event)=>{
if (this._touched == true) if (this._touched == true)
...@@ -301,9 +309,9 @@ cc.Class({ ...@@ -301,9 +309,9 @@ cc.Class({
}, },
playGame(){ playGame(){
this.playTimer(()=>{ //this.playTimer(()=>{
this.startItem(); this.startItem();
}); //});
}, },
startItem(){ startItem(){
...@@ -463,6 +471,9 @@ cc.Class({ ...@@ -463,6 +471,9 @@ cc.Class({
}, },
tryFinish(){ tryFinish(){
if (this._finished == true)
return;
if (this._timer_ani){ if (this._timer_ani){
this._timer_ani.stop(); this._timer_ani.stop();
this._timer_ani = null; this._timer_ani = null;
...@@ -470,9 +481,20 @@ cc.Class({ ...@@ -470,9 +481,20 @@ cc.Class({
this._index ++; this._index ++;
if (this._index >= this.data.length){ 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.playAudioByName('victory');
this._flower.active = true; this._flower.active = true;
playDragonBoneAnimation(this._flower, 'normal'); playDragonBoneAnimation(this._flower, 'normal');
}
return; return;
} }
...@@ -555,8 +577,11 @@ cc.Class({ ...@@ -555,8 +577,11 @@ cc.Class({
cc.tween(this._time_node) cc.tween(this._time_node)
.delay(1) .delay(1)
.call(()=>{ .call(()=>{
playDragonBoneAnimation(this.flys[0], 'normal', -1); this.cleanTimer();
playDragonBoneAnimation(this.flys[1], 'normal', -1); 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(); this.tryFinish();
}) })
.start(); .start();
...@@ -587,7 +612,7 @@ cc.Class({ ...@@ -587,7 +612,7 @@ cc.Class({
allWrong(){ allWrong(){
let item, len = this._area.childrenCount; let item, len = this._area.childrenCount;
for(let i = 0; i <len; i++){ for(let i = 0; i <len; i++){
item = this._area[i]; item = this._area.children[i];
if (item.children[0].active == true) if (item.children[0].active == true)
return false; 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