Skip to content

Ray Casting Engine on C (simple Wolfenstein 3D implementation) (project from school 42)

Notifications You must be signed in to change notification settings

Iipal/Wolf3D-42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wolf3D

made by tmaluh (_ipal)
README.md contain not all info about project and after update project after last changes in libft its may work unstability

Video preview

Installation:

SDL2

Ubuntu:

sudo apt-get install libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev

Fedora:

sudo dnf install SDL2-devel SDL2_mixer-devel SDL2_ttf-devel

MacOS:

All ready for use. Just type make.

Windows:

Compiling

Use make for compiling all files.

When you have already installed SDL2 library you can use this simple rules:

  • make: Compile all.
  • make clean: Delete temporary files.
  • make del: Delete temporary Wolf3D files only(if you changed code use make del && make for re-compile only Wolf3D executable without libft).
  • make fclean: Delete executable Wolf3D file & libft.
  • make re: It's rules - make fclean & make in one.

Usage:

./wolf3d maps/map_name.w3d
  • [W | S]: Moving forward | backward.
  • [A | D]: Rotate left | right.
  • [T]: Toggle Textured\Flat rendering method.
  • [M]: Toggle mini-map rendering.
  • [F]: Toggle Fog rendering.
  • [C]: Switch Fog colors.
  • [LShift]: Step & rotate boost.
  • [Z] - Stop\Play steps sounds.
  • [Q]: Stop\Play background in-game music.
  • [+ | -]: Inc\Decrease background volume.
  • [R]: Toggle FPS\ms rendering info.
  • [H]: Toggle blur effect rendering.
  • [Y | N]: Inc\Decreaase bluring effect.
  • [ESC]: Close Wolf3D.

<===> MLX <===>

If you are crazy and want to run this project using MLX library and without many features - follow this rules:

git clone https://github.com/Iipal/Wolf3D-42.git wolf3d
cd wolf3d
git checkout 5acec91
make

About

Ray Casting Engine on C (simple Wolfenstein 3D implementation) (project from school 42)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published