-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
173 lines (147 loc) · 3.52 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
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,700&subset=cyrillic" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=cyrillic" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&subset=cyrillic" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i|Tinos:400,400i&subset=cyrillic"
rel="stylesheet" />
<script src="./jqeury.js"></script>
<style>
* {
box-sizing: border-box;
}
body,
html {
height: 100%;
}
body {
background-color: #000000;
color: #ffffff;
}
h1 {
font-family: 'Playfair Display';
font-size: 30px;
padding: 10px 0px;
margin: 0px;
}
.field-box {
border: 2px solid #d0d0d0;
float: left;
}
.field {
position: relative;
width: 1024px;
height: 640px;
}
.field .tile {
position: absolute;
width: 50px;
height: 50px;
background-size: 100%;
background-image: url(images/tile-.png);
z-index: 5;
}
.field .tileW {
background-image: url(images/tile-W.png);
}
.field .tileE {
background-image: url(images/tile-E.png);
z-index: 10;
}
.field .tileP {
background-image: url(images/tile-P.png);
z-index: 10;
}
.field .tileHP {
background-image: url(images/tile-HP.png);
z-index: 9;
}
.field .tileSW {
background-image: url(images/tile-SW.png);
z-index: 9;
}
.field .tile .health {
background-color: #ff0000;
z-index: 11;
position: absolute;
left: 0px;
top: 0px;
height: 3px;
}
.field .tileP .health {
background-color: #00ff00;
z-index: 11;
position: absolute;
left: 0px;
top: 0px;
height: 3px;
}
.inventory-box {
border: 2px solid #d0d0d0;
float: left;
}
.inventory {
position: relative;
width: 800px;
height: 32px;
}
.cl {
clear: both;
display: block;
}
.control {
position: absolute;
top: 70px;
left: 1100px;
}
.control-subtitle {
font-size: 30px;
}
.loading {
position: absolute;
left: 270px;
top: 70px;
}
.info {
position: absolute;
font-size: 30px;
left: 20px;
top: 80px;
z-index: 10;
display: flex;
}
.hp {
margin-right: 20px;
}
</style>
</head>
<body>
<h1>Игровое поле</h1>
<div class="field-box">
<div class="field"></div>
</div>
<div class="loading">
<img src="./images/tile-F.gif" />
</div>
<div class="info">
<div class="hp"></div>
<div class="attack"></div>
</div>
<div class="cl"></div>
<div class="control">
<h2>Управление:</h2>
<div class="control-subtitle">Вперед: W</div>
<div class="control-subtitle">Назад: S</div>
<div class="control-subtitle">Вправо: D</div>
<div class="control-subtitle">Влево: A</div>
<div class="control-subtitle">Атака: Пробел</div>
</div>
<!--h1>Инвентарь</h1>
<div class="inventory-box"><div class="inventory"></div></div-->
<script src="index.js"></script>
</body>
</html>