-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (65 loc) · 2.78 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
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<title>Fungi farm</title>
</head>
<body>
<main>
<!-- Overlay element is displayed above everything else with css transitions
serving for animations. Here it serves only as a game over screen with
a restart button. -->
<div class="overlay hidden invisible" id="overlay">
<div class="shifted-up" id="overlay-message">
<p class="overlay-text overlay-big">
GAME OVER!
</p>
<p class="overlay-text overlay-smol">
NO VALID MOVES
</p>
<button class="restart" id="button-restart" name="Restart the game"></button>
</div>
</div>
<!-- Scoreboard contains counters with their respective animated icons.
The container is flexible so it would be possible to add more counters. -->
<div class="scoreboard">
<div class="gold-counter-container scoreboard-item">
<img src="images/ui/icon-small-gold.svg" class="scoreboard-icon"/>
<span id="gold-counter">0</span>
</div>
<div class="time-counter-container scoreboard-item">
<img src="images/ui/icon-small-time.svg" class="scoreboard-icon"/>
<span id="time-counter">0</span>
</div>
</div>
<!-- Board and invetory elements are initially empty, their contents are
generated and displayed by the Renderer script. -->
<div class="component board">
<div class="grid grid-3x3" id="board">
</div>
</div>
<div class="component inventory">
<div class="grid grid-1x3" id="inventory">
</div>
</div>
<!-- Control buttons at the bottom are inside a flex container, so it would
be possible to add more (though background styling would need to be
adjusted to accomodate for smaller icons) -->
<div class="component control-buttons">
<button class="sell" id="button-sell" name="Sell inventory"></button>
<button class="advance" id="button-advance" name="Advance time"></button>
</div>
</main>
<script src="fungi-settings.js" charset="utf-8"></script>
<script src="fungi-slot.js" charset="utf-8"></script>
<script src="fungi-inventory.js" charset="utf-8"></script>
<script src="fungi-game.js" charset="utf-8"></script>
<script src="fungi-renderer.js" charset="utf-8"></script>
<script src="fungi-main.js" charset="utf-8"></script>
</body>
</html>