-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTheGame.html
148 lines (125 loc) · 6.84 KB
/
TheGame.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
<!DOCTYPE html>
<html>
<head>
<title>EMOJI WAR</title>
<link rel="icon" href="src/images/icon.png">
<link rel="stylesheet" type="text/css" href="css/TheGame.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap" rel="stylesheet">
<script src="js/jquery.js"></script>
</head>
<body>
<section class="page">
<div class="home">
<div class="layer">
<div class="playerHeader">
<p class="gameInfo" id="playerName">Player name</p>
<p class="gameInfo" id="wave">wave [10] : </p>
<p class="gameInfo" id="waveNo">1</p>
<p class="gameInfo" id="score">Score : </p>
<p class="gameInfo" id="points">0</p>
<div class="gameInfo" id="healthContainer">
<p class="gameInfo" id="health">%100</p>
</div>
</div>
<img class="displayNone" id="player" src="src/images/character1.png" alt="">
<audio id="shoot" src="src/sound/shoot.wav"></audio>
<img class="displayNone" id="character1" src="src/images/character1.png" alt="">
<img class="displayNone" id="character2" src="src/images/character2.png" alt="">
<img class="displayNone" id="character3" src="src/images/character3.png" alt="">
<audio id="shoot1" src="src/sound/shoot.wav"></audio>
<audio id="shoot2" src="src/sound/shoot.wav"></audio>
<audio id="shoot3" src="src/sound/shoot.wav"></audio>
<audio id="maleHurt" src="src/sound/maleHurt.m4a"></audio>
<audio id="femaleHurt" src="src/sound/femaleHurt.m4a"></audio>
<audio id="enemyhit" src="src/sound/enemyhit.mp3"></audio>
<audio id="enemydie" src="src/sound/enemydie.mp3"></audio>
<img class="displayNone" src="src/images/enmies/enemy1.png" alt="enemy1" id="enemy1">
<img class="displayNone" src="src/images/enmies/enemy2.png" alt="enemy2" id="enemy2">
<img class="displayNone" src="src/images/enmies/enemy3.png" alt="enemy3" id="enemy3">
<img class="displayNone" id="projectile1" src="src/images/projectile1.png" alt="projectile1">
<img class="displayNone" id="projectile2" src="src/images/projectile2.png" alt="projectile2">
<img class="displayNone" id="projectile3" src="src/images/projectile3.png" alt="projectile3">
<img class="displayNone" id="treasure" src="src/images/treasure.png" alt="treasure">
<img class="displayNone" id="diamond" src="src/images/diamond.png" alt="diamond">
<img class="displayNone" id="heal" src="src/images/heal.jpg" alt="heal">
<canvas id="gameScreen"></canvas>
<audio id="trackLevel1" src="src/sound/mission1.mp3"></audio>
<audio id="trackLevel2" src="src/sound/mission2.mp3"></audio>
<audio id="trackLevel3" src="src/sound/mission3.mp3"></audio>
<audio id="winTrack" src="src/sound/Congrat.mp3"></audio>
<audio id="loseTrack" src="src/sound/lose.mp3"></audio>
</div>
</div>
</section>
<!----------------------------------------CONTAINER --------------------------------------->
<div class="container">
<!----------------------------------------WINNER CAPTION--------------------------------------->
<div class="winnerMsg">
<br> <br>
<p class="caption"><span>C</span>ongratulation <br><span>Y</span>ou <span>W</span>on</p>
</div>
<br>
<!----------------------------------------BRONZE WINNER--------------------------------------->
<div class="winner">
<figure class="bronze">
<img src="src/images/BRONZE.png" alt="">
<br><br>
<figcaption class="caption_fig">
<span>Y</span>ou <span>G</span>ot <span>B</span>ronze <span>R</span>ank
</figcaption>
</figure>
<!----------------------------------------SILVER WINNER--------------------------------------->
<figure class="silver">
<img src="src/images/SILVER.png" alt="Rnak Silver">
<br><br>
<figcaption class="caption_fig">
<span>Y</span>ou <span>G</span>ot <span>S</span>ilver <span>R</span>ank
</figcaption>
</figure>
<!----------------------------------------GOLD WINNER--------------------------------------->
<figure class="gold">
<img src="src/images/GOLD.png" alt="Rnak Gold">
<br><br>
<figcaption class="caption_fig">
<span>Y</span>ou <span>G</span>ot <span>G</span>old <span>R</span>ank
</figcaption>
</figure>
<!----------------------------------------PLATINUM WINNER--------------------------------------->
<figure class="platinum">
<img src="src/images/PLATINUM.png" alt="Rnak Platinum">
<br><br>
<figcaption class="caption_fig">
<span>Y</span>ou <span>G</span>ot <span>P</span>latinum <span>R</span>ank
</figcaption>
</figure>
</div>
<!----------------------------------------DIV LOOSER--------------------------------------->
<div class="looser">
<!----------------------------------------LOOSER CAPTION--------------------------------------->
<div>
<p class="loos2"><span>Y</span>ou <span>L</span>oos<br><span>T</span>ry </span>A</span>gain</p>
</div>
<!----------------------------------------LOOSER TRAY AGAIN BADGE--------------------------------------->
<br><br>
<div class="loos">
<figure>
<img class="tryAgain" src="src/images/play-again.png" alt="">
<br><br>
<figcaption class="caption_fig">
<span>T</span>ry <span>A</span>gain <span>N</span>ever <span>G</span>ive <span>U</span>p
</figcaption>
</figure>
</div>
</div>
<div>
<br><br>
<button class="homeBtn" onclick="location.href='index.html'">Home</button>
<button class="nextlevelBtn" onclick="location.href='LevelAndCharacter.html'">Next Level</button>
<button class="tryagainBtn" onclick="window.location.reload();">Try Again</button>
</div>
</div>
<script src="js/confetti.js"></script>
<script type="module" src="js/GameLoop.js"></script>
</body>
</html>