-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html lang="pt-br"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Snake</title> | ||
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon" /> | ||
|
||
<!-- Bootstrap icons --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.0/font/bootstrap-icons.css" /> | ||
|
||
<!-- Reset de estilos padrão --> | ||
<link rel="stylesheet" href="assets/css/reset.css" /> | ||
|
||
<!-- Meus arquivos .css e .js --> | ||
<link rel="stylesheet" href="assets/css/style.css" /> | ||
<script defer src="assets/js/script.js"></script> | ||
</head> | ||
|
||
<body> | ||
<header> | ||
<h1 id="title">SNAKE GAME v0.4.1.4</h1> | ||
<h1 id="snake-game__title">SNAKE GAME v1.0.0</h1> | ||
</header> | ||
|
||
<main> | ||
<div id="container"> | ||
<div id="status-container"> | ||
<div id="snake-game"> | ||
<div id="snake-game__status-container"> | ||
<!-- Pontuação atual do jogador / total de maçãs comidas --> | ||
<div id="score-container"> | ||
<i class="bi bi-apple"></i><span id="score">0</span> | ||
<div id="snake-game__score-container"> | ||
<i class="bi bi-apple"></i><span id="snake-game__score">0</span> | ||
</div> | ||
|
||
<!-- Pontuações mais altas: primeiro, segundo e terceiro lugar --> | ||
<div id="high-scores-container"> | ||
<div id="snake-game__high-scores-container"> | ||
<!-- Primeiro lugar --> | ||
<div id="first-place-container" class="high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="first-place-score">0</span> | ||
<div id="snake-game__first-place-container" class="snake-game__high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="snake-game__first-place-score">0</span> | ||
</div> | ||
|
||
<!-- Segundo lugar --> | ||
<div id="second-place-container" class="high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="second-place-score">0</span> | ||
<div id="snake-game__second-place-container" class="snake-game__high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="snake-game__second-place-score">0</span> | ||
</div> | ||
|
||
<!-- Terceiro lugar --> | ||
<div id="third-place-container" class="high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="third-place-score">0</span> | ||
<div id="snake-game__third-place-container" class="snake-game__high-score"> | ||
<i class="bi bi-trophy-fill"></i><span id="snake-game__third-place-score">0</span> | ||
</div> | ||
</div> | ||
|
||
<!-- Botão para alternar estado do som: ativado / desativado --> | ||
<button id="toggle-mute-sound" type="button"> | ||
<i id="sound-icon" class="bi bi-volume-mute-fill"></i> | ||
<button id="snake-game__toggle-mute-sound" type="button"> | ||
<i id="snake-game__sound-icon" class="bi bi-volume-mute-fill"></i> | ||
</button> | ||
</div> | ||
|
||
<!-- É aqui onde o jogo é renderizado --> | ||
<div id="stage-container"> | ||
<canvas id="stage" width="512" height="512"></canvas> | ||
<div id="snake-game__stage-container"> | ||
<canvas id="snake-game__stage" width="512" height="512"></canvas> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
|
||
</html> | ||
</html> |