Skip to content

ShroomySquid/Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cube3d

This program is a small game similar to Doom, it use ray-casting to project an early form of 3D graphics. This project is part of the 42 Quebec cursus and was made with the cooperation of lcouturi.

To run the program, you will need to provide it with a valid map with the .cub extension. You can find some in the maps folder of this git repository. Example:

./cube3d maps/valid_map.cub

Use WASD or the arrows keys to move around. Use the mouse to change the direction in which you look. Press the left mouse button to open doors. You can close or open the minimap with the M key.

To exit the program, simply press escape.

Installation

  • Clone the repository in a folder of your choice.
git@github.com:ShroomySquid/Cub3D.git
  • Run the command "make" in the folder to compile the program.

  • NOTE: This program use the mlx library from Codam. It will install the mlx library. It is only design to compile on MacOs.

Cub3d -- Français

Ce programme est un petit jeu dans le style de Doom. Il utilise du Ray-Casting pour afficher des graphiques 3D. Ce projet fait partie du cursus de 42 Québec et à été fait avec la coopération de lcouturi.

Pour lancer Cub3D, il faudra procurer au programme une carte valide avec l'extension .cub. Vous pouvez trouver quelques cartes dans le fichier maps du répertoire. Example:

./cube3d maps/valid_map.cub

Utilisez les commandes WASD ou les flèches pour vous déplacer. Utilisez la souris pour changer l'angle de la caméra. Pesez le bouton gauche de la souris pour ouvrir les portes. Pesez sur M pour afficher/masquer la carte.

Pour quitter le programme, pesez sur la touche esc.

Installation

  • Cloner le répertoire dans un dossier de votre choix.
git@github.com:ShroomySquid/Cub3D.git
  • Faites la commande "make" dans le dossier afin de compiler le program.

  • NOTE: L'installation va également installer la librarie MLX de codam. Ce programme ne peut rouler que sur MacOs.

About

Cube3D From the 42 cursus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages