-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (98 loc) · 4.75 KB
/
index.html
File metadata and controls
119 lines (98 loc) · 4.75 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>MathTerror</title>
<!-- Tipografia "horror" -->
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Creepster&family=Montserrat:wght@400;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Vídeo de background -->
<video id="bgVideo" class="bg-video" autoplay muted loop playsinline>
<source src="assets/videos/inicio.webm" type="video/webm" />
Seu navegador não suporta vídeo HTML5.
</video>
<!-- Efeitos -->
<div class="fx-vignette" aria-hidden="true"></div>
<div class="fx-noise" aria-hidden="true"></div>
<!-- Botão de FULLSCREEN (fixo topo direito) -->
<button id="fullscreenBtn" class="btn btn--blood floating-fullscreen" aria-pressed="false"
aria-label="Alternar tela cheia">
⛶
</button>
<!-- Overlay central (logo + iniciar) -->
<div class="overlay">
<div class="stack">
<img src="assets/images/logo.png" alt="Logo do Jogo" class="logo" />
<div class="controls">
<button id="startBtn" class="btn btn--blood-primary" aria-label="Iniciar jogo">
<!-- Ícone macabro (crânio SVG) -->
<svg aria-hidden="true" viewBox="0 0 24 24" width="18" height="18"
style="vertical-align: -3px; margin-right:8px;">
<path fill="currentColor"
d="M12 2c4.418 0 8 3.134 8 7 0 2.34-1.19 3.94-2.43 4.92-.37.29-.57.74-.57 1.21V17a2 2 0 0 1-2 2v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1a2 2 0 0 1-2-2v-1.87c0-.47-.2-.92-.57-1.21C5.19 12.94 4 11.34 4 9c0-3.866 3.582-7 8-7Zm-3.25 7a1.75 1.75 0 1 0 0 3.5A1.75 1.75 0 0 0 8.75 9Zm6.5 0A1.75 1.75 0 1 0 15.25 12.5 1.75 1.75 0 0 0 15.25 9ZM10 16h4a1 1 0 1 1 0 2h-4a1 1 0 0 1 0-2Z" />
</svg>
Iniciar
</button>
<button id="survivalBtn" class="btn btn--blood">Modo Sobrevivência</button>
<button id="rankingBtn" class="btn btn--blood-primary">Ranking 🥇</button>
</div>
</div>
</div>
<!-- Popup para ativar áudio (só em fullscreen) -->
<div id="audioModal" class="modal-backdrop" hidden>
<div class="modal">
<h2 class="modal-title">Ativar Áudio?</h2>
<p class="modal-text">Recomendado usar fones. O som fica melhor em tela cheia.</p>
<div class="modal-actions">
<button id="audioEnableBtn" class="btn btn--blood-primary">Ativar Áudio</button>
<button id="audioDismissBtn" class="btn btn--blood-ghost">Continuar sem áudio</button>
</div>
</div>
</div>
<!-- Áudio de fundo -->
<audio id="bgMusic" src="assets/audio/fundo.mp3" preload="auto" loop></audio>
<section id="scene1" class="scene" hidden>
<div class="scene-inner">
<img id="char1" class="character" src="assets/images/p.png" alt="Personagem">
<div class="story-box">
<div class="story-scroll">
<div id="storyText" class="story-text"></div>
</div>
</div>
</div>
<div class="scene-actions">
<button id="continueBtn" class="btn btn--blood-primary" hidden>Continuar ▶</button>
<button id="skipBtn" class="btn btn--blood-ghost">Pular diálogo ⏭</button>
</div>
</section>
<!-- ===== QUIZ ===== -->
<section id="quiz" class="quiz" hidden>
<div class="quiz-inner">
<h2 id="qTitle" class="quiz-title"></h2>
<div id="qOptions" class="quiz-options"></div>
</div>
</section>
<!-- Overlay de ACERTO: blackout + vídeo -->
<div id="correctOverlay" class="blackout" hidden>
<video id="rewardVideo" class="reward-video" playsinline autoplay></video>
</div>
<!-- Flash de ERRO (imagem aleatória) -->
<img id="wrongFlash" class="wrong-flash" alt="" hidden />
<div id="statusBar" class="status-bar" hidden>
<span id="lives">Vidas: 3</span>
<span id="score">Pontuação: 0</span>
</div>
<!-- SFX: máquina de escrever -->
<audio id="typeSfx" src="assets/audio/tip.mp3" preload="auto"></audio>
<audio id="narration" src="assets/audio/Eleven.mp3" preload="auto"></audio>
<audio id="jumpSfx" src="assets/audio/susto.mp3" preload="auto"></audio>
<audio id="pulseSfx" src="assets/audio/pulse.mp3" preload="auto" loop></audio>
<!-- Módulos JavaScript -->
<script type="module" src="script.js"></script>
</body>
</html>