Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Raycaster in SDL

Raycaster with textures

Sample Image

64x64 texture and Sprites Added

I made this small raycasting engine as a way to learn SDL and also some graphical computing, currently it serves as a pseudo Wolfenstein3D clone

THIS ENGINE IS IN DEVELOPMENT, I am currently working on optimizing and adding features to the engine. Currently the ceilings and floors are very performance heavy, if turned off the engine runs more smoothly (Over 1000fps on my machine)

Features

  • Fully textured 64x64 walls, floors and ceilings (To turn off floors and ceilings undefine TEXT_FLOOR in world.h)
  • Textured Sprites, static, dynamic and directional
  • Full colisions for sprites and walls
  • Smooth keyboard and mouse camera movement

Todo

  • Proper doors
  • Gameplay(??)

References

Alot of the code was direct reference from 3DSage's youtube series on raycasters

SDL initialization and event handling from LazyFoo's tutorials

Getting my head around concepts was much easier with this tutorial

Alot of the math was derived from this video

About

Raycaster in C made using SDL2

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages