Commit 7e654e47 by william

feat: control game volumn

parent e8d8f1d2
...@@ -318,6 +318,7 @@ cc.Class({ ...@@ -318,6 +318,7 @@ cc.Class({
this.board.active = false this.board.active = false
this.teacher.active = false this.teacher.active = false
this.gameState = 'waiting' this.gameState = 'waiting'
this.bgMusic.volume = 1
var remoteDomain = 'https://nzr2ybsda.qnssl.com/images/153823/' var remoteDomain = 'https://nzr2ybsda.qnssl.com/images/153823/'
var pictures = [ var pictures = [
......
...@@ -17,6 +17,7 @@ cc.Class({ ...@@ -17,6 +17,7 @@ cc.Class({
self.game.level.progress = 1 self.game.level.progress = 1
self.game.gameState = 'action' self.game.gameState = 'action'
self.game.teacher.getComponent("Teacher").startSwivel() self.game.teacher.getComponent("Teacher").startSwivel()
self.game.bgMusic.volume = 0.5
}) })
}, },
......
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