html5-raycast

HTML5 Raycast

A Wolfenstein 3D style JavaScript Raycaster using the browser’s HTML5 Canvas for rendering.

View Demo Here

Heavily modified from this article by Jacob Seidelin.

Main Differences from original article:

Building

There is no build step but you will need a HTTP webserver like nginx to run and test locally. If you try to load the .htm file directly with the file:// protocol you’ll probably encounter an error like “The canvas has been tainted by cross-origin data.”

Asset Credits

https://opengameart.org/content/big-pack-of-hand-painted-tiling-textures

https://opengameart.org/content/first-person-dungeon-crawl-art-pack