~jack/misc

ref: 6ed6482e8ce0cbe588dd9e09fa424339f50caf0d misc/codeworld-raycaster/README.md -rw-r--r-- 869 bytes
6ed6482eJack Kelly ergodox: add bind for `<@>`, remove bind for `RaaP.` 2 years ago

#Codeworld Raycaster

This is a simple raycaster I put together based on F. Permadi's tutorial "Ray-Casting Tutorial For Game Development And Other Purposes". Note that some pages in Permadi's tutorial are not reachable from the table of contents - use the next/previous page links to view those.

Rays are not cast using Permadi's method, but instead use the Algorithm of Amanatides and Woo.

There's no collision detection.

#Building

The easiest way to get a build environment is to use Nix. Once you have nix installed, you can run nix-shell to enter a shell with GHC and all needed libraries available.

After you have GHC ready (either from Nix or otherwise), build and run the raycaster with cabal v2-run.