-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
186 lines (176 loc) · 5.23 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Hungry Octopus game</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="./images/favicon.ico" />
<!-- ### Open graph meta tags ### -->
<meta name="title" property="og:title" content="Hungry Octopus Game" />
<meta
name="description"
content="A game developed with JavaScript and canvas. Feed the octopus and avoid the trash to get points."
/>
<meta property="og:type" content="website" />
<meta
name="image"
property="og:image"
content="https://res.cloudinary.com/db5ijkzpx/image/upload/v1638220846/hungry-octopus_zctpmr.png"
/>
<meta
name="description"
property="og:description"
content="A game developed with JavaScript and canvas. Feed the octopus and avoid the trash to get points. :octopus:"
/>
<meta name="author" content="Amélie Monnoyer" />
</head>
<body>
<div class="screen" id="screen-start" width="100%">
<span class="octopus-logo">
<img
src="./images/octoplayer-alone.png"
alt="octopus logo"
width="100"
/>
</span>
<h1>Hungry Octopus</h1>
<p>Feed the octopus and avoid the trash.</p>
<button>Start game</button>
</div>
<div class="screen" id="screen-playing" style="display: none">
<!-- displays the informations about the player, the current etc.-->
<div id="board">
<div id="score">
<!-- placed in game.js-->
</div>
<div id="game-info">
<div id="info-food">
<table>
<thead>
<tr>
<th colspan="2">Fetch the food</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="images/jellyfish.png" width="20px" />
</td>
<td>10 points</td>
</tr>
<tr>
<td>
<img src="images/fish.png" width="25px" />
</td>
<td>30 points</td>
</tr>
</tbody>
</table>
</div>
<div id="info-garbage">
<table>
<thead>
<tr>
<th colspan="2">Avoid the plastic trash</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="images/plasticbottle.png" height="30px" />
</td>
<td>-20 points</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="canvas-div">
<canvas width="1000" height="500"></canvas>
</div>
</div>
<div class="screen" id="screen-game-over" style="display: none">
<h3>You lost the game :(</h3>
<button>Try Again</button>
<p>
Liked the game? Please consider
<a
href="https://donate.bloomassociation.org/BLOOMdefault/1~my-donation?context_form_id=form_5815dd2fa9442faa9a4b5105c09133c1_61ea74c5f3aff0.32247162"
class="donate-link"
target="_blank"
>donating</a
>
for ocean protection.
</p>
</div>
<footer>
<div>
<ul>
<li>Credits:</li>
<li>
<a
href="https://craftpix.net/freebies/free-underwater-world-parallax-game-backgrounds/"
target="_blank"
>
Background
</a>
</li>
<li>
<a
href="https://opengameart.org/content/octopus-swim"
target="_blank"
>
Octopus
</a>
</li>
<li>
<a href="https://opengameart.org/content/fish-set" target="_blank">
Octopus food
</a>
</li>
<li>
<a
href="https://opengameart.org/content/recycle-items-set"
target="_blank"
>
Plastic trash
</a>
</li>
<li>
<a
href="https://opengameart.org/content/skippy-fish-water-sound-collection"
target="_blank"
>
Sounds
</a>
</li>
</ul>
</div>
<div>
<div>Follow me</div>
<ul>
<li>
<a
href="https://www.linkedin.com/in/am%C3%A9lie-monnoyer/"
target="_blank"
>
<img src="images/LI-In-Bug.png" height="30px"
/></a>
</li>
<li>
<a href="https://github.com/HungryOctopus" target="_blank">
<img src="images/GitHub.png" height="30px"
/></a>
</li>
</ul>
</footer>
<!-- import the splitted js logic. From the less important to the most important. -->
<script src="items.js"></script>
<script src="player.js"></script>
<script src="background.js"></script>
<script src="game.js"></script>
<script src="script.js"></script>
</body>
</html>