generated from piesku/goodluck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (30 loc) · 1013 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<meta charset="utf8" />
<meta name="viewport" content="width=device-width, user-scalable=0" />
<title>You Are The Snooze Button (DEBUG)</title>
<link rel="stylesheet" href="./play/game.css" />
<link rel="stylesheet" href="./play/debug.css" />
<body>
<canvas id="scene"></canvas>
<canvas id="billboard"></canvas>
<main></main>
<img src="assets/face1.svg" id="face1" />
<div id="debug">
<div>update: <span id="update"></span></div>
<div>delta: <span id="delta"></span></div>
<div>fps: <span id="fps"></span></div>
<div><button onclick="toggle(this)">pause</button></div>
</div>
<script type="module">
import "./src/index.js";
window.toggle = function toggle(button) {
if (game.Running) {
game.Stop();
button.textContent = "resume";
} else {
game.Start();
button.textContent = "pause";
}
};
</script>
</body>