-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
125 lines (124 loc) · 3.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>OceanCleanup</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="instructions">
<div class="intro">
<h2>Ocean Cleanup</h2>
<p class="intro-text">
You are the <strong>Yellow Submarine!</strong><br />
<br />
Move around and shoot all the trash to stop Nemo from eating them.
<br />
<br />
Use <strong>ARROW buttons</strong> to move and
<strong>SPACE BAR</strong> to shoot.
</p>
<br />
<button class="btn btn-start">START</button>
<br />
<br />
<p class="credits">Credits</p>
</div>
</div>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<p>
<a
href="https://opengameart.org/content/bubbling-acid"
target="_blank"
>Creative Commons Bubbling Acid</a
>
by spookymodem is licensed under CC BY 3.0
</p>
<p>
<a
href="https://opengameart.org/content/oldschool-win-and-die-jump-and-run-sounds"
target="_blank"
>Creative Commons Oldschool win and die jump and run sounds</a
>
by sauer2 is licensed under CC BY 3.0
</p>
<p>
<a href="https://opengameart.org/content/laser-fire" target="_blank"
>Creative Commons Laser Fire</a
>
by dklon is licensed under CC BY 3.0
</p>
<p>
Icons made by
<a
href="https://www.flaticon.com/authors/surang"
target="_blank"
title="surang"
>surang</a
>
from
<a href="https://www.flaticon.com/" target="_blank" title="Flaticon"
>www.flaticon.com</a
>
</p>
<p>
Icons made by
<a
href="https://www.flaticon.com/authors/freepik"
target="_blank"
title="Freepik"
>Freepik</a
>
from
<a href="https://www.flaticon.com/" target="_blank" title="Flaticon"
>www.flaticon.com</a
>
</p>
</div>
</div>
<div class="score-card">
<div class="score">
<div class="score-label">SCORE: <span class="score-value"></span></div>
</div>
<div class="health">
<span class="health-label">Fish Health</span>
<div class="health-box"><div class="health-bar"></div></div>
</div>
</div>
<div class="end-message">
<div class="game-lose">
<p class="game-lose-text1"></p>
<p class="game-lose-text2"></p>
<button
onclick="window.location.reload()"
class="btn play-again-lose"
></button>
</div>
<div class="game-win">
<p class="game-win-text1"></p>
<p class="game-win-text2"></p>
<button
onclick="window.location.reload()"
class="btn play-again-win"
></button>
</div>
</div>
<script src="p5/p5.js"></script>
<script src="p5/addons/p5.sound.js"></script>
<script src="p5/addons/p5.play.js"></script>
<script src="index.js"></script>
<script src="src/missile.js"></script>
<script src="src/preload.js"></script>
<script src="src/const.js"></script>
<script src="src/submarine.js"></script>
<script src="src/trash.js"></script>
<script src="src/fish.js"></script>
<script src="src/background.js"></script>
<script src="src/game.js"></script>
<script src="src/main.js"></script>
</body>
</html>