forked from samuelbeard/IncrementalRPG
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
336 lines (279 loc) · 16.1 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<!DOCTYPE html>
<html>
<head>
<title>Incremental RPG </title>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- link rel="stylesheet" type="text/css" href="css/bootstrap.css" -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<link rel="stylesheet" href="css/flat-ui.css" type="text/css" />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Latest compiled and minified Bootstrap JavaScript -->
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/flat-ui.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="shortcut icon" href="favicon.ico">
<!-- Google Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-76312005-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-76312005-2');
</script>
</head>
<body class="background-gray">
<!-- Modal -->
<div class="modal fade" id="onLoadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
<div class="modal-dialog">
<div style="background-color: #333;" class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onmousedown="return false;">×</button>
<h4 class="modal-title" id="myModalLabel">Welcome to Incremental RPG!</h4>
</div>
<div class="modal-body">
<p>This is an open source project with the goal of creating the BEST incremental game in the world, ever!</p>
<p>Join in and help make this game awesome on <a href="https://github.com/samjb2/IncrementalRPG">GitHub</a>.</p>
<p>This box will show up everytime you start the game dont worry your progress stays saved we just havent added name saving yet but its coming!</p>
<h3>Name Your Town:</h3>
<input class="form-control" id="town" type="text">
<h3>Name Your Mayor:</h3>
<input class="form-control" id="mayor" type="text">
</div>
<div class="modal-footer">
<button type="button" id="modalClose" class="btn btn-success" data-dismiss="modal" onmousedown="return false;">Done</button>
</div>
</div>
</div>
</div>
<div class="row header">
<div class="col-md-12">
<h1>Incremental RPG <image class="icon-64" src="img/images/IconPack_24.png" />
<small id="version-number"></small>
</h1>
<br/>
<br/>
<h4>Game made by: samuelbeard - more info at <a target="
"href="https://github.com/idle-js-games/IncrementalRPG">IncrementalRPG</a></h4>
<br/>
<h4>And Improved by Romulolink</h4>
<br/>
<h4>Icons provided by <a target="
"href="https://www.flaticon.com/">Flaticon</a></h4>
<br/>
</div>
</div>
<div class="row">
<div style="margin-left:200px; text-align:center;" class="col-md-6">
<h2>
<span id="townName"></span>
</h2>
<h3>
<small>Our Beloved Mayor:</small>
<span id="mayorName"></span>
<h6 id='autosave'>Auto-Saving in 0</h6>
<button class="btn btn-danger" onclick="saveGame()">Save Game</button>
</h3>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-7">
<hr>
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onmousedown="return false;">x</button>
<p>Use the resources you have gathered to build some accommodation so that you can hire workers.</p>
<p>Some buildings need to be researched before you are able to build them.</p>
</div>
<div id="resources"></div>
</div>
<div class="col-md-5">
<hr>
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onmousedown="return false;">x</button>
<p>Click the buttons below to create workers who will gather resources for you. You will need somewhere for them to live first though.</p>
</div>
<div class="row">
<div class="col-xs-6">
<div class="btn-group btn-group-justified">
<span class="btn btn-default disabled">Population</span>
<span id="population-total" class="btn btn-default disabled"></span>
</div>
</div>
<div class="col-xs-6">
<div class="btn-group btn-group-justified">
<span class="btn btn-default disabled">Max</span>
<span id="population-max" class="btn btn-default disabled"></span>
</div>
</div>
</div>
<div id="workers"></div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<hr>
<div class="alert alert-info alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onmousedown="return false;">x</button>
<p>Use the resources you have gathered to build some accommodation so that you can hire workers.</p>
<p>Some buildings need to be researched before you are able to build them.</p>
</div>
<div id="buildings"></div>
<hr>
<div class="alert alert-info alert-dismissable" style="margin-top:15px;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onmousedown="return false;">x</button>
<p>Build storage houses to store more resources.</p>
</div>
<div id="storage-buttons"></div>
</div>
<div class="col-md-6">
<hr>
<div class="alert alert-info alert-dismissable" style="margin-top:15px;">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true" onmousedown="return false;">x</button>
<p>By Upgrades to increase the production.</p>
</div>
<div class="row" id="upgrade-two-axes">
<div class="col-xs-4">
<button id="twoAxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.wood, 2, upgrades.twoAxes)"></button>
</div>
<div class="col-xs-8">
<h6>-<span id="twoAxes-wood-cost"></span> Wood | -<span id="twoAxes-stone-cost"></span> Stone | -<span id="twoAxes-meat-cost"></span> Meat</h6>
<h6 id="twoAxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-five-axes">
<div class="col-xs-4">
<button id="fiveAxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.wood, 5, upgrades.fiveAxes)">Five Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="fiveAxes-wood-cost"></span> Wood | -<span id="fiveAxes-stone-cost"></span> Stone | -<span id="fiveAxes-meat-cost"></span> Meat</h6>
<h6 id="fiveAxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-ten-axes">
<div class="col-xs-4">
<button id="tenAxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.wood, 10, upgrades.tenAxes)">Ten Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="tenAxes-wood-cost"></span> Wood | -<span id="tenAxes-stone-cost"></span> Stone | -<span id="tenAxes-meat-cost"></span> Meat</h6>
<h6 id="tenAxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-two-pickaxes">
<div class="col-xs-4">
<button id="twoPickaxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.stone, 2, upgrades.twoPickaxes)"></button>
</div>
<div class="col-xs-8">
<h6>-<span id="twoPickaxes-wood-cost"></span> Wood | -<span id="twoPickaxes-stone-cost"></span> Stone | -<span id="twoPickaxes-meat-cost"></span> Meat</h6>
<h6 id="twoPickaxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-five-pickaxes">
<div class="col-xs-4">
<button id="fivePickaxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.stone, 5, upgrades.fivePickaxes)">Five Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="fivePickaxes-wood-cost"></span> Wood | -<span id="fivePickaxes-stone-cost"></span> Stone | -<span id="fivePickaxes-meat-cost"></span> Meat</h6>
<h6 id="fivePickaxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-ten-pickaxes">
<div class="col-xs-4">
<button id="tenPickaxes-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.stone, 10, upgrades.tenPickaxes)">Ten Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="tenPickaxes-wood-cost"></span> Wood | -<span id="tenPickaxes-stone-cost"></span> Stone | -<span id="tenPickaxes-meat-cost"></span> Meat</h6>
<h6 id="tenPickaxes-description"></h6>
</div>
</div>
<div class="row" id="upgrade-two-arrows">
<div class="col-xs-4">
<button id="twoArrows-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.meat, 2, upgrades.twoArrows)"></button>
</div>
<div class="col-xs-8">
<h6>-<span id="twoArrows-wood-cost"></span> Wood | -<span id="twoArrows-stone-cost"></span> Stone | -<span id="twoArrows-meat-cost"></span> Meat</h6>
<h6 id="twoArrows-description"></h6>
</div>
</div>
<div class="row" id="upgrade-five-arrows">
<div class="col-xs-4">
<button id="fiveArrows-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.meat, 5, upgrades.fiveArrows)">Five Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="fiveArrows-wood-cost"></span> Wood | -<span id="fiveArrows-stone-cost"></span> Stone | -<span id="fiveArrows-meat-cost"></span> Meat</h6>
<h6 id="fiveArrows-description"></h6>
</div>
</div>
<div class="row" id="upgrade-ten-arrows">
<div class="col-xs-4">
<button id="tenArrows-name" class="btn btn-warning btn-block" onmousedown="clickIncrementUpgrade(resource.meat, 10, upgrades.tenArrows)">Ten Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="tenArrows-wood-cost"></span> Wood | -<span id="tenArrows-stone-cost"></span> Stone | -<span id="tenArrows-meat-cost"></span> Meat</h6>
<h6 id="tenArrows-description"></h6>
</div>
</div>
<div class="row" id="upgrade-bigger-tents">
<div class="col-xs-4">
<button id="biggerTents-name" class="btn btn-warning btn-block" onmousedown="residentSizeUpgrade(buildings.tent, 3, upgrades.biggerTents)">Ten Axes</button>
</div>
<div class="col-xs-8">
<h6>-<span id="biggerTents-wood-cost"></span> Wood | -<span id="biggerTents-stone-cost"></span> Stone | -<span id="biggerTents-iron-cost"></span> Iron | -<span id="biggerTents-meat-cost"></span> Meat</h6>
<h6 id="biggerTents-description"></h6>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<hr>
<div class="progress-content">
<h3>Information</h3>
<div id="message-info" class="info"></div>
</div>
</div>
<div class="col-md-6">
<hr>
<div class="progress-content">
<h3>Upgrades</h3>
<div id="message-upgrades" class="info"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="dev-buttons" class="hiddenshow">
<button class="btn btn-warning" onclick="saveGame()">Save</button>
<button class="btn btn-warning" onclick="clearLocalStorage()">Clear Local Storage</button>
<button class="btn btn-warning" onclick="maxEverything()">Max Everything</button>
<button class="btn btn-warning" onclick="upStorage()">Up Storage</button>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Latest compiled and minified Bootstrap JavaScript -->
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<!--Game Scripts-->
<script src="js/variables.js"></script>
<script src="js/script.js"></script>
<script src="js/sound.js"></script>
<script src="js/update-display.js"></script>
<script src="js/game.js"></script>
<script src="js/upgrades.js"></script>
<script src="js/save-load.js"></script>
<script src="js/messages.js"></script>
<script src="js/dev.js"></script>
<script src="js/box_effect.js"></script>
</body>
</html>