From fe740edc1397b4ccdfcdaffefdb1360eff00f5da Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 20 Apr 2019 17:56:30 +0200 Subject: [PATCH] examples/mainmenu: add navigation sfx --- examples/mainmenu/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/mainmenu/init.lua b/examples/mainmenu/init.lua index c4d6a99..0080f0b 100644 --- a/examples/mainmenu/init.lua +++ b/examples/mainmenu/init.lua @@ -35,6 +35,8 @@ function MainMenu:new() MainMenu.super.new(self) self.assets:addImageFont("medium", "examples/mainmenu/assets/medium") + self.assets:addSFX("navigate", "examples/mainmenu/assets/menu_move.mp3") + self:addMenu("main", true) self:addSubMenu("basic", "basic") self:addScene("basic", examples.Test, "test1") @@ -46,6 +48,9 @@ function MainMenu:new() self:addSubMenu("gameplay", "gameplay") self:addScene("gameplay", examples.MovePlayer, "movable") + + self.menusystem:setSoundFromSceneAssets("navigate") + ExitWidget(self, "main") self.menusystem:switchMenu("main") end