- C++14 compiler
- SDL2
- CMake 3.10
On macOS, SDL and CMake can be installed through Homebrew:
brew install sdl2 cmake
On Ubuntu:
sudo apt install cmake libsdl2-dev g++ make
The usual CMake way:
mkdir build && cd build
cmake ..
make
The binary needs to know where the assets/
directory is, so it must be run
from the repo root:
./build/raycaster
- W - move forward
- S - move backward
- A - turn left
- D - turn right
- SPACE - take screenshot
- ESCAPE - quit