-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
127 lines (116 loc) · 5.23 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 name="description" content="Type fast enough in order to survive.
Use arrows to move." />
<meta name="title" property="og:title" content="CODE NINJA" />
<meta property="og:type" content="" />
<meta name="image" property="og:image" content="https://i.imgur.com/6fAquCB.png" />
<meta name="author" content="Miguel Ortega Ward & Jean Carlo Castillo Noguera" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- BOOTSTRAP -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- FONT -->
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<!-- STYLE SHEET -->
<link rel="stylesheet" href="./styles/styles.css">
<title>Code Ninja</title>
</head>
<body>
<main>
<div class="container firstWindow">
<container id="starting-screen">
<section class="game-info ">
<h1>Code Ninja</h1>
<hr>
<h2>Intructions:</h2>
<p class='instructions'>Type fast enough in order to survive. <br>
Use arrows to move.
</p>
</section>
<section class="Powerups">
<div class="row">
<div class="col-12">
<h2>POWER UPS:</h2>
</div>
<div class="col-4">
<img src="imgs/redSlimePresentation.gif" alt="">
<h3>EXPLOSION</h3>
<hr>
<p>Kills enemies around you</p>
</div>
<div class="col-4">
<img src="imgs\bluelimePresentation.gif" alt="">
<h3>FREEZE</h3>
<hr>
<p>Freezes enemies in screen for 5 seconds</p>
</div>
<div class="col-4">
<img src="imgs\greenSlimePresentation.gif" alt="">
<h3>REPEL</h3>
<hr>
<p>Repels enemies away from you</p>
</div>
</div>
</section>
<div class='centerbutton'>
<span id="start-button" class='startbutton'>START</span>
</div>
</container>
</div>
</main>
<div class="row gx-0">
<footer class="d-none order-1">
<container class="user-input">
<div class="container">
<div class="row">
<div
class='col-4 d-flex centrartext justify-content-start align-items-center livesleft texthelp'>
<h3 class='livestext'>Lives left: </h3>
</div>
<div class="col-4 d-flex flex-column pt-4 pb-4">
<h2 class='centrartext'>Type here:</h2>
<input class='inputBox' type="text">
</div>
<div class='col-4 d-flex centrartext justify-content-end align-items-center score texthelp'>
<h3 class='scoretext'>Score: </h3>
</div>
</div>
</div>
</container>
</footer>
<div id='gameover' class="containercontainer d-none">
<div class="container gameOverScreen">
<div class="row ">
<div class="col-12 d-flex text-align-center justify-content-center gameover">
<p class="gameOverText">GAME OVER</p>
</div>
<div class="col-12 text-align-center justify-content-center d-flex">
<p>You might find useful: </p>
<a href="https://developer.mozilla.org/en-US/">MDN docs</a>
</div>
<div class='centerbutton col-12'>
<span id="tryagain-button" class='startbutton tryAgainButton'>TRY AGAIN</span>
</div>
</div>
</div>
</div>
<div id='showgame' class='order-0 d-none'>
<canvas id="myCanvas"></canvas>
<script src="js/background.js"></script>
<script src="js/words.js"></script>
<script src="js/enemies.js"></script>
<script src="js/player.js"></script>
<script src="js/powerUps.js"></script>
<script src="js/explosion.js"></script>
<script src="js/code-ninja.js"></script>
<script src="js/index.js"></script>
</div>
</div>
</body>
</html>