Skip to content

ayushbasak/raycaster2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



                               _            _____ ______ 
                              | |          / __  \|  _  \
 _ __ __ _ _   _  ___ __ _ ___| |_ ___ _ __`' / /'| | | |
| '__/ _` | | | |/ __/ _` / __| __/ _ \ '__| / /  | | | |
| | | (_| | |_| | (_| (_| \__ \ ||  __/ |  ./ /___| |/ / 
|_|  \__,_|\__, |\___\__,_|___/\__\___|_|  \_____/|___/  
            __/ |                                        
           |___/                                         


raycaster2D

a simple 2D raycasting simulation using SFML library


Versions

  • [v3.0] constrained motion of player within window color gradient rays & walls

    screenshot

  • v2.0 multiple random wall generation and ray collision

  • v1.0 single line wall ray intersection

Controls

  • A [Rotate Player Anticlockwise]
  • D [Rotate Player Clockwise]
  • Arrow Keys [Player Motiion]

Build

Compile the VS2019 soltuion file

  • Configure Global Macros in Base.h

GPL-3.0 License