-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
83 lines (82 loc) · 2.86 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title><%= htmlWebpackPlugin.options.title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="icon" href="<%=require("./resources/favicon.png").default%>">
<style>
html,
body {
height: 100%;
}
body {
margin: 0px;
background-color: #1f1e1d;
color: #adb8bc;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
canvas {
position: absolute;
background-color: #1f1e1d;
image-rendering: pixelated;
image-rendering: crisp-edges;
transform: scale(2);
}
.build {
color: #adb8bc33;
font-size: 12px;
font-family: Menlo, monospace;
text-decoration: none;
text-align: left;
position: absolute;
left: 16px;
bottom: 16px;
margin: 8;
z-index: 1;
}
.spritesheet {
display: none;
}
.fps {
color: #42c928;
font-size: 18px;
font-family: Menlo, monospace;
text-align: left;
position: absolute;
right: 4px;
top: 4px;
margin: 0;
z-index: 1;
}
</style>
</head>
<body>
<p class="fps">144</p>
<audio>
<source src="<%=require("./resources/music/menu.wav").default%>"
type="audio/wav"> <source
src="<%=require("./resources/music/forest_intro.wav").default%>"
type="audio/wav"> <source
src="<%=require("./resources/music/forest_loop.wav").default%>"
type="audio/wav"> <source
src="<%=require("./resources/music/village_intro.wav").default%>"
type="audio/wav"> <source
src="<%=require("./resources/music/village_loop.wav").default%>"
type="audio/wav">
</audio>
<a class="build" href="https://github.com/ddmills/sleepy">
<%= htmlWebpackPlugin.options.version %>
</a>
<img class="spritesheet" id="spritesheet-tiles"
src="<%=require("./resources/tileset.png").default%>" /> <img
class="spritesheet" id="spritesheet-font"
src="<%=require("./resources/font.png").default%>" /> <img
class="spritesheet" id="spritesheet-ui"
src="<%=require("./resources/ui.png").default%>" />
</body>
</html>