Skip to content
neomikusPublic

About

Small prototype for a game using raycasting for graphics

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕹️ 42-Cub3d 🕹️

Cub3D is a 42 School project that involves creating a simple 3D raycasting prototype inspired by classics like Doom and Wolfenstein 3D. Written in C using the MiniLibX graphic library

✅ Features ✅

  • Custom raycasting engine
  • Customizable maps with walls, floor, and ceiling colors
  • Texture mapping for walls based on wall orientation
  • Player movement
  • Camera rotation with arrow keys
  • Collision detection
  • Map parsing

🛠️ Compilation and usage 🛠️

Dependencies

MLX's dependencies: glfw (or glfw-wayland for wayland)

For Debian:

sudo apt install libglfw3

For Arch (x11):

sudo pacman -S glfw-x11

For Arch (Wayland):

sudo pacman -S glfw-wayland

Build

Clone the repository
git clone https://github.com/princess-mikus/42-cub3d.git cub3d

And then call the Makefile

make

Usage

./cub3d map_path

where map_path is the path of a valid map. Example maps are in the maps folder (valid for valid maps, error for error handling showcase)

About

Small prototype for a game using raycasting for graphics

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages