Skip to content

footballhead/raycaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Raycaster built with SDL and C++14

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published