-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (25 loc) · 863 Bytes
/
index.html
File metadata and controls
30 lines (25 loc) · 863 Bytes
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
<!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>Raycasting</title>
</head>
<body>
<div class="content">
<div id="canvas"></div>
<div class="directions">
<h2>Directions: </h2>
<ul>
<li>Click on the canvas once to set the first point in a wall</li>
<li>Click somewhere else to complete the wall at the cursor position</li>
<li>Click square at top left to turn light on and off</li>
<li>Press "c" to clear all walls</li>
</ul>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.js"></script>
<script src="sketch.js"></script>
</body>
</html>