Skip to content
A WIP old school ray casting demo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
include
plan/201610
res/previews
src
vendor
.editorconfig
.gitignore
Makefile
README.md
settings.json

README.md

Raycaster

A WIP old school ray casting program.

preview

preview-gif

preview-resize

Compiling

Note: This project is very much a WIP. It is being developed on OSX El Capitan (10.11.4) and the Makefile has not been configured to locate SDL2 correctly on other platforms. Cross platform support is on my TODO list.

This project is dependent on SDL2, which must first be installed at https://www.libsdl.org/download-2.0.php. Download the runtime binaries for your operating system and install.

Once SDL2 is available, clone this repository.

git clone https://github.com/adelciotto/raycaster.git

Change into the cloned directory and run make.

cd raycaster
make

Then run the rayc executable.

./rayc

Configuration

The programs settings and map data are stored in JSON format. You can change the settings by editing settings.json located at the root of the repository. These are the defaults.

{
  "width": 640,
  "height": 360,
  "fullscreen": false,
  "map": "assets/maps/small.json",
  "vsync": true
}

Third-party code

Resources

License & Legal

This code-base is released under the MIT License.

All dependencies are released under their own respective licenses.

For now some images are taken from ID Sofwares Wolfenstein 3D to use as placeholders. These are copyright of ID Software and I claim no ownership for any of these assets.

You can’t perform that action at this time.