wait for audio ready before starting cart, add button to unsuspend audio

fixes missing sound when auto-starting cart in chrome
This commit is contained in:
2022-03-06 14:08:44 +01:00
parent 0d514c7dd3
commit 2033f9a172
5 changed files with 52 additions and 8 deletions

View File

@@ -13,8 +13,9 @@
<a href="https://exoticorn.github.io/microw8">MicroW8</a> 0.1.2
</div>
<div id="centered">
<canvas id="screen" width="320" height="240">
<canvas class="screen" id="screen" width="320" height="240">
</canvas>
<button class="screen" id="start" style="display:none">Click to start</button>
<div id="timer" hidden="true"></div>
<div id="message"></div>
<button id="cartButton" style="visibility:hidden">Load cart...</button>