-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (34 loc) · 1.11 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
<!DOCTYPE html>
<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">
<title>Flapy</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
</head>
<body onkeyup="verificar(event)">
<canvas id="game" width="320" height="480"></canvas>
<audio src="efeitos/efeitos_caiu.wav" id="caiu"></audio>
<audio src="efeitos/efeitos_hit.wav" id="hit"></audio>
<audio src="efeitos/efeitos_ponto.wav" id="ponto"></audio>
<audio src="efeitos/efeitos_pulo.wav" id="pulo"></audio>
<style>
body{
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
canvas{
border: 1px solid #000;
display: block;
margin: 0 auto;
}
</style>
<script src="jogo.js"></script>
</body>
</html>