Repository navigation
feat: implement bgm and audiomanager - #187
Merged
chowjustin merged 2 commits intoMay 20, 2026
Conversation
chowjustin
merged commit May 20, 2026
6e7344e
into
120-implement-gamescene-systems-array-didmove-update-touchesbegan-registerentity
3 of 4 checks passed
Closed
KeweKiwi
added a commit
that referenced
this pull request
May 20, 2026
* feat: add initial codebase implementation * resize layout * feat: GameScene, HandAnimation, Assets, etc. * feat: implement bgm and audiomanager (#187) * feat: implement bgm and audiomanager * docs: add resources to directory structure * feat: integrate main menu and game over navigation to gameplay (#189) * style: add Main Menu UI, main menu background asset * feat: implement GameOverOverlay with navigation - Created GameOverOverlay as an SKSpriteNode to display match outcomes dynamically over the game arena. - Implemented SF Pro Rounded font rendering via NSAttributedString for all UI text. - Wired up SKTransition.fade routing between Menu, Game, and Rematch flows. - Integrated GameOverOverlay with EventBus and UISystem using callback closures. * feat: hide hud and skills overlay on gameover state --------- Co-authored-by: Sharon Tan <shasatanjaya@gmail.com> * feat: update game sfx behavior --------- Co-authored-by: chowjustin <justin.chow05@gmail.com> Co-authored-by: Vallykrie <nathansudiara@gmail.com> Co-authored-by: Justin Chow <138012584+chowjustin@users.noreply.github.com> Co-authored-by: Sharon Tan <shasatanjaya@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces background music (BGM) functionality to the app by adding a new
AudioManagersingleton class and integrating it into the app launch process. TheAudioManagerhandles loading, playing, and pausing BGM, and responds appropriately to app lifecycle events and audio interruptions.New background music management:
AudioManagersingleton class inAudioManager.swiftthat loads and manages playback of a bundledbgm.mp3file, including looping and volume control.App launch integration:
AppDelegate.swiftto start background music playback when the app finishes launching by callingAudioManager.shared.startBGM().