Skip to content

affmde/42-cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

223 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 - Cub3D
mac

mac Linux Ubuntu
c
size total files repo size commits per month last commit

description icon Description

This project is inspired by the world-famous Wolfenstein 3D game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.

goals icon Goals

This project’s objectives are: Rigor, use of C, use of basic algorithms, information research etc.
As a graphic design project, cub3D will enable you to improve your skills in these areas: windows, colors, events, fill shapes, etc.
To conclude cub3D is a remarkable playground to explore the playful practical applications of mathematics without having to understand the specifics.
With the help of the numerous documents available on the internet, you will use mathematics as a tool to create elegant and efficient algorithms

preview icon Preview

cubgif2.gif



features icon Features

Mandatory part:

  • Walk through the maze
  • Collision detection

Bonus part:

  • Minimap system
  • Doors to open and close
  • Animated sprite
  • Rotate the point of view with the mouse
  • Shoot
  • Enemies attack
  • Health system

requirements Requirements

As this program is coded in C, you will need a compiler as gcc. Also you will need minilibX graphic library. You can get it here.

run it How to run it

To run the mandatory part just

$ git clone https://github.com/affmde/42-cub3d.git
$ cd 42-cub3d
$ make && ./cub3D ./maps/[chooseMap]

replace chooseMap with one of the maps available in the maps folder.
Although, the most fun part of this project is the bonus, so I strongly recommend you to use

$ make bonus && ./cub3D_bonus ./maps/[chooseMap]

to take advantage of all the functionalities of the program.

ps: if you are using Mac, make sure that your Makefile is compiling with the flag MOSFLAGS. If you use linux the flags should be LINFLAGS.

controls icon Controls

Key Action
W Move forward
A Move left
D Move right
S Move backwards
Left Arrow Turn Left
Right Arrow Turn Right
Space Shoot
F Open doors
Mouse Turn
ESC Close window


collaborator icon Collaborators

@Rubidium7

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors