feat(cbs): add music

This commit is contained in:
Kazhnuz 2019-08-19 12:00:24 +02:00
parent a60f6ade6c
commit 7a8696726b
3 changed files with 5 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -12,6 +12,9 @@ function BattleSystem:new()
self.assets:batchImport("scenes.battlesystem.assets")
self.assets:setMusic("assets/music/battle1.mp3")
self.assets:playMusic()
self:initManagers()
self:register()
@ -32,6 +35,8 @@ function BattleSystem:startBattle()
end
function BattleSystem:finishBattle()
self.assets:setMusic("assets/music/victory.mp3")
self.assets:playMusic()
self.screen = VictoryScreen(self)
end