-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (48 loc) · 2.18 KB
/
Copy pathindex.html
File metadata and controls
57 lines (48 loc) · 2.18 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="keywords" content="ray casting, simulator">
<meta name="description" content="ray casting simulator">
<meta name="author" content="Philipp von Neffe">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Raycasting Simulator</title>
<!-- scripts -->
<script src = "scripts/ray.js"></script>
<script src = "scripts/boundary.js"></script>
<script src = "scripts/player.js"></script>
<script src = "scripts/raycasting.js"></script>
<script src = "scripts/configuration.js"></script>
<!--style sheets-->
</head>
<body>
<main>
<h1>Raycasting Simulator V3.0</h1>
<div id = "raycasting">
<canvas id="canvas" width="350" height="350" style="border:3px solid #000000;"> Something went wrong :( </canvas>
<button id="clear-button">Clear</button>
<p id="fps">FPS:</p>
</div>
</main>
<div id="tutorial">
<h2>Tutorial:</h2>
<ul>
<li>Draw Boundaries with your Mouse</li>
<li>Move Raycaster by dragging it with your Mouse</li>
</ul>
</div>
<div id="configuration">
<h2>Configuration</h2>
<label for="ray-spacing">Ray Spacing: <output id="ray-spacing-value">10</output></label>
<input type="range" id="ray-spacing" name="ray-spacing" min="1" max="360" step="1" value="10">
<label for="boundary-width">Boundary Width: <output id="boundary-width-value">10</output></label>
<input type="range" id="boundary-width" name="boundary-width" min="1" max="100" step="1" value="10">
<label for="ray-width">Ray Width: <output id="ray-width-value">10</output></label>
<input type="range" id="ray-width" name="ray-width" min="1" max="100" step="1" value="10">
<label for="player-size">Player Size: <output id="player-size-value">13</output></label>
<input type="range" id="player-size" name="player-size" min="1" max="100" step="1" value="13">
<button id="reset-button">Reset</button>
</div>
</body>
</html>