-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
127 lines (101 loc) · 4.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title Name -->
<title>Hypersonic Death Chili Fries</title>
<!-- link to main css file -->
<link rel="stylesheet" href="styles/styles.css">
<!-- Font Families link -->
<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=Roboto&family=VT323&display=swap" rel="stylesheet">
<!-- Browser Icon -->
<link rel="icon" href="docs/assets/images/chieficon.png" type="image/x-icon">
</head>
<body>
<div id="page-wide-div">
<div>
<img src="docs/assets/images/backgroundimg.jpg" id="scrolling-background-image" alt="neon-lines background image">
</div>
<section>
<div id="title-div">
<h1 id="title">Zombie Apocalypse Shooter Keyboard Smash 3000</h1>
</div>
</section>
<section id= "middle-section"> <!-- for the middle of the page -->
<div id="game-controls-info"> <!-- How to play the game - move and shoot-->
<div>
<h3>Controls</h3>
<ol>
<li>Arrow Up - Move Up</li>
<li>Arrow Down - Move Down</li>
<li>Arrow Left - Move Left</li>
<li>Arrow Right - Move Right</li>
<li>Shoot - spacebar</li>
</ol>
</div>
</div>
<canvas id="canvas" width="1000px" height="500px" style="border: 5px solid white"></canvas>
<div class="end-screen">
<h2 id="end-game-condition">PLACEHOLDER</h2>
<div class="end-score-div">
<p>Score</p>
<p id="end-score">300</p>
</div>
<div class="end-buttons-div">
<button id="restart-button" class="end-buttons">Restart</button>
<button class="end-buttons"><a href="index.html">Home Page</a></button>
</div>
</div>
<div class="middlepart-middle-section"> <!-- div for the menu -->
<ul class="list">
<li><button type="button" class="hide-on-click" id="start-game-button">Start Game</button></li>
<audio src="docs/assets/sounds/background-song.mp3" id="myAudio"></audio>
<li><button type="button" class="hide-on-click" id="highscore-button">Highscore</button></li>
<li><button type="button" class="hide-on-click" id="credits-button">Credits</button></li>
<li><button type="button" class="hide-on-click" id="exit-button"><a href="https://www.youtube.com/watch?v=xvFZjo5PgG0" target="_blank">Exit</a></button></li>
</ul>
</div>
<div class="form-popup hidden" id="myForm">
<form action='' id="form" class="form-container" required>
<h2 id="form-title">who are you, boss?</h2>
<label for="text" id="player-label"><b>Player Name</b></label>
<input type="text" placeholder="Enter nickname" id="player-name" name="text" required autocomplete="off">
<h4>Mode</h4>
<div>
<label for="mode" id="easy-mode-label">easy peasy lemon squeezy</label>
<input type="radio" id="easy-mode" name="mode" value="easy peasy lemon squeezy">
</div>
<div>
<label for="mode" id="mid-mode-label">head scratcher</label>
<input type="radio" id="average-mode" name="mode" value="head scratcher">
</div>
<div>
<label for="mode" id="hard-mode-label">chaos and madness</label>
<input type="radio" id="hard-mode" name="mode" value="chaos and madness">
</div>
<div id="begin-game-button-div">
<button type="button" id="begin-game">Begin!</button>
</div>
</form>
</div>
<div id="bonus-story-line-div">
<button type="button" class="hide-on-click " id="bonus-story-line-style-button">
<a href="https://www.youtube.com/watch?v=xvFZjo5PgG0" target="_blank">
<span>Bonus </span><span>Story </span><span>Line</span>
</a>
</button>
</div>
</section>
</div>
<script src="scripts/highscore.js"></script>
<script src="scripts/bindings.js"></script>
<script src="scripts/components.js"></script>
<script src="scripts/shooting.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>