42's project, create wolfenstein like game engine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Fabien Stadelwieser 664628be95
Readme done
2 months ago
asset Readme done 2 months ago
assets Mouse hock removed 1 year ago
inc Mouse hock removed 1 year ago
lib/libft Better pars error message 1 year ago
map Better map for correction 1 year ago
src Mouse hock removed 1 year ago
.gitignore Image loader done 1 year ago
Makefile Norm compliant img loading 1 year ago
README.md Readme done 2 months ago
author Better map for correction 1 year ago
bonus.txt Better map for correction 1 year ago

README.md

Wolf3d

Basic raycasting engine, just like the original Wolfenstein 3d.

$> cat map.w3
xxxxx
x   x
x p x
x   x
xxxxx
$> ./wolf3d map.w3

Install

One of the requirement of this project was to use 42l's minilibX which only run easily on the school's mac.

Could be done on Linux but you're on your own.

So make sure you have :

  • MacOS
  • 42's MinilibX

Then :

git clone ssh://git@git.42l.fr:42084/Fabien/wolf3d.git
cd wolf3d
make

How it's done

It's a pretty basic raycasting project that works just like presented in this tutorial. Good understanding of trigonometry and Pythagorean theorem needed.

Bonus

  • Doors
  • Minimap with fov displayed
  • Shadow depending on orientation
  • Skybox
  • Customizable spawn
  • Customizable textures
  • Movement direction normalized
  • No fish eye
  • Wall collision

Credit

Student project for School 42.

Realized in about a week with pmasson.

The texture are not mine, but the authors were lost during the texture conversion process, so... :(

Final Grade: 125/125