Skip to content

馃殌 Feature: Background music and menu sound effects聽#25

Open

Description

@zernonia

I know adding sound effect is tricky since the app starts right away, and browser requires user interaction before playing audio.
Not sure "WASD" keypress consider interaction or not 馃

But this is just a "good to have" features 馃榿

Activity

  1. changed the title [-]Suggestion: Add bgm and/or sound effects[/-] [+]馃殌 Feature: Background music and menu sound effects[/+] on Aug 26, 2022
  2. JoshuaKGoldberg commented on Aug 26, 2022

    @JoshuaKGoldberg
    Owner

    Thanks for suggesting this @zernonia - agreed, audio would be great! WASD keypresses should count, yes - so maybe the background music can fade in when the user first moves?

    One more caveat to consider is that the game has a tight (arbitrary, chosen by me on a whim) performance budget of 256 kB total size on the page uncompressed. I suppose we could go over for audio that's lazy-loaded... but whatever audio happens should be very compressed.

    EightBittr does have a package already for playing audio: AudioPlayr. https://github.com/FullScreenShenanigans/EightBittr/tree/main/packages/audioplayr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions