-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path04_hello_vectors.html
34 lines (34 loc) · 1.13 KB
/
04_hello_vectors.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="canvas-holder">
<div>
<div>score: <span id="score-holder">0</span></div>
<div>enemy HP <span id="enemy-HP-holder">100</span></div>
<div>bear HP <span id="bear-HP-holder">100</span></div>
<p>
Use WSAD or mouse to move goaticorn<br />
Fire lazer using space or mouse click<br />
Use Arrows to move enemy<br />
Avoid hitting bear!
</p>
</div>
<canvas
id="toy-canvas"
width="512"
height="288"
></canvas>
</div>
</div>
<script src="https://unpkg.com/[email protected]/gl-matrix-min.js"></script>
<script src="wavefront_obj_parser.js"></script>
<script src="04_hello_vectors.js"></script>
</body>
</html>