From f16b5349a0b5758b1dd776c0438fc6a908d87d10 Mon Sep 17 00:00:00 2001 From: fallahn Date: Sun, 27 Oct 2024 17:29:06 +0000 Subject: [PATCH] update music on menu --- samples/golf/src/golf/MenuState.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/golf/src/golf/MenuState.cpp b/samples/golf/src/golf/MenuState.cpp index 6ff5e9d97..134e68971 100644 --- a/samples/golf/src/golf/MenuState.cpp +++ b/samples/golf/src/golf/MenuState.cpp @@ -2017,7 +2017,15 @@ void MenuState::createScene() //music auto entity = m_backgroundScene.createEntity(); - entity.addComponent() = m_menuSounds.getEmitter("music"); + if (cro::SysTime::now().months() == 10 + && cro::SysTime::now().days() > 22) + { + entity.addComponent() = m_menuSounds.getEmitter("spooky_music"); + } + else + { + entity.addComponent() = m_menuSounds.getEmitter("music"); + } entity.getComponent().play(); entity.getComponent().setLooped(true);