Skip to content

lachfoy/sdl2-raycaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Raycaster

NOTE: PROJECT IS ON HOLD INDEFINITELY (I need to improve my maths, C and patience skills)

TODO:

  • Seperate pixel buffer out into its own object
  • Fix raycast calculations (in progress)
  • Calculate a depth buffer
  • Distance fog
  • Improve the controls and add mouselook. Handle input better
  • Add texture loading with stb_image
  • Wall collisions?? :(
  • 2D sprite rendering

Sources I used to learn

https://lodev.org/cgtutor/raycasting.html

https://github.com/ckinvents/c-raycaster

cmake commands

Build makefile: cmake -S . -B build.

Build program: make -C build.

About

Little side project to improve my knowledge of C.

Resources

Stars

Watchers

Forks