Commit 12cb4fae authored by linzhiguo's avatar linzhiguo

+ 白背景

+ 增加拍打音效
parent 206a8028
{
"ver": "2.0.1",
"uuid": "8474f6e3-5518-429c-92b9-a7625e67fbfe",
"downloadMode": 0,
"duration": 0.168889,
"subMetas": {}
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
"__id__": 2
},
{
"__id__": 121
"__id__": 122
}
],
"_active": false,
......@@ -90,19 +90,19 @@
"__id__": 110
},
{
"__id__": 116
"__id__": 117
}
],
"_active": true,
"_components": [
{
"__id__": 118
},
{
"__id__": 119
},
{
"__id__": 120
},
{
"__id__": 121
}
],
"_prefab": null,
......@@ -5445,6 +5445,9 @@
},
{
"__id__": 115
},
{
"__id__": 116
}
],
"_prefab": null,
......@@ -5714,6 +5717,38 @@
"_N$target": null,
"_id": "3b/KwNc+JEs6lozlhTbgqm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 110
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "460ace27-fc4e-410f-bedc-73e0977b2343"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "96axZT4TJM7I4BBEsCHTsg"
},
{
"__type__": "cc.Node",
"_name": "comeon",
......@@ -5725,7 +5760,7 @@
"_active": false,
"_components": [
{
"__id__": 117
"__id__": 118
}
],
"_prefab": null,
......@@ -5781,7 +5816,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 116
"__id__": 117
},
"_enabled": true,
"_materials": [
......@@ -5914,13 +5949,13 @@
},
"_children": [
{
"__id__": 122
"__id__": 123
},
{
"__id__": 127
"__id__": 128
},
{
"__id__": 140
"__id__": 143
}
],
"_active": true,
......@@ -5978,11 +6013,11 @@
"_name": "img",
"_objFlags": 0,
"_parent": {
"__id__": 121
"__id__": 122
},
"_children": [
{
"__id__": 123
"__id__": 124
}
],
"_active": true,
......@@ -6040,17 +6075,17 @@
"_name": "flyswatter",
"_objFlags": 0,
"_parent": {
"__id__": 122
"__id__": 123
},
"_children": [
{
"__id__": 124
"__id__": 125
}
],
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 127
}
],
"_prefab": null,
......@@ -6106,13 +6141,13 @@
"_name": "icon_1",
"_objFlags": 0,
"_parent": {
"__id__": 123
"__id__": 124
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 125
"__id__": 126
}
],
"_prefab": null,
......@@ -6168,7 +6203,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 124
"__id__": 125
},
"_enabled": true,
"_materials": [
......@@ -6200,7 +6235,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 123
"__id__": 124
},
"_enabled": true,
"_materials": [
......@@ -6232,26 +6267,29 @@
"_name": "audio",
"_objFlags": 0,
"_parent": {
"__id__": 121
"__id__": 122
},
"_children": [
{
"__id__": 128
"__id__": 129
},
{
"__id__": 130
"__id__": 131
},
{
"__id__": 132
"__id__": 133
},
{
"__id__": 134
"__id__": 135
},
{
"__id__": 136
"__id__": 137
},
{
"__id__": 138
"__id__": 139
},
{
"__id__": 141
}
],
"_active": true,
......@@ -6309,13 +6347,13 @@
"_name": "correct",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 129
"__id__": 130
}
],
"_prefab": null,
......@@ -6371,7 +6409,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 128
"__id__": 129
},
"_enabled": true,
"_clip": {
......@@ -6390,13 +6428,13 @@
"_name": "dizzy",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 131
"__id__": 132
}
],
"_prefab": null,
......@@ -6452,7 +6490,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 130
"__id__": 131
},
"_enabled": true,
"_clip": {
......@@ -6471,13 +6509,13 @@
"_name": "incorrect",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 133
"__id__": 134
}
],
"_prefab": null,
......@@ -6533,7 +6571,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 132
"__id__": 133
},
"_enabled": true,
"_clip": {
......@@ -6552,13 +6590,13 @@
"_name": "time321",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 135
"__id__": 136
}
],
"_prefab": null,
......@@ -6614,7 +6652,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 134
"__id__": 135
},
"_enabled": true,
"_clip": {
......@@ -6633,13 +6671,13 @@
"_name": "victory",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 137
"__id__": 138
}
],
"_prefab": null,
......@@ -6695,7 +6733,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 136
"__id__": 137
},
"_enabled": true,
"_clip": {
......@@ -6714,13 +6752,13 @@
"_name": "lose",
"_objFlags": 0,
"_parent": {
"__id__": 127
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 139
"__id__": 140
}
],
"_prefab": null,
......@@ -6776,7 +6814,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 138
"__id__": 139
},
"_enabled": true,
"_clip": {
......@@ -6790,12 +6828,93 @@
"preload": false,
"_id": "c8twtkT8lNU5B6xcJC1FCa"
},
{
"__type__": "cc.Node",
"_name": "fall",
"_objFlags": 0,
"_parent": {
"__id__": 128
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 142
}
],
"_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": "602i7N7e5CQLLr4jlrAqdK"
},
{
"__type__": "cc.AudioSource",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 141
},
"_enabled": true,
"_clip": {
"__uuid__": "8474f6e3-5518-429c-92b9-a7625e67fbfe"
},
"_volume": 1,
"_mute": false,
"_loop": false,
"_firstlyEnabled": true,
"playOnLoad": false,
"preload": false,
"_id": "765SyTsjhPVoSzfsfic71l"
},
{
"__type__": "cc.Node",
"_name": "time",
"_objFlags": 0,
"_parent": {
"__id__": 121
"__id__": 122
},
"_children": [],
"_active": true,
......
......@@ -269,6 +269,7 @@ cc.Class({
item = this.flys[i];
if (cc.rect(item.getBoundingBoxToWorld()).contains(event.touch._point)){
this.playAudioByName('dizzy');
this.playAudioByName('fall');
this.cleanTimer();
this._flyswatter.x = pos.x;
this._flyswatter.y = pos.y;
......
{
"ver": "2.3.5",
"uuid": "98b62b63-a7f2-4d1d-97e8-cfce03ace0f6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1280,
"height": 720,
"platformSettings": {},
"subMetas": {
"start_bg": {
"ver": "1.0.4",
"uuid": "460ace27-fc4e-410f-bedc-73e0977b2343",
"rawTextureUuid": "98b62b63-a7f2-4d1d-97e8-cfce03ace0f6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1280,
"height": 720,
"rawWidth": 1280,
"rawHeight": 720,
"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