-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
81 lines (75 loc) · 3.12 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- META TAGS-->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/images/coffee.png" type="image/png">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="Retro Logic">
<title>Office Invaders</title>
<!-- CSS LINK -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- SCRIPT -->
<script defer src="https://kit.fontawesome.com/08022ae364.js" crossorigin="anonymous"></script>
<script defer src="assets/js/game.js"></script>
</head>
<body>
<section id="game-area">
<div id="score-board">
<a id="home-btn" href="index.html"><i class="fas fa-home fa-2x"></i></a>
<div class="score-title">
<h3>score: <span id="point-score"></span></h3>
</div>
<div class="score-title">
<h3>level: <span id="player-level">1</span></h3>
</div>
<div class="score-title">
<h3>lives: <span id="player-lives"><span></h3>
</div>
</div>
<div id="game-board">
<div id="game-start" class="game-msg">
<h2>Press <span>Enter</span> To Fight</h2>
</div>
<div id="player"></div>
<div id="game-paused" class="hidden game-msg">
<h2>GAME PAUSED</h2>
<p><em>Press "r" to return</em></p>
</div>
<div id="game-over" class="hidden game-msg">
<h2>GAME OVER</h2>
<p class="level-reached"></p>
<p class="total-points"></p>
<p class="final-position"></p>
<input id="player-name" type="text" name="name" placeholder="Add your name">
<button onclick="submitName()">Confirm</button>
</div>
<div id="high-scores" class="hidden game-msg">
<h2>HIGH SCORES</h2>
<table id="top-ten">
<tr>
<th>Pos.</th>
<th>Name</th>
<th>Level</th>
<th>Points</th>
</tr>
</table>
<p><em>Press "Enter" to play again</em></p>
</div>
</div>
<div id="socials">
<a href="https://www.youtube.com" aria-label="Go to YouTube page" target="_blank" rel="noopener"><i class="
fab fa-youtube-square"></i></a>
<a href="http://facebook.com" aria-label="Go to Facebook page" target="_blank" rel="noopener"><i
class="fab fa-facebook"></i></a>
<a href="http://github.com" aria-label="Go to GitHub page" target="_blank" rel="noopener"><i
class="fab fa-github"></i></a>
<a href="http://linkedin.com" aria-label="Go to LinkedIn page" target="_blank" rel="noopener"><i
class="fab fa-linkedin"></i></a>
</div>
</section>
</body>
</html>