-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
233 lines (211 loc) · 12.3 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Wumpus World</title>
<meta name="author" content="Shamya Haria">
<meta name="description" content="A Wumpus World Simulator">
<meta name="keywords" content="wumpus world, simulator, wumpus world simulator">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="rgba(72, 120, 160, 1)">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Favicons to all plataforms -->
<link rel="apple-touch-icon" sizes="57x57" href="img/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="img/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon/favicon-16x16.png">
<link rel="manifest" href="img/favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="img/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Vendor -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.11.0/css/flag-icons.min.css">
<!-- Application -->
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<nav class="navbar navbar-expand-sm navbar-light bg-light fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#">Wumpus World</a>
<button class="navbar-toggler" type="button" data-bs-toggle="modal" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto">
<li class="nav-item">
<a class="nav-link" href="#" data-bs-toggle="modal" data-bs-target="#modal-controls" data-i18n="controls">Controls</a>
</li>
</ul>
<form class="d-flex">
<select data-validation="required" id="select-language" tabindex="-1">
<option value="en_us" data-icon="fi fi-us" data-i18n="en_us">en_us</option>
<option value="pt_br" data-icon="fi fi-br" data-i18n="pt_br">pt_br</option>
<option value="ar" data-icon="fi fi-tn" data-i18n="ar">ar</option>
<option value="fr" data-icon="fi fi-fr" data-i18n="fr">fr</option>
<option value="tr_TR" data-icon="fi fi-tr" data-i18n="tr_TR">tr_TR</option>
</select>
</form>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-lg-9">
<div class="card card-game">
<div class="card-content">
<canvas id="canvas" width="480" height="480" data-i18n="no-canvas-support"></canvas>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="card">
<div class="card-header">
<nav>
<div class="nav nav-tabs card-header-tabs">
<button class="nav-link active" data-bs-toggle="tab" data-bs-target="#info-tab" type="button" data-i18n="info">Info</button>
<button class="nav-link" data-bs-toggle="tab" data-bs-target="#settings-tab" type="button" data-i18n="settings">Settings</button>
</div>
</nav>
</div>
<div class="card-body">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="info-tab" role="tabpanel">
<p>
<img src="img/score-icon.png" width="16px" />
<span data-i18n="score">Score</span>:
<span id="score">0</span>
</p>
<p>
<img src="img/arrow-icon.png" width="16px" />
<span data-i18n="arrow">Arrow</span>:
<span id="arrow">0</span>
</p>
<p>
<img src="img/gold-icon.png" width="16px" />
<span data-i18n="remaining-golds">Remaining Golds</span>:
<span id="gold">0</span>
</p>
<hr />
<button data-bs-toggle="modal" data-bs-target="#modal-share" class="btn btn-success" data-i18n="share">Share</button>
</div>
<div class="tab-pane fade" id="settings-tab" role="tabpanel">
<form>
<div class="mb-3">
<input class="form-check-input" tabindex="-1" type="checkbox" value="true" id="btn-remove-walls">
<label class="form-check-label" tabindex="-1" for="btn-remove-walls" data-i18n="settings-remove-walls">Remove Walls</label>
</div>
<hr />
<div>
<label tabindex="-1" class="form-label" for="btn-volume" data-i18n="settings-volume">Volume</label>
<input type="range" min="0.0" max="1.0" value="0.2" step="0.1" class="form-range" id="btn-volume">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" id="modal-game-over">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center">
<h3 data-i18n="game-over">Game Over</h3>
<img src="img/game_over.png" alt="Sorry! Game Over">
</div>
<div class="modal-footer">
<button class="btn btn-primary btn-restart" data-i18n="restart">Restart</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal" tabindex="-1" id="modal-win">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body text-center">
<h3 data-i18n="congratulations">Congratulations</h3>
</div>
<div class="modal-footer">
<button class="btn btn-primary btn-restart" data-i18n="restart">Restart</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal" tabindex="-1" id="modal-share">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" data-i18n="share">Share</h5>
</div>
<div class="modal-body">
<div class="form-group">
<label for="textarea-link">Link:</label>
<textarea class="form-control" rows="5" id="textarea-link"></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" data-i18n="close">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<div class="modal" tabindex="-1" id="modal-controls">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="label-controls" data-i18n="controls">Controls</h5>
</div>
<div class="modal-body">
<img src="img/controls.png" class="img-fluid" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" data-i18n="close">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Vendor -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/farhadmammadli/bootstrap-select@main/js/bootstrap-select.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.messagestore.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.fallbacks.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.language.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.parser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.emitter.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.i18n/1.0.7/jquery.i18n.emitter.bidi.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.1/howler.min.js"></script>
<!-- Application -->
<script src="js/utils/random-utils.js"></script>
<script src="js/utils/array-utils.js"></script>
<script src="js/core/resources.js"></script>
<script src="js/core/environment.js"></script>
<script src="js/core/keys.js"></script>
<script src="js/core/player.js"></script>
<script src="js/script.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=G-QM7NW3TEM6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-QM7NW3TEM6');
</script> -->
</body>
</html>