-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (111 loc) · 6.6 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Play - Jornada da Kobra Mística</title>
<link rel="shortcut icon" href="./assets/images/apple.svg" type="image/x-icon">
<link rel="stylesheet" href="./assets/css/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=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<script src="./assets/js/class.js" defer></script>
<script src="./assets/js/main.js" defer></script>
</head>
<body>
<main>
<!-- HOW TO PLAY -->
<div class="cardMaster swipeMaster">
<button class="buttonCloseSwipe" onclick="closeSwipe()"><img src="assets/images/menu/button-close.svg" alt="Botão de fechar"></button>
<div class="card swipe">
<p>Para jogar no celular, basta clicar na tela e arrastar para o lado que deseja que a cobrinha siga!</p>
<img src="assets/images/swipe-icon.svg" alt="Swipe">
</div>
</div>
<!-- ROTATE DEVICE -->
<div class="cardMaster portraitElementMaster">
<div class="card portraitElement">
<p>Por favor, gire seu dispositivo e clique em recarregar página!</p>
<button onclick="reload()" class="buttonReload"><img src="assets/images/reload.svg" alt="Recarregar página">Recarregar página</button>
</div>
</div>
<!-- START HTML -->
<div class="cardMaster startMasterDOM">
<div class="card startMasterHTML">
<button class="button" onclick="startHTML()">START</button>
</div>
</div>
<!-- START -->
<div class="cardMaster startMaster">
<a href="index.html" class="logoContainer"><img class="logo" src="assets/images/jkm-logo.svg" alt="Logo do jogo - Jornada da Kobra Mística"></a>
<div class="card">
<div class="cardButtons">
<button class="button" onclick="play()">JOGAR</button>
<button class="button" onclick="definitions()">DEFINIÇÕES</button>
<button class="button" onclick="credits()">CRÉDITOS</button>
</div>
<p class="text-copyright">Copyright © 2024 JKM Snake Game.<br>Todos os direitos reservados.</p>
</div>
</div>
<!-- PLAY AGAIN -->
<div class="cardMaster playAgainMaster">
<a href="index.html" class="logoContainer"><img class="logo" src="assets/images/jkm-logo.svg" alt="Logo do jogo - Jornada da Kobra Mística"></a>
<button class="buttonClose" onclick="closePlayAgain()"><img src="assets/images/menu/button-close.svg" alt="Botão de fechar"></button>
<div class="card">
<div class="cardButtons">
<button class="button result" id="snakePointsDead">PONTOS:</button>
<button class="button result" id="gameTimeDead">TEMPO:</button>
<button class="button playAgainButton" onclick="snake.restartSnake()">JOGAR NOVAMENTE</button>
</div>
</div>
</div>
<!-- CREDITS -->
<div class="cardMaster creditsMaster">
<a href="index.html" class="logoContainer"><img class="logo" src="assets/images/jkm-logo.svg" alt="Logo do jogo - Jornada da Kobra Mística"></a>
<button class="buttonClose" onclick="closeCredits()"><img src="assets/images/menu/button-close.svg" alt="Botão de fechar"></button>
<div class="credits card">
<h2 class="creditsH2">CRÉDITOS</h2>
<h3 class="creditsH3">Desenvolvido por:</h3>
<div class="developers">
<ul class="list-style-none">
<li><a class="listElements" href="https://github.com/naasdd" target="_blank"><img class="developersImage" src="./assets/images/devs/jose-gabriel.jpg" alt="">José Gabriel<br>(@naasdd)</a></li>
<li><a class="listElements" href="https://github.com/kauuaa" target="_blank"><img class="developersImage" src="./assets/images/devs/kaua-biasebetti.jpg" alt="">Kauã Biasebetti<br>(@kauuaa)</a></li>
<li><a class="listElements" href="https://github.com/mapompeo" target="_blank"><img class="developersImage" src="./assets/images/devs/matheus-pompeo.jpg" alt="">Matheus Pompeo<br>(@mapompeo)</a></li>
</ul>
</div>
<div class="footer">
<a class="linkGithub" href="https://github.com/mapompeo/snake-game" target="_blank"><img class="github" src="assets/images/menu/github-icon.svg" alt="Ícone do GitHub"></a>
<p class="text-copyright-credits">Copyright © 2024 JKM Snake Game.<br>Todos os direitos reservados.</p>
</div>
</div>
</div>
<!-- DEFINITIONS -->
<div class="cardMaster definitionsMaster">
<a href="index.html" class="logoContainer"><img class="logo" src="assets/images/jkm-logo.svg" alt="Logo do jogo - Jornada da Kobra Mística"></a>
<button class="buttonClose" onclick="closeDefinitions()"><img src="assets/images/menu/button-close.svg" alt="Botão de fechar"></button>
<div class="definitions card">
<div class="settings">
<div class="settingsElements">
<label for="rangeVolume" class="rangeText">Volume</label>
<input type="range" id="rangeVolume" value="100" min="0" max="100">
</div>
<div class="settingsElements">
<label for="rangeSoundEffects" class="rangeText">Efeitos sonoros</label>
<input type="range" id="rangeSoundEffects" value="100" min="0" max="100">
</div>
</div>
<img class="wasdArrows" src="assets/images/menu/wasd-arrows.svg" alt="Imagem mostrando as teclas WASD e setas">
<p class="text-copyright">Copyright © 2024 JKM Snake Game.<br>Todos os direitos reservados.</p>
</div>
</div>
<div class="screen">
<div class="hud">
<p id="snakePoints">PONTOS: 0</p>
<p id="personalRecord">RECORDE: 0</p>
<p id="gameTime">TEMPO: 00:00</p>
</div>
<canvas id="des" width="810" height="510"></canvas>
</div>
</main>
</body>
</html>