-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
161 lines (145 loc) · 5.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Classic Battleship</title>
<meta property="og:title" content="Browser based classic battleship game">
<meta property="og:url" content="https://bhuone-garbu.github.io/classic-battleship/">
<meta property="og:image" content="https://raw.githubusercontent.com/bhuone-garbu/classic-battleship/master/res/images/screenshots/desktop-view.png">
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="108" />
<meta property="og:image:height" content="99" />
<meta property="og:description" content="Browser based classic battleship game">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="developer: bhuone-garbu, game: classic battleship vs bot">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=Bree+Serif" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
<script src="scripts/app.js"></script>
</head>
<body>
<audio id="themeSound" src="res/sounds/main-theme.mp3"></audio>
<audio id="loseSound" src="res/sounds/defeat-short.mp3"></audio>
<audio id="winSound" src="res/sounds/win-short.mp3"></audio>
<audio id="fleetMouseOver" src="res/sounds/grid-mouseover.mp3"></audio>
<audio id="fleetPlacement" src="res/sounds/fleet-placement.mp3"></audio>
<audio id="fleetSelect" src="res/sounds/fleet-select.mp3"></audio>
<audio id="axisRotate" src="res/sounds/rotate.mp3"></audio>
<header>
<h1>Navy Battleship</h1>
</header>
<div class="overlay">
<div class="overlay-content">
<div class="message">
<p></p>
<a> Play again?</a>
</div>
</div>
</div>
<section class="game-rules">
<a href="#">Game rules</a>
<!-- <a href="#">Game rules</a> -->
<div>
<p class="rules-heading"><span>Players</span></p>
<p>- 2</p>
<p class="rules-heading"><span>Goal</span></p>
<p>- Sink all your opponents ships</p>
<p class="rules-heading"><span>Setup</span></p>
<p>- Place your fleets on the bottom side of the board</p>
<p>- The number next to fleet name represents the size of cells</p>
<p class="rules-heading"><span>Rules</span></p>
<p>- Players starts first</p>
<p>- Each player takes turn and whoever destroys all the fleets first, wins. Simple!</p>
</div>
</section>
<div class="main-container responsive-width">
<section class="bot-container">
<div class="screen">
<p>Enemy fleets coordinates</p>
<div class="bot-grid"></div>
</div>
<div class="panel">
<div class="fleets">
<div id="battleship">
<p>Battleship</p>
<p>(4)</p>
<p><span>V</span></p>
</div>
<div id="carrier">
<p>Carrier</p>
<p>(3)</p>
<p><span>B</span></p>
</div>
<div id="destroyer">
<p>Destroyer</p>
<p>(5)</p>
<p><span>Q</span></p>
</div>
<div id="patrol">
<p>Patrol</p>
<p>(3)</p>
<p><span>C</span></p>
</div>
<div id="submarine">
<p>Submarine</p>
<p>(2)</p>
<p><span>(</span></p>
</div>
</div>
</div>
</section>
<section class="player-container">
<div class="screen">
<p>Player fleets coordinates</p>
<div class="player-grid"></div>
<div class="axis">
<button id="rotateBtn" disabled>Rotate Axis</button><span>Horizontal</span>
</div>
</div>
<div class="panel">
<div class="fleets">
<div id="battleship" class="predeploy">
<p>Battleship</p>
<p>(4)</p>
<p><span>V</span></p>
</div>
<div id="carrier" class="predeploy">
<p>Carrier</p>
<p>(3)</p>
<p><span>B</span></p>
</div>
<div id="destroyer" class="predeploy">
<p>Destroyer</p>
<p>(5)</p>
<p><span>Q</span></p>
</div>
<div id="patrol" class="predeploy">
<p>Patrol</p>
<p>(3)</p>
<p><span>C</span></p>
</div>
<div id="submarine" class="predeploy">
<p>Submarine</p>
<p>(2)</p>
<p><span>(</span></p>
</div>
</div>
</div>
</section>
</div>
<footer>
<div>
<p>Icons used on the board grids were from <a target="_bank" href="https://www.flaticon.com/"
title="Flaticon">www.flaticon.com</a></p>
<p>Navy ships fonts were from <a target="_blank" href="https://www.fontsc.com/font/us-navy">www.fontsc.com</a></p>
<p>Back audio sounds were from <a target="_blank"
href="https://downloads.khinsider.com">downloads.khinsider.com</a></p>
<br>
<p>Developed by <a target="_blank" href="https://github.com/bhuone-garbu">bhuone-garbu</a> using Javascript and
CSS/Flexbox - no frameworks/library used</p>
<p>Click <a target="_blank" href="https://github.com/bhuone-garbu/classic-battleship">here</a> to view github
repository for this game</p>
</div>
</footer>
</body>
</html>