Skip to content

Demo of raycasting using plain old JavaScript and HTML canvas.

Notifications You must be signed in to change notification settings

charles-marceau/RaycastingDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raycasting Demo

This is a raycasting demo I have made a few years ago to practice working with vectors. The raycasting is very basic and there is no collision detection but this is only a proof of concept made for fun.

Features

  • Raycasting in plain old JavaScript (no library needed).
  • Minimap that shows the FOV and the raycast hits locations.
  • Easy to edit map (it is a simple color matrix).

How to run

Clone the repository and open index.html.

Screenshots



About

Demo of raycasting using plain old JavaScript and HTML canvas.

Resources

Stars

Watchers

Forks