Commit 55b68743 authored by linzhiguo's avatar linzhiguo

+ 打错声音

+ 去掉最多8题限制
# 修改过快bug,上次优化出来的
parent 367bceba
{
"ver": "2.0.1",
"uuid": "0f7cd26d-ed55-4f34-9815-0e350c747eb4",
"downloadMode": 0,
"duration": 0.556563,
"subMetas": {}
}
\ No newline at end of file
......@@ -167,9 +167,8 @@ cc.Class({
let len = data.mouses.length;
if (len == 1)
return data;
if (len > 8)
len = 8;
arr.time = data.time;
arr.title = data.title;
arr.audio_url = data.audio_url;
arr.mouses = [];
......@@ -269,7 +268,7 @@ cc.Class({
if (cc.rect(ground.getBoundingBoxToWorld()).contains(event.touch._point)){
this._hammer.x = pos.x;
this._hammer.y = pos.y;
this.playAudioByName('incorrect');
this.playAudioByName('missed');
playDragonBoneAnimation(this._hammer.children[0], 'normal', 1, ()=>{
this._hammer.y = -1000;
......
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