-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
27 lines (23 loc) · 792 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Snake!</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.7.0/p5.js"></script>
<script src="snake.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<h1 class="header">Snake in JavaScript with p5.js</h1>
<div class="container">
<div id="snake-container" class="sketch"></div>
</div>
<div class="container">
<p>Controls: WASD or arrow keys. 'P' to pause.</p>
</div>
<div class="container">
Credit: <a target="_blank" href="https://icon-icons.com/icon/snake/100855">Schlange</a>-icon.
</div>
</body>
</html>