Skip to content

berestv/Cub3D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

Overview

Cub3D is an introduction to the world of 3D programming in C. The project focuses on understanding raycasting, handling 2D and 3D graphics, and working with textures and sprites. The main goal is to create a simple 3D game where the player can navigate a maze.

Features

  • Raycast Engine: Implements a basic raycasting algorithm to render 3D graphics from a 2D map.
  • Texture Mapping: Adds textures to walls for a more realistic appearance.
  • User Interaction: Allows basic movement and interaction within the game world.
  1. Clone the repository:
git clone git@github.com:Joaofcpereira8/Cub3d.git
  1. Navigate to the project directory:
cd cub3D
  1. Compile the project:
make

Usage

Start the shell by running:

./cub3D [map_folder]/[valid_map]

Controls

  • W/A/S/D: Move forward/left/backward/right
  • Arrow Keys: Look left/right
  • ESC: Quit the game

Achievements

Final Note: 105 This project was evaluated and received a perfect score, with a little bonus that was the making of wall collisions.

Acknowledgements

  • Special thanks to my peers who provided guidance and support throughout the development of this project.
  • And a special thanks to my colleague and project partner Bernardo.

About

Cub3D'ing with Joao

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 94.9%
  • Makefile 5.1%