Thanks to visit codestin.com
Credit goes to github.com

Skip to content

SDL2 C++ raycasting engine with vertical movement, floor/ceiling texture mapping and sprites.

Notifications You must be signed in to change notification settings

MORTAL2000/sdl2-raycast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDL2 Raycasting Engine

This was originally a port of my HTML5 canvas version here. But there are many more features now including vertical movement, floor/ceiling texture mapping, sprites and projectiles.

You can see videos of it in action here:
Video 1
Video 2

Download the Windows demo here. Note: Use E to open doors and spacebar to shoot.

Screenshots

Building

You will need SDL2 and SDL2_mixer.

SDL2 version used is SDL2-devel-2.0.12-mingw.tar.gz. https://www.libsdl.org/download-2.0.php

SDL2_mixer version used is SDL2_mixer-devel-2.0.4-mingw.tar.gz https://www.libsdl.org/projects/SDL_mixer/

So far I've only tested this with Dev-C++ 5.11 https://sourceforge.net/projects/orwelldevcpp/

Asset Credits

Sounds and images are from these OpenGameArt links:

https://opengameart.org/content/big-pack-of-hand-painted-tiling-textures

https://opengameart.org/content/first-person-dungeon-crawl-protagonist

https://opengameart.org/content/lab-sprites

https://opengameart.org/content/first-person-dungeon-crawl-art-pack

https://opengameart.org/content/2-high-quality-explosions

https://opengameart.org/content/4-projectile-launches

https://opengameart.org/content/lpc-animated-doors

https://opengameart.org/content/door-open-door-close-set

https://opengameart.org/content/cloudy-sky

About

SDL2 C++ raycasting engine with vertical movement, floor/ceiling texture mapping and sprites.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.7%
  • C 1.3%