-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
229 lines (210 loc) · 11.9 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300&display=swap" rel="stylesheet">
<script src="js/PZImage.js" defer></script>
<script src="js/map.js" defer></script>
<script src="js/events.js" defer></script>
<script src="js/gameModes.js" defer></script>
<script src="js/main.js" defer></script>
<script src="js/customInput.js" defer></script>
<!-- <script src="js/analytics.js" defer></script> -->
<script src="js/PipUIElement.js" defer></script>
<script src="js/elements.js" defer></script>
<script src="js/pipui.js" defer></script>
<script src="js/stats.js" defer></script>
<link rel="stylesheet" href="css/game.css" />
<link rel="icon" type="image/x-icon" href="./favicon.ico">
<title>Fallout 4 Guesser</title>
</head>
<body>
<p id="pLoadingProgress"></p>
<button id="btnTogglePip" onclick="pipToggleVisible()">
<canvas id="cnvTogglePip" width="256" height="256"></canvas>
</button>
<canvas id="cnvGuess" width="1600" height="900"></canvas>
<div id="dvPipboy">
<canvas id="cnvPipboy" width="1482" height="1355"></canvas>
<div id="dvPBScreenBG">
<div id="dvPBScreen">
<div id="dvScreenStats" class="sPipNav"></div>
<div id="dvScreenInv" class="sPipNav">
<div id="dvTitle">
<p>Select gamemode</p><br>
</div>
<div id="dvInvTop">
<!-- The easiest way I could think of to have the square
next to the selected mode -->
<div id="dvModeSelectionIcons">
<p id="ms1"></p>
<p id="ms2"></p>
<p id="ms3"></p>
<p id="ms4"></p>
</div>
<div id="dvInvModes">
<button id="btnModeNormal" class="pipButton">Normal</button>
<button id="btnModeEndless" class="pipButton">Endless</button>
<button id="btnModeSurvival" class="pipButton">Survival</button>
<button id="btnModeCustom" class="pipButton">Custom</button>
<button id="btnModeTutorial" class="pipButton">Tutorial</button>
</div>
<div id="dvInfoNormal" class="dvModeInfo">
<p>
A game of 5 rounds lasting 1 minute 30 seconds each<br>
Try to score as many points as possible
</p>
<button class="pipButton" onclick="initialiseGame('normal')">Start Game</button>
</div>
<div id="dvInfoEndless" class="dvModeInfo">
<p>
Unlimited rounds and no time or score limit<br>
Play as long as you like
</p>
<button class="pipButton" onclick="initialiseGame('endless')">Start Game</button>
</div>
<div id="dvInfoSurvival" class="dvModeInfo">
<p>
Start with 10,000 points which decay faster as you survive longer.
Make guesses to earn points back. Has unlimited rounds and stricter
scoring than other modes
</p>
<button class="pipButton" onclick="initialiseGame('survival')">Start Game</button>
</div>
<div id="dvInfoCustom" class="dvModeInfo">
<p>
Set your own game rules with the options below, or copy a code into the box here
</p>
<span>
<p class="inputStart">></p>
<input id="shareCodeInput" class="inputLong" type="text" placeholder="Enter code">
</span>
<button class="pipButton" onclick="initialiseGame('custom')">Start Game</button>
</div>
<div id="dvInfoTutorial" class="dvModeInfo">
<p>
Play a game with preset locations to get the hang of things
</p>
<button class="pipButton" onclick="initialiseGame('normal')">Start Game</button>
</div>
</div>
<div id="dvCustomSettings">
<div id="dvCustomLabels">
<label for="paramMode">Mode</label>
<label for="paramRounds">Rounds</label>
<label for="paramTimeLimit">Time limit per round (seconds)</label>
<label for="paramMinScore">Minimum score to pass</label>
<label for="paramMinDifficulty">Min difficulty</label>
<label for="paramMaxDifficulty">Max difficulty</label>
<label for="paramSeed">Seed (min 3 digits recommended)</label>
</div>
<div id="dvCustomParameters">
<span>
<p class="inputStart">v</p>
<select id="paramMode">
<option value="0">Normal</option>
<option value="1">Survival</option>
</select>
</span>
<span>
<p class="inputStart">></p>
<input id="paramRounds" class="inputMed" type="text" value="5" min="0" max="788" placeholder="All">
</span>
<span>
<p class="inputStart">></p>
<input id="paramTimeLimit" class="inputMed" type="text" value="60" min="0" max="300" placeholder="None">
</span>
<span>
<p class="inputStart">></p>
<input id="paramMinScore" class="inputMed" type="text" min="0" max="5000" placeholder="None">
</span>
<span>
<p class="inputStart">v</p>
<select id="paramMinDifficulty">
<option value="0" selected>Easy</option>
<option value="1">Medium</option>
<option value="2">Hard</option>
</select>
</span>
<span>
<p class="inputStart">v</p>
<select id="paramMaxDifficulty">
<option value="0">Easy</option>
<option value="1">Medium</option>
<option value="2" selected>Hard</option>
</select>
</span>
<span>
<p class="inputStart">></p>
<input id="paramSeed" class="inputMed" type="text" min="0" max="2147483648" placeholder="Random">
</span>
</div>
</div>
</div>
<div id="dvGameInfo">
<p id="pRoundCount"></p>
<p id="pTimer"></p>
<p id="pMinScore"></p>
<p id="pCurrentScore"></p>
</div>
<div id="dvScreenMap" class="sPipNav">
<div id="dvMap"></div>
<div id="dvMapBlurTop" class="mapBlur"></div>
<div id="dvMapBlurBottom" class="mapBlur"></div>
</div>
<div id="dvScreenData" class="sPipNav">
<ul id="roundResults"></ul>
</div>
<div id="dvScreenRadio" class="sPipNav">
<p>Radio for help</p>
<br>
<div id="dvRadioContent">
<div id="dvRadioLeft">
<p>
Need help finding the general area of a location? Call Preston
for help and he'll mark it on your map.<br>
<br>
This can be done up to twice per round for a more accurate
area, but reduces the maximum possible score for
that round.
</p>
<button id="btnGetHint" class="pipButton" onclick="getHint()" disabled="true">Get hint (score limit 5000 -> 4000)</button>
</div>
<img id="imHint" src="assets/hint.jpg">
</div>
</div>
<!-- Buttons separate from screens as they may want to be shown
on multiple screens -->
<div id="dvGameButtons">
<button id="btnReady" class="pipButton" onclick="ready()">Start</button>
<button id="btnConfirmGuess" class="pipButton" onclick="confirmGuess()">Confirm Guess</button>
<button id="btnNextRound" class="pipButton" onclick="nextRound()">Next Round</button>
<button id="btnShowSummary" class="pipButton" onclick="enableSummary();">Show Summary</button>
<button id="btnEndData" class="pipButton" onclick="pipNavChange('data')">View Game Data</button>
<button id="btnNewGame" class="pipButton" onclick="newGame(false)">New Game</button>
<button id="btnRepeatGame" class="pipButton" onclick="newGame(true)">Repeat Game</button>
</div>
</div>
</div>
<div id="dvPBNav">
<button id="btnStat" class="btnNav" onclick="pipNavChange('stats')"></button>
<button id="btnInv" class="btnNav" onclick="pipNavChange('inv')"></button>
<button id="btnData" class="btnNav" onclick="pipNavChange('data')"></button>
<button id="btnMap" class="btnNav" onclick="pipNavChange('map')"></button>
<button id="btnRadio" class="btnNav" onclick="pipNavChange('radio')"></button>
</div>
</div>
<div id="dvContact">
<div id="dvReport" onclick="getReportData()">
Click here to get info for a bug report
</div>
Email: [email protected]
</div>
</div>
</body>
</html>