-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
165 lines (148 loc) · 5.89 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- <link rel="stylesheet" href="./src/css/button.css">-->
<title>Dead Empire Game</title>
<link rel="stylesheet" href="src/css/base.css">
<link rel="stylesheet" href="src/css/game.css">
</head>
<body>
<div
id="resource-loader"
style="position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background-color: rgba(0,0,0,0.74); color: white;
backdrop-filter: blur(10px);
display: flex; flex-flow: column nowrap; justify-content: center; align-items: center;
z-index: 100;
"
>
<h1 style="margin-bottom: 10px">DEAD EMPIRE GAME</h1>
<p style="margin: 0">1.0.14</p>
<p style="font-family: monospace">loading <span data-percent>0</span>%</p>
<div
class="logs"
style="padding: 0px 5px; position: absolute; top: 0; left: 0; font-size: 9px; width: 200px; border: 2px solid var(--base-color); height: 300px; max-height: 300px; overflow-y: scroll">
</div>
</div>
<div class="none" id="debug" style="
position: fixed;
top: 0;
right: 0;
width: 500px;
height: 100px;
background-color: rgba(0,0,0,0.69);
padding: 20px;
color: greenyellow;
overflow: scroll;
"></div>
<div class="none" id="cameraPos" style="
position: fixed;
top: 120px;
right: 0;
width: 500px;
height: 100px;
background-color: rgba(0,0,0,0.69);
padding: 20px;
color: greenyellow;
overflow: scroll;
"></div>
<div class="none" id="playerPos" style="
position: fixed;
top: 320px;
right: 0;
width: 500px;
height: 100px;
background-color: rgba(0,0,0,0.69);
padding: 20px;
color: greenyellow;
overflow: scroll;
"></div>
<div id="ui">
<div class="none">
<label>
Player speed:
<input type="range" id="speedInput" min="0" value="100" max="1000">
</label>
<label>
Attack speed:
<input type="range" id="attackSpeedInput" min="0" value="10" max="25">
</label>
<button id="resetTimeButton">reset time</button>
<label>
Time speed
<input type="range" id="timeSpeedInput" min="0" step="0.2" value="1" max="10">
(<span id="timeSpeedValue">1</span>)
</label>
</div>
<div style="position: fixed; top: 30%; right: 50%" id="start-stop-buttons">
<h2 id="heroes">Heroes:</h2>
<div id="select-hero"></div>
<style>
#select-hero {
width: 100px;
transition: 0.1s ease-in-out;
outline: 0px solid crimson;
}
#select-hero:hover {
outline: 4px solid crimson;
}
</style>
<!-- <h1>Dead empire game</h1>-->
<div class="none">state: <span id="state"></span></div>
<!-- <button id="start" class="gameButton">start</button>-->
<!-- <button id="stop" class="none gameButton">stop</button>-->
<div class="container">
<button id="start" class="gameButton">
START
</button>
<button id="stop" class="gameButton none">
STOP
</button>
</div>
</div>
<div id="mobile-controls" class="none" style="display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr">
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyW"></button>
<button class="mobile-button false"></button>
<button class="mobile-button false"></button>
<button class="mobile-button false"></button>
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyA"></button>
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyD"></button>
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyE" style="background-color: rgba(255,0,0,0.6)"></button>
<button class="mobile-button" data-key="KeyQ" style="background-color: rgba(255,115,0,0.76)"></button>
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyS"></button>
<button class="mobile-button false"></button>
<button class="mobile-button" data-key="KeyC" style="background-color: rgba(255,255,255,0.76)"></button>
<button class="mobile-button" data-key="KeyX" style="background-color: rgba(0,102,255,0.76)"></button>
<button class="mobile-button" data-key="KeyF" style="background-color: rgba(8,255,0,0.76)"></button>
</div>
<div id="quests" class="none">
<h2>Квесты:</h2>
<div class="quests__list">
</div>
</div>
<div id="modals"></div>
</div>
<div class="inventory">
<div class="inventory__player-section">
<div id="hero-preview">
</div>
</div>
<div class="inventory__items-section">
<div class="item-template" style="display: none"></div>
</div>
</div>
<canvas id="canvas"></canvas>
<script type="module" src="src/main.ts"></script>
</body>
</html>