-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
277 lines (266 loc) · 14 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
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blue Mage Alchemy</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<style>
.bg-indigo{
background-color: rgb(123, 45, 248);
}
.bg-orange{
background-color: rgb(239, 134, 13);
}
.bg-gray{
background-color: rgb(128,128,128);
}
.bg-purple{
background-color: rgb(109, 23, 247);
}
.bg-sand{
background-color: rgb(217, 203, 144);
}
.bg-ore{
background-color: rgb(68, 68, 68);
}
.bg-seawater{
background-color: rgb(51, 149, 210);
}
.box-sand-shadow:hover{
background-color: rgb(200, 190, 130);
}
.box-sand-shadow:focus{
outline: none;
background-color: rgb(200, 190, 130);
border-color: rgb(195, 185, 125);
box-shadow: 0 0 0 4px rgba(217,203,144, 0.5);
}
.box-ore-shadow:hover{
background-color: rgb(85, 85, 85);
}
.box-ore-shadow:focus{
outline: none;
background-color: rgb(85, 85, 85);
border-color: rgb(80, 80, 80);
box-shadow: 0 0 0 4px rgba(68,68,68, 0.5);
}
</style>
</head>
<body>
<h1 id="game-title" class="p-3">藍魔法師煉金</h1>
<!--主遊戲畫面-->
<div id="main-game" class="container">
<p id="level" class="p-1">等級:</p>
<p id="money" class="p-1">金錢:</p>
<div id="status-bars" class="container p-1">自身數值
<div id="mana-main" class="container p-0">
<div id="mana-label">魔力值</div>
<div id="mana" class="progress">
<div id="mana-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-info" role="progressbar" style="width: 12%"></div>
</div>
</div>
<div id="prestige-main" class="container p-0">
<div id="prestige-label">聲望值</div>
<div id="prestige" class="progress">
<div id="prestige-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-indigo" role="progressbar" style="width: 12%"></div>
</div>
</div>
</div>
<div id="elements" class="container p-1">持有元素
<div class="row">
<div class="col">
<div id="carbon-main" class="container p-0">碳(C)
<div id="carbon" class="progress">
<div id="carbon-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-dark" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="hydrogen-main" class="container p-0">氫(H)
<div id="hydrogen" class="progress">
<div id="hydrogen-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="chlorine-main" class="container p-0">氯(Cl)
<div id="chlorine" class="progress">
<div id="chlorine-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="sulfur-main" class="container p-0">硫(S)
<div id="sulfur" class="progress">
<div id="sulfur-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-warning" role="progressbar" style="width: 12%;"></div>
</div>
</div>
</div>
<div class="col">
<div id="silicon-main" class="container p-0">矽(Si)
<div id="silicon" class="progress">
<div id="silicon-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-gray" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="oxygen-main" class="container p-0">氧(O)
<div id="oxygen" class="progress">
<div id="oxygen-bar" class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="nitrogen-main" class="container p-0">
<div id="nitrogen-label">氮(N)</div>
<div id="nitrogen" class="progress">
<div id="nitrogen-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-orange" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="phosphorus-main" class="container p-0">磷(P)
<div id="phosphorus" class="progress">
<div id="phosphorus-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-purple" role="progressbar" style="width: 12%;"></div>
</div>
</div>
</div>
</div>
</div>
<div id="items" class="container p-1">儲備物品
<div id="water-main" class="container p-0">
<div id="water-label">水</div>
<div id="water" class="progress">
<div id="water-bar" class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="sand-main" class="container p-0">
<div id="sand-label">沙子</div>
<div id="sand" class="progress">
<div id="sand-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-sand" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="coal-main" class="container p-0">
<div id="coal-label">原礦</div>
<div id="coal" class="progress">
<div id="coal-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-ore" role="progressbar" style="width: 12%;"></div>
</div>
</div>
<div id="seawater-main" class="container p-0">
<div id="seawater-label">海水</div>
<div id="seawater" class="progress">
<div id="seawater-bar" class="progress-bar progress-bar-striped progress-bar-animated bg-seawater" role="progressbar" style="width: 12%;"></div>
</div>
</div>
</div>
<div id="buttons" class="container p-1">操作
<div class="d-grid gap-2 d-flex justify-content-end">
<button id="digOre" class="btn bg-ore box-ore-shadow text-light">挖礦</button>
<button id="digSand" class="btn bg-sand box-sand-shadow">挖沙</button>
<button id="addWater" class="btn btn-primary">加水</button>
</div>
<div class="row p-3"></div>
<div class="d-grid gap-2 d-flex justify-content-end">
<button id="toBottle" class="btn btn-outline-secondary">裝罐</button>
<button id="toBucket" class="btn btn-outline-secondary">裝桶</button>
</div>
<div class="row p-3"></div>
<div class="d-grid gap-2 d-flex justify-content-end">
<button id="refineElement" data-bs-toggle="modal" data-bs-target="#refineElementModal" class="btn btn-outline-primary">元素提煉</button>
<button id="alchemiteItem" data-bs-toggle="modal" data-bs-target="#alchemiteItemModal" class="btn btn-outline-primary">物品煉成</button>
</div>
<div class="row p-3"></div>
<div class="d-grid gap-2 d-flex justify-content-end">
<button id="manageEmployee" data-bs-toggle="modal" data-bs-target="#employeeModal" class="btn btn-outline-primary">員工管理</button>
<button id="manageArea" data-bs-toggle="modal" data-bs-target="#AreaModal" class="btn btn-outline-primary">地區管理</button>
<button id="manageItem" data-bs-toggle="modal" data-bs-target="#itemsModal" class="btn btn-outline-primary">物品管理</button>
<button id="openShop" data-bs-toggle="modal" data-bs-target="#shopModal" class="btn btn-outline-primary">打開商店</button>
</div>
<div class="row p-3"></div>
</div>
</div>
<!--互動視窗-->
<div id="shopModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>商店</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<div id="itemsModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>物品</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<div id="employeeModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>員工</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<div id="AreaModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>地區</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<div id="refineElementModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>元素提煉</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<div id="alchemiteItemModal" class="modal fade" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<strong>物品煉成</strong>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">離開</button>
</div>
</div>
</div>
</div>
<script src="libs/elements.js"></script>
<script src="libs/items.js"></script>
<script src="libs/mage.js"></script>
<script src="libs/money.js"></script>
<script src="libs/player.js"></script>
<script src="libs/progress.js"></script>
<script src="libs/shop.js"></script>
<script src="game.js"></script>
</body>
</html>