-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (30 loc) · 1019 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
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Cobrinha</title>
</head>
<body>
<p class="score" id="score">Score: </p>
<button class="restart-button" id="restart-button" onclick="restart()">Restart</button>
<div class="gamespace"><canvas id="gameCanvas" width="500" height="500"></canvas></div>
</canvas>
<section class="controls-section">
<button class="verticalButton" onclick="movement.up()">
↑
</button>
<button class="horizontalButton" onclick="movement.left()">
←
</button>
<button class="horizontalButton" onclick="movement.right()">
→
</button>
<button class="verticalButton" onclick="movement.down()">
↓
</button>
</section>
<script src="script.js"></script>
</body>
</html>