Skip to content

aleksanderkoder/RaycastingEngineJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RaycastingEngineJS

A simple raycasting engine made from scratch using JavaScript.

This is a simple prototype in early development.

The point of this prototype is to draw walls in pseudo-3D space using raycasting.

This will eventually be ported to C++.

NOTE: This version has a "fish-eye" effect which will be fixed in later versions.

How to use

Walk around using WASD and turn your field of view by moving the mouse horizontally. You can draw your own walls by pressing SPACE while having the mouse cursor on the left window. This wil create a line which will follow your mouse. Press SPACE again to finalize the line. If the line is inside your field of view, it will be projected in the right window. Clicking inside the projection window (right window) will lock your cursor to this window.

About

A simple raycasting engine made from scratch using JavaScript. Prototype.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •