Skip to content

Commit 73f5cce

Browse files
Merge pull request #2143 from chaanakyaaM/master
Bug Eliminator game extension added
2 parents 28447d9 + 075cb1b commit 73f5cce

File tree

14 files changed

+389
-0
lines changed

14 files changed

+389
-0
lines changed

Bug Eliminator/app.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-BR">
3+
4+
<head>
5+
<title></title>
6+
<meta charset="UTF-8">
7+
<link rel="stylesheet" href="estilo.css" />
8+
<script src="jogo.js"></script>
9+
</head>
10+
11+
<body onresize="ajustaTamanhoPalcoJogo()">
12+
<div class="painel">
13+
<div class="vidas">
14+
<img id="v1" src="img/coracao_cheio.png" />
15+
<img id="v2" src="img/coracao_cheio.png" />
16+
<img id="v3" src="img/coracao_cheio.png" />
17+
18+
</div>
19+
20+
<div class="cronometro">Start: <span id="cronometro"></span></div>
21+
22+
</div>
23+
24+
<script>
25+
document.getElementById('cronometro').innerHTML = tempo
26+
27+
let criaMosquito = setInterval(function() {
28+
posicaoRandomica()
29+
30+
}, criaMosquitoTempo)
31+
</script>
32+
33+
</body>
34+
35+
</html>

Bug Eliminator/estilo.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
@charset "UTF-8";
2+
3+
4+
html {
5+
cursor: url(img/mata_mosquito.png) 30 30, auto;
6+
}
7+
8+
body {
9+
background-image: url(img/bg.jpg);
10+
background-repeat: no-repeat;
11+
}
12+
13+
14+
15+
16+
.mosquito1 {
17+
width: 50px;
18+
height: 50px;
19+
}
20+
21+
.mosquito2 {
22+
width: 70px;
23+
height: 70px;
24+
}
25+
26+
.mosquito3 {
27+
width: 90px;
28+
height: 90px;
29+
}
30+
31+
32+
33+
34+
.ladoA {
35+
transform: scaleX(1);
36+
}
37+
38+
.ladoB {
39+
transform: scaleX(-1);
40+
}
41+
42+
43+
44+
45+
.painel {
46+
position: absolute;
47+
width: 190px;
48+
padding: 10px;
49+
left: 0px;
50+
bottom: 0px;
51+
border-top: solid 1px white;
52+
background-color: white;
53+
opacity: 0.7;
54+
}
55+
56+
.vidas {
57+
float: left;
58+
}
59+
60+
.cronometro {
61+
float: left;
62+
font-size: 20px;
63+
font-weight: bold;
64+
}

Bug Eliminator/fim_de_jogo.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-BR">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<!-- CSS only -->
9+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
10+
<link rel="stylesheet" href="estilo.css" />
11+
<title>Document</title>
12+
</head>
13+
14+
<body>
15+
<div class="container">
16+
<div class="row">
17+
<div class="col">
18+
<div class="d-flex justify-content-center">
19+
<img src="img/game_over.png" />
20+
</div>
21+
</div>
22+
</div>
23+
24+
<div class="row">
25+
<div class="col">
26+
<div class="d-flex justify-content-center">
27+
<button type="button" class="btn btn-dark btn-lg" onclick="window.location.href = 'index.html' ">Replay</button>
28+
</div>
29+
</div>
30+
</div>
31+
</div>
32+
33+
</body>
34+
35+
</html>

Bug Eliminator/icon.png

11.6 KB
Loading

Bug Eliminator/img/bg.jpg

352 KB
Loading
49.9 KB
Loading
49.2 KB
Loading

Bug Eliminator/img/game_over.png

170 KB
Loading
71.7 KB
Loading

Bug Eliminator/img/mosca.png

264 KB
Loading

0 commit comments

Comments
 (0)