Open tbalouet opened 7 years ago
correct I'll dispatch play() then pause() on all audio entities if on mobile after a user interaction
this might not be trivial though since sounds are added dynamically cf https://github.com/tbalouet/WebVRDefender/blob/dev/client/js/components/enemy.js#L87 , might have to use a sound pool ...
Sound on kill has been commented out in the enemy component. Please clarify why before I add more of those on hit, kill and even on click for the shot.
Manage to play sounds on events kill/background/... with the user input needed on mobile