-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (28 loc) · 931 Bytes
/
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
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"></meta>
<head>
<title>SnakeGame - Thainá Monteiro</title>
<style>
body { background-image: url("img/background.jpg"); }
canvas
{
background-color: #000000;
padding-left: 0;
padding-right: 0;
margin-left: auto;
margin-right: auto;
display: block;
}
</style>
</head>
<body onkeydown="keyboardDown(event)" onkeyup="keyboardUp(event)" onload="setInterval('gameMain()', 130)">
<script type="text/javascript" src="snake.js"></script>
<div align="center">
<!-- <p>Thainá Monteiro - TAMANHO ATUAL: <strong id="currSize"></strong> - TAMANHO ANTERIOR: <strong id="lastSize"></strong></p> -->
<canvas id="canvas" style="border:8px solid #12887d">
Baixe um navegador recente com suporte a <strong>HTML5</strong>
</canvas>
</div>
</body>
</html>