Skip to content

A simple raycasting algorithm using c language

License

Notifications You must be signed in to change notification settings

thepsauce/cRayCast

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About:

cRay is a raycasting game engine written in C language that uses the Digital Differential Analysis aka the "DDA" algorithm.

Overview:

Screenshot from 2023-09-12 00-17-14

Dependencies:

The MLX42 is a minimal graphical library that depends on OpenGL and glfw library.

  • For distribution based on Debian
➜ sudo apt update
➜ sudo apt install build-essential libx11-dev libglfw3-dev libglfw3 xorg-dev

➜ # for Wayldan display server you will need extra packeges
➜ sudo apt install libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules libglfw3-wayland

Setup:

~ git clone https://github.com/https://github.com/kaboussi/cRay
➜  ~ cd cRay/MLX42
➜  ~ cmake -B build
➜  ~ cmake --build build -j4

Compile and run:

  • Using Cmake
~ cmake -B cmake-build-debug
➜  ~ cd cmake-build-debug
➜  ~ make -C cmake-build-debug
➜  ~ ./cmake-build-debug/cRay assets/maps/map.cub
  • Using Makfile
~ make
➜  ~ ./cRay assets/maps/map.cub

Resources:

About

A simple raycasting algorithm using c language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.8%
  • C++ 8.3%
  • Python 1.5%
  • CMake 0.9%
  • GLSL 0.2%
  • Batchfile 0.1%
  • Other 0.2%