Skip to content

twinksy1/3D-ray-casting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D To 3D Environment Using Ray Casting

This is an interactive, graphical application coded in C++ using the SDL2 framework that takes a 2D environment and simulates it in 3D. There are two screens in the main program: the 2D environment, and the 3D environment. The 2D environment can be thought of as a mini-map where the origin of the rays represents the player's position, the rays represent its field of view, and the blue lines represent walls. I then take my field of view and transition it into a 3D environment. All movement in the 2D environment is implemented accordingly in the 3D environment.

Features

  • Player's rotation depends on the position of the mouse
  • Move the player with the a,s,d,w keys
  • Quick termination of program by pressing 'Esc' key

GIF Of Program Execution

GIF

About

Representing 2D ray casting in a 3D environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published