Skip to content

🎮 The aim of this project was to introduce us to Raycasting. We have to reproduce the graphic method of the Wolfenstein 3D game.

Notifications You must be signed in to change notification settings

julienhouyet/42-cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-cub3D

42-cub3d

Introduction

The aim of this project was to introduce us to Raycasting. We have to reproduce the graphic method of the Wolfenstein 3D game.

This project is being developed with the minilibx from 42.

At 42 School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.

Developed with loicvitale.

âš¡ Usage

🔌 Installation

To install the project, clone this repository :

$ git clone [email protected]:19-cub3d/42-cub3d.git

To compile the game, run this command :

$ make

📦 Commands

After compiling the project, the executable file with the name so_long will be created, to run the game call the executable passing the map as an argument:

Example:

$ ./cub3D assets/maps/map.cub
$ ./cub3D assets/maps/map2.cub

To compile the project, run :

$ make

To re-compile the project :

$ make re

To wipes all object files :

$ make clean

To delete the project and all object files

$ make fclean

📓 More

You can create your own map.

Your map must be a .cub file.

It must be surrounded by 1 (wall).

The map must be composed of just these 6 characters: 0 for empty spaces 1 for walls, and N, S, E or W, which represent the player's starting position and orientation.

Example :

NO ./assets/wall1.xpm
SO ./assets/wall2.xpm
WE ./assets/wall3.xpm
EA ./assets/wall4.xpm

C 124,159,12
F 255,255,203

		1111111111111111111111111
		1000000000110000000000001
		1011000001110000000000001
		1001000000000000000000001
111111111011000001110000000000001
100000000011000001110111100011111
11110111111111011100000010001
11110111111111011101010010001
11000000110101011100000010001
10000000000000001100000010001
10000000000000001101010010001
11000001110101011111011110N0111
11110111 1110101 101111010001
11111111 1111111 111111111111

📄 Resources

Minilibx Docs

📷 Gallery

About

🎮 The aim of this project was to introduce us to Raycasting. We have to reproduce the graphic method of the Wolfenstein 3D game.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published