|
@@ -14,6 +14,10 @@ createjs.Sound.registerSound("sound/start/swy.mp3", "swy");
|
|
|
createjs.Sound.registerSound("sound/start/qcdf.mp3", "qcdf");
|
|
|
createjs.Sound.registerSound("sound/background_music.mp3", "bgm");
|
|
|
|
|
|
+createjs.Sound.registerSound("sound/cut.mp3", "cut");//切菜
|
|
|
+createjs.Sound.registerSound("sound/oil.mp3", "oil");//空锅倒油(肉、油麦菜)
|
|
|
+createjs.Sound.registerSound("sound/soup.mp3", "soup");//煮
|
|
|
+
|
|
|
window.user_info = {
|
|
|
uid: 0,
|
|
|
logo:'http://img5q.duitang.com/uploads/item/201502/25/20150225060808_wuANL.jpeg',//用户头像
|
|
@@ -183,13 +187,17 @@ function handleComplete(evt, comp) {
|
|
|
|
|
|
if(dishIndex == 0){
|
|
|
createjs.Sound.play("hsr");//播放
|
|
|
+ createjs.Sound.play("oil");//播放
|
|
|
}else if(dishIndex == 1){
|
|
|
createjs.Sound.play("qcdf");//播放
|
|
|
+ createjs.Sound.play("soup");//播放
|
|
|
}else if(dishIndex == 2){
|
|
|
createjs.Sound.play("swy");//播放
|
|
|
}else{
|
|
|
createjs.Sound.play("ymc");//播放
|
|
|
+ createjs.Sound.play("oil");//播放
|
|
|
}
|
|
|
+
|
|
|
var anim = new TimelineMax({ repeat:10,delay:1});
|
|
|
anim.to(exportRoot.pro.oil_icon2, 0.3, {y:"+=100",alpha:0})
|
|
|
return anim;
|
|
@@ -398,6 +406,7 @@ function handleComplete(evt, comp) {
|
|
|
y: event.stageY,
|
|
|
};
|
|
|
lineArr.push(obj);
|
|
|
+ createjs.Sound.play("cut");//播放
|
|
|
})
|
|
|
exportRoot.addEventListener("pressup", function(event) {
|
|
|
playbowlAnim();
|