-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (69 loc) · 2.51 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
<html lang="pt-BR">
<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">
<link rel="icon" href="Snake Game/Snakeicon.png" type="image/png">
<script src="Snake Game/script.js" charset="utf-8"></script>
<link rel="stylesheet" href="Snake Game/style.css">
<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=Concert+One&family=Orbitron:wght@400;700;900&family=Play:wght@400;700&display=swap" rel="stylesheet">
<title>Snake Game</title>
</head>
<body>
<div class="popup" id="lose">
<h3>Você Perdeu!</h3>
<button id="new-game">Jogar Novamente?</button>
</div>
<div class="popup" id="rules">
<div class="exit"></div>
<h3>Regras do Jogo</h3>
<ul>
<li>Inicie o jogo pressionando as teclas de seta para CIMA, para ESQUERDA ou para DIREITA</li>
<li>Mova sua cobra pelo mapa com as teclas de seta para CIMA, para BAIXO, para ESQUERDA ou para DIREITA</li>
<li>Coma a bola para crescer e ganhar pontos</li>
<li>Tente sobreviver o máximo possível, evitando esbarrar em si mesma</li>
</ul>
</div>
<!-- música de fundo -->
<audio id="music" src="Snake Game/CFCF - Slippery Plastic Euphoric.mp3"></audio>
<!-- som da comida -->
<audio id="food" src="Snake Game/food.wav"></audio>
<!-- som quando perde -->
<audio id="lose-sound" src="Snake Game/lose.wav"></audio>
<!-- Principal -->
<header>
<h1>Snake Game 🐍</h1>
</header>
<!-- Contêiner para armazenar as 2 barras laterais e a grade[um elemento pai flexível] -->
<section id="container">
<!-- sidebar - barra lateral esquerda -->
<aside id="sidebar">
<div class="inside">
<div id="flex-child-one">
<h2>Pontuação</h2>
<div id="score-span"></div>
</div>
<div id="flex-child-one">
<h2>Música</h2>
<button id="musicbtn">Play</button>
</div>
</div>
</aside>
<!-- Grade -->
<div id="grid">
<!-- Items de grade aqui -->
</div>
<!-- sidebar - barra lateral direita -->
<aside id="sidebar" class="right">
<div class="inside">
<!-- <button id="start">Iniciar</button> -->
<!-- <button id="pause">Pausar</button> -->
<button id="rules-btn">Regras</button>
<button id="new">Novo Jogo</button>
</div>
</aside>
</section>
</body>
</html>