-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
453 lines (453 loc) · 12.9 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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no"
/>
<title>Incremental Forest</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css?family=Inconsolata:400,700"
rel="stylesheet"
/>
<link rel="stylesheet" href="assets/css/tippy.min.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div class="container-fluid">
<div class="col-xs-12 col-md-6 text-center" id="game">
<div class="row" id="top-menu">
<span id="money" title="Your money"
>$<span class="item-count">0</span></span
><button id="pause-button" type="button">Pause</button>
</div>
<div class="row" id="game-target"></div>
<div class="row" id="inventory">
<h4>Inventory</h4>
<ul id="items">
<li class="item-slot selected" id="item-slot-0">
<div class="item-slot-number">1</div>
<div class="item"></div>
</li>
<li class="item-slot" id="item-slot-1">
<div class="item-slot-number">2</div>
<div class="item"></div>
</li>
<li class="item-slot" id="item-slot-2">
<div class="item-slot-number">3</div>
<div class="item"></div>
</li>
<li class="item-slot" id="item-slot-3">
<div class="item-slot-number">4</div>
<div class="item"></div>
</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-md-6" id="menu">
<div class="row">
<div class="col-xs-12">
<button class="tab selected" type="button" id="store">Store</button
><button class="tab" type="button" id="workers">Workers</button
><button class="tab" type="button" id="settings">Settings</button
><button class="tab" type="button" id="about">About</button>
</div>
</div>
<div class="row menu" id="store-menu">
<div class="col-xs-9" id="store-items-menu">
<button
class="upgrade disabled store-item"
id="buy-bulk-pine-cones"
>
<img
src="assets/sprites/pine-cone.png"
alt="Buy 10 Pine Cones"
/><span>Buy 10 Pine Cones (<span class="price">50</span>)</span>
</button>
</div>
<div class="col-xs-9 hidden" id="upgrades-menu">
<button
class="upgrade disabled store-item"
id="buy-wood-axe"
title="Chop trees faster"
>
<img
src="assets/sprites/wood-axe.png"
alt="Upgrade Wood Axe"
/><span
>Upgrade Wood Axe (<span class="price">14</span>)</span
></button
><button
class="upgrade disabled store-item"
id="buy-pine-cone"
title="Trees drop pine cones more often"
>
<img
src="assets/sprites/pine-cone.png"
alt="Upgrade Pine Cone Drop Chance"
/><span
>Upgrade Pine Cone Drop Chance (<span class="price">2.50</span
>)</span
></button
><button
class="upgrade disabled store-item"
id="buy-sell-price"
title="Items sell for higher"
>
<img
src="assets/sprites/money.png"
alt="Upgrade Sell Prices"
/><span
>Upgrade Sell Prices (<span class="price">12</span>)</span
></button
><button
class="upgrade disabled store-item"
id="buy-tree-grow"
title="Trees grow faster"
>
<img
src="assets/sprites/tree.png"
alt="Upgrade Tree Grow Time"
/><span
>Upgrade Tree Grow Time (<span class="price">13</span>)</span
>
</button>
</div>
<div class="col-xs-3">
<ul class="list-unstyled text-right">
<li>
<button
class="tab side-tab selected"
type="button"
id="store-items"
>
Items
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="upgrades">
Upgrades
</button>
</li>
</ul>
</div>
</div>
<div class="row menu hidden" id="workers-menu">
<div class="col-xs-9" id="chopper-menu">
<div class="line">
<span>You have <span id="chopper-count">0</span> Choppers</span>
</div>
<button class="upgrade disabled store-item" id="buy-hire-chopper">
<span
>Hire a Chopper (<span class="price">150</span>)</span
></button
><button class="upgrade disabled store-item" id="buy-fire-chopper">
<span>Fire a Chopper</span>
</button>
<hr />
<button
class="upgrade disabled store-item"
id="buy-chopper-wood-axe"
title="Chopper will chop trees down faster"
>
<span
>Upgrade Wood Axe (<span class="price">14</span>)</span
></button
><button
class="upgrade disabled store-item"
id="buy-chopper-speed"
title="Chopper will work faster"
>
<span>Upgrade Speed (<span class="price">25</span>)</span>
</button>
</div>
<div class="col-xs-9 hidden" id="collector-menu">
<div class="line">
<span
>You have <span id="collector-count">0</span> Collectors</span
>
</div>
<button class="upgrade disabled store-item" id="buy-hire-collector">
<span
>Hire a Collector (<span class="price">100</span>)</span
></button
><button
class="upgrade disabled store-item"
id="buy-fire-collector"
>
<span>Fire a Collector</span>
</button>
<hr />
<button
class="upgrade disabled store-item"
id="buy-collector-speed"
title="Collector will work faster"
>
<span>Upgrade Speed (<span class="price">50</span>)</span>
</button>
</div>
<div class="col-xs-3">
<ul class="list-unstyled text-right">
<li>
<button
class="tab side-tab selected"
type="button"
id="chopper"
>
Chopper
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="collector">
Collector
</button>
</li>
</ul>
</div>
</div>
<div class="row menu hidden" id="settings-menu">
<div class="col-xs-9" id="game-settings-menu">
<button id="reset" type="button">Reset Save</button>
<hr />
<label
>Auto Save<input id="autosave" type="checkbox" checked /></label
><button id="save" type="button">Save Game</button>
<hr />
<input id="save-data" type="text" /><button
id="restore"
type="button"
>
Restore</button
><br /><button id="backup" type="button">Backup Save</button>
</div>
<div class="col-xs-9 hidden" id="controls-menu">
<div class="line">
<label
>Move Up<input type="text" id="controls-up" value="W"
/></label>
</div>
<div class="line">
<label
>Move Left<input type="text" id="controls-left" value="A"
/></label>
</div>
<div class="line">
<label
>Move Down<input type="text" id="controls-down" value="S"
/></label>
</div>
<div class="line">
<label
>Move Right<input type="text" id="controls-right" value="D"
/></label>
</div>
<div class="line">
<label
>Use Item<input
type="text"
id="controls-interact"
value="SPACE"
/></label>
</div>
<div class="line">
<label
>Sell Item<input type="text" id="controls-sell" value="L"
/></label>
</div>
<div class="line">
<label
>Select previous item<input
type="text"
id="controls-prev"
value="Q"
/></label>
</div>
<div class="line">
<label
>Select next item<input
type="text"
id="controls-next"
value="E"
/></label>
</div>
<div class="line">
<label
>Pause Game<input type="text" id="controls-pause" value="P"
/></label>
</div>
</div>
<div class="col-xs-3">
<ul class="list-unstyled text-right">
<li>
<button
class="tab side-tab selected"
type="button"
id="game-settings"
>
Game
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="controls">
Controls
</button>
</li>
</ul>
</div>
</div>
<div class="row menu hidden" id="about-menu">
<div class="col-xs-9" id="summary-menu">
<p>
<a
href="https://github.com/ThomasMays/incremental-forest"
target="_blank"
>Source Code on GitHub</a
>
</p>
<p>
An experimental game attempting to bring typical
<a
href="https://en.wikipedia.org/wiki/Incremental_game"
target="_blank"
>incremental game</a
>
mechanics to a game where you control the character instead of
solely clicking buttons.
</p>
<p>
Chop down trees, sell logs, chop down more trees, upgrade your axe
and stuff, chop down more trees, sell more logs, hire workers to
help out. Basically the same things you would do in any
incremental game like
<a href="http://dhmstark.co.uk/games/civclicker/" target="_blank"
>CivClicker</a
>.
</p>
<p>
You can view and change controls in the Settings -> Controls menu.
</p>
</div>
<div class="col-xs-9 hidden" id="how-to-play-menu">
<ul>
<li>
Walk up to a tree and hold SPACE with your axe selected to start
chopping it down.
</li>
<li>
Pick up what the tree drops.
<ul>
<li>Sell the log.</li>
<li>
If it drops a pine cone, you can plant it by pressing SPACE
on some grass (with the pine cone selected). It'll grow into
a tree after a while.
<ul>
<li>
If you really want some more cash, you can sell pine
cones too (they don't sell for much though).
</li>
</ul>
</li>
</ul>
</li>
<li>Buy some upgrades in the Upgrades tab.</li>
<li>
Once you have enough money, you can hire workers (in the Workers
tab).
<ul>
<li>Choppers will chop down any trees they can find.</li>
<li>
Collectors will pick up items and put them in your
inventory. (You still need to sell the logs and plant the
pine cones though).
</li>
<li>You can upgrade workers in their respective menus.</li>
</ul>
</li>
</ul>
</div>
<div class="col-xs-9 hidden" id="bugs-menu">
<p>
If you run across a bug, or there's a gameplay issue or
enhancement you want to request, you can open an
<a
href="https://github.com/ThomasMays/incremental-forest/issues"
target="_blank"
>issue on GitHub</a
>
and I'll get to it as soon as I can.
</p>
</div>
<div class="col-xs-9 hidden" id="credits-menu">
<ul>
<li>
<a href="http://courperationx.deviantart.com/" target="_blank"
>courperationX</a
>
created the Grass, Wood Axe, (modified) Trees, Pine Cones, Logs,
Dirt (unused), Water (unused), and Mud (unused).
</li>
<li>
<a href="http://pousse.rapiere.free.fr/tome/" target="_blank"
>David E. Gervais</a
>
created the (original) Character and (original) Tree sprites.
</li>
<li>
<a href="https://github.com/ThomasMays" target="_blank">I</a>
masterfully modified the Character sprite into 3 different
sprites and developed the game.
</li>
<li>
<a href="https://phaser.io/" target="_blank">Phaser</a> game
framework powers the game
</li>
<li>
<a href="http://getbootstrap.com/" target="_blank">Bootstrap</a>
was used to make the UI
</li>
</ul>
</div>
<div class="col-xs-3">
<ul class="list-unstyled text-right">
<li>
<button
class="tab side-tab selected"
type="button"
id="summary"
>
Summary
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="how-to-play">
How To Play
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="bugs">
Bugs/Issues
</button>
</li>
<li>
<button class="tab side-tab" type="button" id="credits">
Credits
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
<script src="assets/js/tippy.min.js" defer></script>
<script src="dist/vendor.bundle.js" defer></script>
<script src="dist/bundle.js" defer></script>
</body>
</html>