Skip to content

Raycasting engine - TypeScript / JavaScript / NodeJS

License

Notifications You must be signed in to change notification settings

gregfrazier/raycastard

Repository files navigation

raycastard

Raycasting engine - TypeScript / JavaScript / NodeJS

Wall-only raycasting to a 24-bit buffer, then converted to ASCII and displayed using Terminal-Kit npm package.

Clone/Download the repo, run "npm update" to get the reqs, then run "node raycaster.js" in a console window.

Windows console doesn't support 24-bit colors, so you are limited to 256 or somewhere around there. Windows 10 console shows the cursor moving during passes, so it's hilarious to watch how slow the refresh rate it. Windows 7 looks the best on the Windows platform. Linux has nicer colors.

Modify display.js(.ts) to change the characters used.

Make sure you are running the latest version of Node.js.

It's using a dumbed-down version of the raycaster from "later" repo converted over to TypeScript, the JS files are the transpiled output from tsc.

Windows:

alt tag

Linux (Mint 18):

alt tag

About

Raycasting engine - TypeScript / JavaScript / NodeJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published