https://github.com/davecom/raycaster
A simple raycaster hacked together as a learning project in C & SDL.
https://github.com/davecom/raycaster
raycast raycaster raycasting raycasting-engine
Last synced: about 1 year ago
JSON representation
A simple raycaster hacked together as a learning project in C & SDL.
- Host: GitHub
- URL: https://github.com/davecom/raycaster
- Owner: davecom
- License: apache-2.0
- Created: 2019-03-12T03:56:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T03:33:06.000Z (over 4 years ago)
- Last Synced: 2025-01-09T09:52:54.791Z (about 1 year ago)
- Topics: raycast, raycaster, raycasting, raycasting-engine
- Language: C
- Homepage:
- Size: 4.07 MB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

## 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:
- [A first-person engine in 265 lines](http://www.playfuljs.com/a-first-person-engine-in-265-lines/)
- [Raycasting](https://lodev.org/cgtutor/raycasting.html)
## License
Apache