Skip to content

MatLBS/Cub3D_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D_42

Introduction

Cub3d is a graphical project from 42 School that involves creating a simple 3D game engine using raycasting. It is inspired by early 90s games like Wolfenstein 3D and aims to render a first-person 3D view based on a 2D map. The project covers several topics such as graphics rendering, handling input, and managing game mechanics like player movement and collision detection. It is designed to give students experience with low-level graphics programming and event-driven game loops.

My goal for this project was to create a game inspired by the world of The Walking Dead. For this purpose, the textures of the wall are a bit gory as for the zombies. You can also kill the zombies with a knife and I advise you to wear earphones if you don't want everybody around you to ear the opening song of The Walking Dead.

Usage

This project is compatible on Linux.

1.Clone the repository

git clone https://github.com/MatLBS/Cub3D_42.git
cd Cub3D_42

2.Compile and lauch the project.

make
./cub3D maps/map_you_want.cub

The map file must be in .cub format, as indicated in the cub3d specifications.

Controls

W, A, S, D to move the player.

⬅️, ➡️ to move the camera of the player.

Press E near a door to open/close it.

Press Ctrl once to be able to move the camera with the mouse.

Press again Ctrl once to disable this feature.

Finaly, keep pressing on Left Click to take out your knife and kill the zombies 🧟

Some Pictures of the project

Screenshot from 2024-11-14 10-17-36

Screenshot from 2024-11-14 10-17-57

Screenshot from 2024-11-14 10-23-47

Screenshot from 2024-11-14 10-25-25

Contributing

Pull requests are welcome !

For major changes, please open an issue first to discuss what you would like to change.

Enjoy the code 😁

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published