浏览代码

Win sound;

bjorn 10 年之前
父节点
当前提交
66647db889
共有 2 个文件被更改,包括 1 次插入0 次删除
  1. 二进制
      media/sounds/win.ogg
  2. 1 0
      pigeon.lua

二进制
media/sounds/win.ogg


+ 1 - 0
pigeon.lua

@@ -181,6 +181,7 @@ function Pigeon:update()
     self.animation:set('flyLoop')
     self.animation:set('flyLoop')
     if not ctx.hud.win.active then
     if not ctx.hud.win.active then
       ctx.hud:activateWin()
       ctx.hud:activateWin()
+      ctx.sound:play('win')
     end
     end
   end
   end
 end
 end