Skip to content

Julypie7/Cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUB3D

Cub3D is a second group project in 42 Comon Core. It is a simple 3D game built using C that allows the rendering of a 3D world, using raycasting techniques for creating 3D environments. The game is inspired by classic games like Wolfenstein 3D and utilizes basic game physics for player interaction.

Screenshot from 2025-03-06 16-26-29

Installation

To get started with the Cub3D project, follow these steps to install the necessary dependencies and set up the project on your Linux machine:

1. Clone the Repository

Start by cloning the repository to your local machine:

git clone https://github.com/yourusername/cub3d.git

2. Navigate to the Project Directory

Change to the newly cloned directory:

cd Cub3d

3. Compile the Project

Once the dependencies are installed, use make to compile the project:

make

4. Run the Game

After compiling, you can run the game with a .cub map file:

./cub3d maps/map

Usage

Once the game is running, you can control the player in the 3D environment using the following keyboard controls:

W - Move forward
S - Move backward
A - Strafe left
D - Strafe right
Arrow keys - Rotate the view (look around)
Esc - Exit the game

Screenshot from 2025-03-06 15-59-17

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published