Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.21 KB

File metadata and controls

26 lines (15 loc) · 1.21 KB

SFML-Raycaster

This is a simple raycaster made in C++ using SFML 2.6.1

Preview

Raycaster Raycaster 3D

Installation

Start by adding the main.cpp file into a local project on your machine.

Your local project will require SFML 2.6.1 to run, which can be downloaded from the download page on SFML's official website.

After downloading SFML, you can set it up based on your preferred IDE and OS by following the instructions in the SFML tutorial page.

Program Overview

This program opens 2 separate windows.

One window (titled 'Raycaster') draws a 2D version of the map and visualizes the actual casted rays.

The other window (titled 'Raycaster 3D') uses the lengths of the casted rays to create a first-person 3D world.

Code Overview

All code for this project is in one file (main.cpp). This project uses the cmath library for trigonometric calculations, SFML for user input and SFML graphics for rendering.