Skip to content

WASM start game by user interaction to enable sound - #128

Merged
mrDIMAS merged 1 commit into
FyroxEngine:masterfrom
beckend:wasm_sound_chrome
Jun 23, 2021
Merged

mrDIMAS merged 1 commit into
FyroxEngine:masterfrom
beckend:wasm_sound_chrome

Conversation

@beckend

@beckend beckend commented Jun 22, 2021

Copy link
Copy Markdown
Contributor

Addresses: #99

Chrome needs user interaction to enable sound, added an animated/transition button to launch the demo for the heck of it.

start-game1
start-game2

@mrDIMAS

mrDIMAS commented Jun 22, 2021

Copy link
Copy Markdown
Member

Awesome, thanks for the PR! I guess every browser game use the same trick with explicit focusing? This issue is very annoying actually 🤔

@beckend

beckend commented Jun 22, 2021 •

Copy link
Copy Markdown
Contributor Author

I only tested on latest firefox and chromium which works fine. They either need touch or click events.

@mrDIMAS
mrDIMAS merged commit ed9cea5 into FyroxEngine:master Jun 23, 2021
@beckend
beckend deleted the wasm_sound_chrome branch July 18, 2022 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants