scene/mainmenu: use the integrated asset system for music

This commit is contained in:
Kazhnuz 2019-02-25 17:20:19 +01:00
parent ef73ffc0f3
commit da8386a0f4
1 changed files with 2 additions and 3 deletions

View File

@ -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/")