-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnake.html
29 lines (25 loc) · 1010 Bytes
/
snake.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
<!DOCTYPE html>
<html lang="nl">
<head>
<title>Snake</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="snake.css">
</head>
<body onselectstart="return false" onDrag="return false" onDrop="return false">
<div class="container">
<canvas id="spel"></canvas>
<!-- ▼▼▼ Opdracht 5 ▼▼▼ -->
<div class="besturing">
<button id="links" onclick="naarLinks()">←</button>
<div class="bovenBeneden">
<button id="boven" onclick="naarBoven()">↑</button>
<button id="beneden" onclick="naarBeneden()">↓</button>
</div>
<button id="rechts" onclick="naarRechts()">→</button>
</div>
<!-- ▲▲▲ Opdracht 5 ▲▲▲ -->
</div>
<script src="snake.js"></script>
</body>
</html>