pbondoer / 42-wolf3d

Wolf3D @ 42 - raycasting renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wolf3d @ 42

wolf3d screenshot

A Wolfeinstein-like renderer made in C using minilibX, with textures, basic lighting and basic map files.

Compiling

Run make and you're set. Runs on Mac OS X and Linux (with XServer). Make sure to enable set the HI_RES = 1 macro if you want to use the high resolution textures included.

Running

Run ./wolf3d [map_file], a window should appear. You can navigate through the map using the arrow keys. Exit by closing the window or pressing ESC.

Map file format

It's a very simple format. Open a file in your favorite text editor, make sure you have a grid of integers (each one being it's block ID), and it should work right out of the box. Spawn position is the first empty space available from the top left.

1 1 1 1 1
1 0 2 0 1
1 0 0 0 1
1 1 1 1 1

License

This project is licensed under the GNU General Public License 3.

Textures are by @wht_dragon. High resolution textures belong to their respective owners.

About

Wolf3D @ 42 - raycasting renderer

License:GNU General Public License v3.0


Languages

Language:C 82.9%Language:Groff 9.3%Language:Objective-C 5.7%Language:C++ 1.1%Language:Makefile 0.9%Language:Perl 0.1%