Skip to content
A simple raycaster hacked together as a learning project in C & SDL.
C C++ Objective-C
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.
RayCaster.xcodeproj
RayCaster
SDL
.gitignore
LICENSE
README.md
raycaster.png

README.md

RayCaster

This is a simple raycaster that I hacked together as a learning project with C & SDL. It's nothing I'm particularly proud of—it's just a learning project to better understand ray casting.

raycaster

Building

It comes with an Xcode project ready to build. The SDL2 and SDL2_image frameworks are distributed with it. The code itself should all be portable to other platforms without changes.

Running

Use the arrows keys to turn and step forward/backward. Press the 'm' key to see the overhead map. Press it again to hide it. You can change the "level design" by editing the array laid out as a square at the top of game.c in initialize().

Learning Resources

There were two articles that were particularly helpful:

License

Apache

You can’t perform that action at this time.