-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
240 lines (203 loc) · 6.96 KB
/
Copy pathindex.html
File metadata and controls
240 lines (203 loc) · 6.96 KB
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Maze Runner</title>
<style>
html, body {
margin: 0;
height: 100%;
}
#panel {
position: absolute;
background-color: rgba(211, 211, 211, 0.3);
margin-top: 50px;
margin-left: 50px;
font-size: 14px;
font-family: monospace;
border-radius: 5px;
width: 300px;
box-shadow: 0px 5px 15px rgb(0 0 0 / 10%);
}
#container {
width: 100%;
height: 100%;
display: block;
}
.panel {
display: none;
}
.panel.active {
display: block;
}
.content_wrapper {
display: flex;
height: 40px;
}
.content_title {
font-weight: 700;
font-size: 16px;
text-align: center;
margin-bottom: 5px;
}
.hero_img {
width: 20px;
height: 20px;
}
.content {
display: none;
padding: 10px 20px;
}
.content.active {
display: flex;
height: 180px;
flex-direction: column;
}
.content_section {
display: flex;
margin-bottom: 10px;
justify-content: center;
}
.tab-button {
flex: 1;
letter-spacing: 3px;
border: none;
padding: 10px;
background-color: #000000;
color: #ffffff;
font-size: 18px;
cursor: pointer;
transition: 0.5s;
border-color: #ffffff;
border-style: solid;
}
.tab-button.active{
background-color: rgba(211, 211, 211, 0.3);
}
.content_img {
height: 20px;
width: 20px;
align-self: center;
margin-top: 5px;
margin-bottom: 15px;
}
.content_hero_shape {
height: 30px;
width: 30px;
margin-left: 20px;
margin-right: 20px;
border-radius: 5px;
}
input[type=radio] {
/* display: block; */
height: 20px;
margin: 5px 0px 5px 0px;
width: 20px;
}
label {
margin: 5px;
line-height: 20px;
margin-right: 15px;
}
</style>
</head>
<body>
<div class="panel active" id="panel">
<!-- <div id="cameraGroup">
<button id="cameraOne">Main Camera</button>
<button id="cameraTwo">Upper Camera</button>
<button id="cameraThree">Hero Camera</button>
</div> -->
<!-- <div id="fps"></div> -->
<!-- <label>Game Settings</label> -->
<div class="content_wrapper" id="tabButtonWrapper">
<button class="tab-button active" data-id="maze_setting">Maze</button>
<button class="tab-button" data-id="hero_setting">Hero</button>
<button class="tab-button" data-id="wall_setting">Wall</button>
</div>
<!-- <section id="difficulty">
<input id="difficulty_entry" type="range" min="10" max="50" step="5" value="5"></input>
<label>Difficulty</label>
</section> -->
<div class="content active" id="maze_setting">
<img class="content_img" src="src/assets/other/maze.png">
<div>
<legend class="content_title">Maze Difficulty</legend>
<div class="content_section" id="maze_difficulty">
<input class="radio" id="maze_easy" type="radio" value="easy" name="difficulty" checked>
<label for="maze_easy">Easy</label>
<input class="radio" id="maze_medium" type="radio" value="medium" name="difficulty">
<label for="maze_medium">Medium</label>
<input class="radio" id="maze_hard" type="radio" value="hard" name="difficulty">
<label for="maze_hard">Hard</label>
</div>
</div>
<div>
<legend class='content_title'>Maze Apperance</legend>
<div class="content_section" id="maze_apperance">
<input class="radio" id="maze_theme1" type="radio" value="star" name="appearance">
<label for="maze_theme1">Star</label>
<input class="radio" id="maze_theme2" type="radio" value="blood" name="appearance">
<label for="maze_theme2">Bloody</label>
<input class="radio" id="maze_theme3" type="radio" value="stone" name="appearance">
<label for="maze_theme3">Stone</label>
</div>
</div>
</div>
<div class="content" id="hero_setting">
<img class="content_img" src="src/assets/other/hero.png" style="height: 30px; width: 30px"/>
<div>
<legend class="content_title">Hero Shape</legend>
<div class="content_section" id="hero_shape">
<img class="content_hero_shape active" id="octa" src="src/assets/other/octa.png" />
<img class="content_hero_shape" id="cone" src="src/assets/other/cone.png" />
<img class="content_hero_shape" id="sphere" src="src/assets/other/sphere.png" />
<img class="content_hero_shape" id="cylinder" src="src/assets/other/cylinder.png" />
</div>
</div>
<div>
<legend class="content_title">Hero Skin</legend>
<div class="content_section" id="hero_skin">
<img class="content_hero_shape active" id="blood" src="src/assets/textures/hero/blood.jpeg"></img>
<img class="content_hero_shape" id="steel" src="src/assets/textures/hero/steel.jpeg"></img>
<img class="content_hero_shape" id="diamond" src="src/assets/textures/hero/diamond.jpeg"></img>
<img class="content_hero_shape" id="color" src="src/assets/textures/hero/color.jpeg"></img>
</div>
</div>
</div>
<div class="content" id="wall_setting">
<img class="content_img" src="src/assets/other/wall.png" style="height: 25px; width: 25px"/>
<div>
<legend class="content_title">Wall Surface</legend>
<div class="content_section" id="wall_surface">
<img class="content_hero_shape active" id="brick" src="src/assets/textures/wall/brick.jpeg" />
<img class="content_hero_shape" id="wood" src="src/assets/textures/wall/wood.jpeg" />
<img class="content_hero_shape" id="glass" src="src/assets/textures/wall/glass.jpeg" />
</div>
</div>
<div>
<legend class="content_title">Wall Height</legend>
<div class="content_section" id="wall_height">
<input class="radio" id="low" type="radio" value="low" name="wall_height" checked>
<label for="wall_height">Low</label>
<input class="radio" id="high" type="radio" value="high" name="wall_height">
<label for="wall_height">High</label>
</div>
</div>
</div>
<button id="start">Start Game</button>
</div>
<div id="container"></div>
<!-- <script defer type="module" src="https://threejs.org/examples/jsm/loaders/FontLoader.js"></script>
<script defer type="module" src="https://threejs.org/examples/jsm/geometries/TextGeometry.js"></script> -->
<script defer type="module" src="./output/bundle.js"></script>
</body>
</html>
<!-- // maze dimension
// max hero hp
// hero theme selection
// floor theme selection
// wall theme selection
// game start btn -->