Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 636 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 636 Bytes

SDL raycaster sample

A screenshot of current gameplay

Requirements

  • 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

Building

The usual CMake way:

mkdir build && cd build
cmake ..
make

Running

The binary needs to know where the assets/ directory is, so it must be run from the repo root:

./build/raycaster

Controls

  • W - move forward
  • S - move backward
  • A - turn left
  • D - turn right
  • SPACE - take screenshot
  • ESCAPE - quit