News for hackers. Stuff that matters.
Re:Show HN: Mini Metroidvania in 13KB of JavaScript by Narishma on Tuesday September 13, 2022 @08:17PM (#32831784)
Why aren't they generated while waiting for the player to press a key?
Re:Show HN: Mini Metroidvania in 13KB of JavaScript by lioeters on Tuesday September 13, 2022 @11:06PM (#32832850)
I'm guessing it's because WebAudio won't let you create audio buffers until a user gesture like a click allows audio context to be started ("resumed").