fix(web): implement browser autoplay policy compliance with click-to-start

Add WaitingForInteraction game stage and Suspended audio state for Emscripten builds.
Audio unlocks and game starts after user clicks or presses any key, satisfying browser
autoplay restrictions while maintaining immediate playback on desktop.
This commit is contained in:
2025-12-29 00:41:31 -06:00
parent 191fe49c64
commit fc349c45c5
7 changed files with 207 additions and 12 deletions
+1
View File
@@ -1,5 +1,6 @@
{
"lockfileVersion": 1,
"configVersion": 0,
"workspaces": {
"": {
"name": "pacman-web",