-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
141 lines (139 loc) · 3.4 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="AnAntStory">
<title>Netherweird</title>
<style>
/* Make hidden actually work */
[hidden] { display: none !important; }
* {
cursor:crosshair;
}
html, body {
width: 100%;
height: 100%;
margin: 0;
border: 0;
/* Disable scrollbars */
overflow: hidden;
/* No floating content on sides */
display: block;
font-family: sans-serif;
}
#gamecanvas {
position: absolute;
left: 0px;
top: 0px;
}
#appUi {
position: absolute;
top: 50%;
left: 50%;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
width: 800px;
height: 800px;
display: flex;
flex-direction: column;
justify-content: center;
}
.menuCenter {
display: flex;
flex-direction: column;
justify-content: center;
width: max-content;
height: max-content;
background-color: rgba(0,0,0,0.5);
margin: auto;
border-radius: 20px;
}
.menuCenter > * {
display: block;
margin: 40px 40px 0 40px;
padding: 0 70px;
color: white;
}
.menuCenter > *:last-child {
margin-bottom: 40px;
}
.menuCenter > input[type=button] {
border-radius: 10px;
border: none;
background-color: floralwhite;
color: black;
height: 90px;
}
.menuCenter > input[type=button]:hover {
background-color: cornsilk;
}
.menuCenter > input[type=button]:active {
background-color:bisque;
}
.menuCenter > input[type=button]:disabled {
background-color: gainsboro;
}
.menuBox {
display: flex;
flex-direction: column;
justify-content: center;
}
.credits {
width: 200px;
}
h2 {
text-align: center;
color: white;
}
</style>
</head>
<body>
<div id="gamediv">
<canvas id="gamecanvas"></canvas>
</div>
<div id="appUI" hidden>
<div id="titleMenu" class="menuCenter">
<div class="menuBox">
<h2>Netherweird</h2>
</div>
<div class="menuBox">
<div>
Enable debug: <input id="checkboxEnableDebug" type="checkbox">
</div>
<div>
Enable music: <input id="checkboxEnableMusic" type="checkbox">
</div>
<div>
Enable sfx: <input id="checkboxEnableSfx" type="checkbox" checked>
</div>
</div>
<input id="buttonStartPvE" type="button" value="1 Player">
<input id="buttonStartPvPLocal" type="button" value="2 Player (local)">
<div class="credits">
<p>
<b>Nuno Das Neves</b>: <br> <i>Programming, Art, Design</i>
</p>
<p>
<b>Damian Maldonado</b>: <br> <i>Music, Sound, Design</i>
</p>
</div>
</div>
<div id="pauseMenu" class="menuCenter">
<div class="menuBox">
<h2>Paused</h2>
</div>
<input id="buttonContinue" type="button" value="Continue">
</div>
<div id="gameOverMenu" class="menuCenter">
<div class="menuBox">
<h2 id="gameOverText">The game ended!</h2>
</div>
<input id="buttonBackToTitle" type="button" value="Ok">
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>