-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (121 loc) · 5.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Itchy & Scratchy - Battle Royale</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles/main.css">
<script defer src="scripts/app.js" charset="utf-8"></script>
<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=Luckiest+Guy&family=Oregano:ital@0;1&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="../itchy-and-scratchy-space-invaders/assets/favicon_io/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../itchy-and-scratchy-space-invaders/assets/favicon_io/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../itchy-and-scratchy-space-invaders/assets/favicon_io/favicon-16x16.png">
</head>
<body>
<!-- intro to game modal -->
<div class="modal" id="intro-to-game-modal">
<!-- modal content -->
<div class="modal-content" id="into-to-game-modal-info">
<h2>The Itchy & Scratchy Game</h2>
<!-- gif of cartoon intro? -->
<img src="../itchy-and-scratchy-space-invaders/assets/images/I&S-Intro.gif" alt="Itchy & Scratchy Intro Video">
<article>
<!-- rules/instructions -->
<h4>Welcome to the Itchy & Scratchy Battle Royale</h4>
<p>The aim of the game is to destroy as much as Itchy can throw at you before you become Poochie chow</p>
<!-- point system -->
<h4>Points</h4>
<p>For every bomb you destroy you get <span class="highlight">20 points</span></p>
<p>If you hit Itchy you get <span class="highlight">50 points</span></p>
<p>Make sure to dodge Itchy's mallets otherwise you will lose health,<br>Lose all your health & it's Game Over!</p>
<!-- keys to press -->
<h4>Controls</h4>
<p>You can move up & down using the <span class="highlight">↑</span> & <span class="highlight">↓</span> keys,<br>& to throw your own mallets, hit<br><br><span class="spaceStyling highlight">space bar</span></p>
</article>
<p class="high-score" id="high-score-intro"></p>
<button class="playBtn" id="startBtn">Start</button>
</div>
</div>
<!-- controls section -->
<header>
<h1><span class="smallItalics">The</span> Itchy & Scratchy <span class="smallItalics">Game</span></h1>
<section class="top-controls-container">
<div id="buttons-container">
<!-- <button class="playBtn" id="pauseBtn">Pause</button> -->
<button class="playBtn" id="restartBtn">Restart</button>
</div>
<div id="health-section">
<h5>Health</h5>
<div id="health-container">
<div id="health-bar"></div>
<div id="health-bar-total"></div>
</div>
</div>
<div id="points-section">
<h5>Points</h5>
<div class="points-container">
<div class="points-readout">0</div>
</div>
</div>
<!-- https://www.w3schools.com/howto/howto_js_curtain_menu.asp -->
<!-- open burger menu overlay -->
<img id="burger-menu-btn" src="../itchy-and-scratchy-space-invaders/assets/images/krusty-burger.png" alt="krusty-burger-menu-icon">
<!-- burger menu overlay content -->
<div class="burger-menu-overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeOverlay()">X</a>
<div class="burger-menu-container">
<h2>The Itchy & Scratchy Game</h2>
<!-- gif of cartoon intro? -->
<img src="../itchy-and-scratchy-space-invaders/assets/images/I&T-Pause.gif" alt="Itchy & Scratchy Pause Video">
<article class="intro-to-game-info" id="burger-menu-info">
<!-- rules/instructions -->
<h4>Welcome to the Itchy & Scratchy Battle Royale</h4>
<p>The aim of the game is to destroy as much as Itchy can throw at you before you become Poochie chow</p>
<!-- point system -->
<h4>Points</h4>
<p>For every bomb you destroy you get <span class="highlight">20 points</span></p>
<p>If you hit Itchy you get <span class="highlight">50 points</span></p>
<p>Make sure to dodge Itchy's mallets otherwise you will lose health,<br>Lose all your health & it's Game Over!</p>
<!-- keys to press -->
<h4>Controls</h4>
<p>You can move up & down using the <span class="highlight">↑</span> & <span class="highlight">↓</span> keys,<br>& to throw your own mallets, hit<br><br><span class="spaceStyling highlight">space bar</span></p>
</article>
<p class="high-score" id="high-score-burger"></p>
<!-- * if pause figured out, add back in -->
<!-- <button class="playBtn" id="startBtn">Start</button> -->
</div>
</div>
</section>
</header>
<!-- background image container -->
<main id="background-image-container">
<!-- game container and grid -->
<section id="game-container">
<div class="game-grid"></div>
</section>
</main>
<!-- game over modal -->
<div class="modal" id="game-over-modal">
<!-- modal content -->
<div class="modal-content" id="game-over-modal-info">
<h2>Game Over</h2>
<div id="game-over-gif">
<img id="loseGif" src="../itchy-and-scratchy-space-invaders/assets/images/scratchy-grave.gif" alt="scratchy-grave-gif">
</div>
<!-- finalscore -->
<div id="winning-player"></div>
<p>Your Final Score</p>
<div class="points-container">
<div class="points-readout">0</div>
</div>
<p class="high-score" id="high-score-game-over"></p>
<!-- high score -->
<!-- play again button - same as reset button -->
<button class="playBtn" id="playAgain">Play Again</button>
<!-- exit button - prompts intro to game modal -->
</div>
</div>
</body>
</html>