-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (85 loc) · 4.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="Author" content="Ethan Hair">
<title>Sinky Squares</title>
<link href="styling/site.css" rel="stylesheet" />
<link href="styling/game.css" rel="stylesheet" />
<link rel="icon" href="images/battleship-tab-icon.png" sizes="32x32" type="image/png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/fa2ab9e600.js" crossorigin="anonymous"></script>
<script src="scripts/ship.js"></script>
</head>
<body class="center row">
<div id="title-page">
<div class="pixel-words column center gap-16">
<span>Welcome to Sinky Squares!</span>
<span class="info-text">
Choose a difficulty and click on the squares to try and sink the ships!
</span>
<br>
<div class="row width-100 space-evenly">
<span class="clickable" onclick="Easy()">Easy</span>
<span class="clickable" onclick="Medium()">Medium</span>
<span class="clickable" onclick="Hard()">Hard</span>
</div>
</div>
</div>
<div id="game-area" class="row width-100 height-100 space-between d-none align-center">
<div class="width-20 height-100 justify-end">
<div class="column center pixel-words">
<div id="player-ship" class="player-ship"></div>
<div id="ammo-icon" class="ammo-icon"></div>
<div id="ammo-left">35</div>
</div>
</div>
<div id="board" class="board d-none"></div>
<div class="width-20 height-100 justify-start">
<div id="icon-area" class="column center pixel-words">
<div id="destroyer-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="destroyer-icon" class="destroyer-icon"></div><div class="align-center">2</div>
<span class="tooltiptext">Destroyer</span>
</div>
<div id="destroyer2-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="destroyer2-icon" class="destroyer-icon"></div><div class="align-center">2</div>
<span class="tooltiptext">Destroyer</span>
</div>
<div id="cruiser-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="cruiser-icon" class="cruiser-icon"></div><div class="align-center">3</div>
<span class="tooltiptext">Cruiser</span>
</div>
<div id="submarine-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="submarine-icon" class="submarine-icon"></div><div class="align-center tooltip">3</div>
<span class="tooltiptext">Submarine</span>
</div>
<div id="battleship-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="battleship-icon" class="battleship-icon"></div><div class="align-center">4</div>
<span class="tooltiptext">Battleship</span>
</div>
<div id="carrier-icon-area" class="row space-between min-width-60 gap-8 d-none tooltip">
<div id="carrier-icon" class="carrier-icon"></div><div class="align-center">5</div>
<span class="tooltiptext">Carrier</span>
</div>
</div>
</div>
<div id="crosshairs" class="crosshairs"></div>
</div>
<div id="gameover-dialog" class="gameover-dialog pixel-words column gap-8 d-none">
<span>Game Over!</span>
<span id="gameover-text" class="info-text"></span>
<span class="info-text">
Select Home to choose a new difficulty or select Restart to play again on this difficulty
</span>
<br>
<div class="row width-100 space-evenly">
<span class="clickable" onclick="Home()">Home</span>
<span class="clickable" onclick="RestartGame()">Restart</span>
</div>
</div>
</body>
<script src="scripts/snackbar.js"></script>
<script src="scripts/site.js"></script>
<script src="scripts/game.js"></script>
</html>