-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
128 lines (118 loc) · 4.52 KB
/
index.html
File metadata and controls
128 lines (118 loc) · 4.52 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles/styles.css" />
<link rel="icon" type="image/png" href="./images/Diver.png" />
<title>Shutter Dive</title>
</head>
<body>
<!-- START SCREEN -->
<div id="start-screen" class="container">
<div class="subcontainer">
<h1>Shutter Dive</h1>
<button id="show-instructions-btn" class="btn">How to play?</button>
<div id="instructions" style="display: none">
<button id="close-instructions">✕</button>
<p>
<strong>You are a professional underwater photographer!</strong><br />
Use <strong class="key">Z</strong> to show the camera focus and <strong class="key">X</strong> to take pictures.<br />
Move the diver with the arrow keys.<br /><br />
You get <span><strong>500 points</strong> for each photo that includes an animal.</span><br />
Perfect shots give you extra points!<br />
The bigger the animal, the more points you get for a perfect photo.<br />
<br />
A <strong>perfect shot</strong> means the animal is fully inside the camera frame when you take the picture.<br /><br />
If you encounter <strong>another diver</strong>, they can share their air with you — giving you <span>extra dive time!</span>
</p>
</div>
<input type="text" id="player-name" placeholder="Enter your name" />
<div id="theme-selection">
<h2>Select a Theme</h2>
<div id="themes">
<article id="night-theme" class="selected-theme">
<p>Night dive</p>
</article>
<article id="day-theme">
<p>Day dive</p>
</article>
</div>
</div>
<button id="start-btn" class="btn">Start!</button>
</div>
</div>
<!-- GAME SCREEN -->
<div id="game-screen" class="container">
<div id="game-info">
<div id="air-info" class="info-box">
<p>Air: <span id="air-time">00:00</span></p>
<div id="announcement-extra-air">
<p id="info-extra-air"></p>
</div>
</div>
<div class="info-box">
<p>Perfect pictures: <span id="perfect-pictures-amount">0</span></p>
</div>
<div class="info-box">
<p>Pictures Taken: <span id="pictures-amount">0</span></p>
</div>
<div class="info-box">
<p>Score: <span class="score">0</span></p>
</div>
</div>
<div id="game-box">
<!-- Game elements will be added here via javascript and DOM manipulation -->
</div>
</div>
<!-- GAME OVER / DIVE LOG SCREEN -->
<div id="game-over-screen" class="container">
<header>
<img src="./images/Diver.png" alt="Diver" />
<h1>Immersion data</h1>
</header>
<div id="box-game-over">
<div id="dive-log-box" class="game-over-panel">
<h2>Your Dive Log</h2>
<div id="fish-species-box">
<p><span id="species-photographed">0</span> of <span id="total-species">0</span> species photographed</p>
</div>
<div id="fish-cards-container"></div>
</div>
<div class="game-over-panel">
<h2>Results</h2>
<div id="results-sub-box" class="sub-box-right-panel">
<div class="row-results">
<p>Total pictures taken</p>
<p id="pictures-taken"></p>
</div>
<div class="row-results">
<p><span class="green"> Perfect</span> pictures taken</p>
<p id="perfect-taken"></p>
</div>
<div class="row-results">
<p>Score</p>
<p class="score"></p>
</div>
</div>
<div id="Rankings">
<h2>Ranking</h2>
<div id="ranking-sub-box" class="sub-box-right-panel">
<article class="row-ranking">
<p>Player name</p>
<p>Score</p>
</article>
</div>
</div>
</div>
</div>
<button id="btn-restart" class="btn">Play again!</button>
</div>
<script src="./src/Element.js"></script>
<script src="./src/Camara.js"></script>
<script src="./src/Fish.js"></script>
<script src="./src/Diver.js"></script>
<script src="./src/OtherDiver.js"></script>
<script src="./src/main.js"></script>
</body>
</html>