-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
36 lines (33 loc) · 1.36 KB
/
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
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ray-casting demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<script src="js/RayCaster.js"></script>
<script src="js/main.js"></script>
</head>
<body>
<h1>Raycasting demo</h1>
<div id="canvas-background">
<canvas id="maincanvas" class="screen-canvas" width="160" height="120">
<p>Your browser does not support the <canvas> element.</p>
</canvas>
</div>
<p id="fps"></p>
<p id="presentation">
This is a simple implementation of the <a href="https://en.wikipedia.org/wiki/Ray_casting">ray casting
algorithm</a> in JavaScript to produce a pseudo-3D effect, as seen in old-school FPS games.<br />
Use WASD keys to move into the maze.
</p>
<p id="picture-text">
The <a href="https://cloud.blender.org/p/agent-327/58ce6f7588ac8f12bb1b5c9e">picture</a> is from
the Dutch animated film <a href="https://agent327.com/">Agent 327</a> (license
<a href="https://creativecommons.org/licenses/">CC-BY-SA</a>, based on an original character © Martin
Lodewijk)
</p>
<footer>by <a href="/">Cédric "tuzepoito" Chartron</a> - 2019.</footer>
</body>
</html>