-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
45 lines (40 loc) · 1.44 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Gfx Lab</title>
<link rel="stylesheet" href="./style.scss">
</head>
<body>
<div>
<canvas width="960" height="540" id="app" tabindex="1">
<!-- Here is where we will draw our scene -->
</canvas>
</div>
<div>
<span>Scene: </span>
<select name="scenes" id="scenes"></select>
</div>
<div id="controls"></div>
<label style="color: red;" className="control-label">Score: <span id="score"></span></label>
<br />
<label style="color: red;" className="control-label">Health: <span id="health"></span></label>
<span id="over">
</span>
<!-- The following line includes our script which will run WebGL -->
<script src="./src/app.ts"></script>
<!-- <script>
var canvas = document.getElementById("app");
let ctx = canvas.getContext("2d");
ctx.font = "30px arial";
ctx.fillStyle = "red";
ctx.textAlign = "center";
ctx.fillText("GAME OVER", canvas.width/2, canvas.height/2);
</script> -->
<!-- <label className="control-label">Score: <span id="score"></span></label>
<br />
<label className="control-label">Health: <span id="health"></span></label> -->
</body>
</html>