-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
37 lines (32 loc) · 842 Bytes
/
Copy pathgame.html
File metadata and controls
37 lines (32 loc) · 842 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Game</title>
<style media="screen">
canvas {
border: 1px black solid;
background: black;
}
body {
background-image: url("source/image/background.jpg");
background-position: center;
}
</style>
<script src="script/util.js"></script>
<script src="script/things.js"></script>
<script src="script/scene.js"></script>
</head>
<body>
<div>
<canvas id="id-canvas" width="500" height="600"></canvas>
<div id="HP" style="background: yellowgreen;width: 500px;">
<p id="HPNum">HP:</p>
</div>
<div id="MP" style="background: cornflowerblue;width: 500px;">
<p id="MPNum">MP:</p>
</div>
</div>
<script src="script/game.js"></script>
</body>
</html>