-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
26 lines (23 loc) · 928 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Snake</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.9.0/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/ml5@latest/dist/ml5.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.0/howler.min.js"></script>
<link rel="stylesheet" href="./assets/css/index.css">
<script src="./assets/js/game.js" defer type="module"></script>
<script src="./assets/js/tracking.js"></script>
</head>
<body>
<div id="game-board"></div>
<script>
let inputDirection = { x: 0, y: 0 }
let lastInputDirection = { x: 0, y: 0 }
</script>
</body>
</html>