scene/mainmenu: use the integrated asset system for music
This commit is contained in:
parent
ef73ffc0f3
commit
da8386a0f4
|
@ -17,9 +17,8 @@ function MainMenu:new()
|
|||
assets:addFont("medium", "!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|} ", 1)
|
||||
assets:addFont("large", " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ ", 1)
|
||||
self.debugmenu = DebugMenu()
|
||||
assets:silence()
|
||||
assets:setMusic("options.ogg")
|
||||
assets:playMusic()
|
||||
self.assets:setMusic("assets/music/options.ogg")
|
||||
self.assets:playMusic()
|
||||
|
||||
assets:clearSprites()
|
||||
assets:addSprite("emblem", 330, 192, "gui/")
|
||||
|
|
Loading…
Reference in New Issue