samsvp / shadow_cast2d

Repository from Github https://github.comsamsvp/shadow_cast2dRepository from Github https://github.comsamsvp/shadow_cast2d

Shadow Cast 2D

Shadow caster 2D based on javidx9 C++ implementation. For more information behind the math check out redblobgames article and/or Nicky Case's article.

Controls

Use WASD to move and press the right mouse button to cast light.

Dependencies

Build and install raylib.

Install

mkdir build && cd build
cmake ..
make

You should see the shadow_cast binary in the build folder.

About


Languages

Language:C++ 96.5%Language:CMake 3.5%