forked from muhammadtarek/starship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
181 lines (158 loc) · 6.52 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="./src/styles/Game.css" rel="stylesheet">
<link href="./src/styles/Home.css" rel="stylesheet">
<link href="./src/styles/ConfigPageStyle.css" rel="stylesheet">
<link href="./src/styles/index.css" rel="stylesheet">
<title>Home</title>
</head>
<body>
<div id="username-page" class="page--container page--container_show">
<div class="page--container_center">
<div class="card--container">
<img src="./src/assets/PlayerPlane_1.png" alt="logo" class="logo">
<br>
<h1>Enter your username</h1>
<input type="text" id="username--field" required><br>
<button data-go-to="home-page" id="username-page--btn" class="btn page-btn">Enter</button>
</div>
</div>
</div>
<div id="home-page" class="page--container">
<div class="page--container_center">
<div class="card--container">
<img src="./src/assets/PlayerPlane_1.png" alt="logo" class="logo">
<br>
<h1 class="username-heading">Welcome</h1>
<br>
<div class="btns-container">
<button data-go-to="game-settings-page" class="btn page-btn">Play</button>
<button data-go-to="help-page" class="btn page-btn">Help !!</button>
</div>
</div>
</div>
</div>
<div id="game-settings-page" class="page--container">
<div class="page--container_center">
<div class="card--container">
<h1>Characters</h1>
<div class="cards--container">
<div id="card #1" class="card">
<div class="front">
<header>
<img src="./src/assets/Plane1.png">
</header>
<div class="CardInformation">
<p>The McDonnell Douglas F-15 Eagle is an American twin-engine, all-weather tactical fighter aircraft
designed by McDonnell Douglas</p>
<button id="cardThree" data-charac-type="0" class="btn charac-btn" disabled>Select</button>
</div>
</div>
</div>
<div id="card #2" class="card">
<div class="front">
<header>
<img src="./src/assets/Plane2.png">
</header>
<div class="CardInformation">
<p>The General Dynamics F-16 Fighting Falcon is a single-engine supersonic multirole fighter aircraft
originally developed by General Dynamics</p>
<button id="cardOne" data-charac-type="1" class="btn charac-btn">Selected</button>
</div>
</div>
</div>
<div id="card #3" class="card">
<div class="front">
<header>
<img src="./src/assets/Plane3.png">
</header>
<div class="CardInformation">
<p>The Eurofighter Typhoon is a twin-engine, canard–delta wing, multirole fighter. The Typhoon was
designed originally as an air superiority fighter</p>
<button id="cardTwo" data-charac-type="2" class="btn charac-btn">Select</button>
</div>
</div>
</div>
</div>
<div class="levelButtons">
<h2 id="gameLevel">Select Game Level</h2>
<div class="levels-container">
<button class="level-btn level-btn--selected" id="easy" data-level="0">EASY</button>
<button class="level-btn" id="medium" data-level="1">MEDIUM</button>
<button class="level-btn" id="hard" data-level="2">HARD</button>
</div>
</div>
<button class="btn page-btn" data-go-to="game-play-page" id="startGame">Start</button>
</div>
</div>
</div>
<div id="game-play-page" class="page--container">
<div id="play-info">
<h2 class="username-heading"></h2>
<div id="player-score">
<span>Score :</span><span id="Score"></span>
</div>
<div class="healthbar">
<div id="slider">
</div>
</div>
</div>
<div id="play-area">
</div>
</div>
<div id="game-over-page" class="page--container">
<div class="page--container_center">
<div class="card--container">
<button class="btn page-btn" data-go-to="game-over-page" id="GameOverBTN" href=""
style="display: none;">Start</button>
<h2 class="GameOver">Game over</h2>
<h2 class="username-heading">Thanks, </h2>
<img src="./src/assets/GameOver.gif" alt="">
<span class="GameOver">Your score</span>
<h2 id="Player-score"></h2>
<!-- <button data-go-to="game-settings-page" id="username-page--btn" class="btn page-btn">Play again</button> -->
</div>
</div>
</div>
<div id="help-page" class="page--container">
<div class="page--container_center">
<div class="card--container">
<span class="help-heading">How to play</span>
<span class="help">
- Use arrows to move and spacebar to shoot the enemy planes.
</span>
<span class="help">
- Choose your favourite plane character.
</span>
<span class="help">
- Enemy plane crash affect your health more than bullets.
</span>
<span class="help-level">Easy mode</span>
<span class="help">Enemy require one bullet to crash</span>
<span class="help-level">Medium mode</span>
<span class="help"> Rafale require one bullet to crash and Helicopter require Two bullets</span>
<span class="help-level">Hard mode</span>
<span class="help"> Rafale require Two bullets to crash and Helicopter require Three bullets </span>
<span class="warning">Warning : in hard mode missiles respawn that can make a massive damage</span>
<span class="have-fun">Have fun...</span>
<button data-go-to="home-page" id="username-page--btn" class="btn page-btn">Back</button>
<h2></h2>
</div>
</div>
</div>
<script src="./src/scripts/Types.js"></script>
<script src="./src/scripts/LevelProperty.js"></script>
<script src="./src/scripts/Levels.js"></script>
<script src="./src/scripts/index.js"></script>
<script src="./src/scripts/GameObject.js"></script>
<script src="./src/scripts/Observer.js"></script>
<script src="./src/scripts/Bullet.js"></script>
<script src="./src/scripts/Enemy.js"></script>
<script src="./src/scripts/Player.js"></script>
<script src="./src/scripts/Game.js"></script>
</body>
</html>