feat(cbs): add music
This commit is contained in:
parent
a60f6ade6c
commit
7a8696726b
3 changed files with 5 additions and 0 deletions
BIN
sonic-radiance.love/assets/music/battle1.mp3
Normal file
BIN
sonic-radiance.love/assets/music/battle1.mp3
Normal file
Binary file not shown.
BIN
sonic-radiance.love/assets/music/victory.mp3
Normal file
BIN
sonic-radiance.love/assets/music/victory.mp3
Normal file
Binary file not shown.
|
@ -12,6 +12,9 @@ function BattleSystem:new()
|
||||||
|
|
||||||
self.assets:batchImport("scenes.battlesystem.assets")
|
self.assets:batchImport("scenes.battlesystem.assets")
|
||||||
|
|
||||||
|
self.assets:setMusic("assets/music/battle1.mp3")
|
||||||
|
self.assets:playMusic()
|
||||||
|
|
||||||
self:initManagers()
|
self:initManagers()
|
||||||
|
|
||||||
self:register()
|
self:register()
|
||||||
|
@ -32,6 +35,8 @@ function BattleSystem:startBattle()
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleSystem:finishBattle()
|
function BattleSystem:finishBattle()
|
||||||
|
self.assets:setMusic("assets/music/victory.mp3")
|
||||||
|
self.assets:playMusic()
|
||||||
self.screen = VictoryScreen(self)
|
self.screen = VictoryScreen(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue