Skip to content

JakobKlocker/cub3d_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

Cub3D is a 42-school project inspired by the famous game Wolfenstein 3D, developed using the C programming language and the MinilibX library. The goal of this project is to create a simple 3D game engine capable of rendering a maze-like world and implementing basic raycasting techniques to simulate 3D visuals.

Table of Contents

Getting Started

Prerequisites

Before running Cub3D, you need to ensure that you have the following installed on your system:

  • C Compiler (gcc, clang, etc.)
  • Make

Installation

  1. Clone the repository:
git clone https://github.com/jklocker/cub3d_42.git
cd cub3d_42

compile the project with

make

Usage

After successfully compiling the project, you can run Cub3D using the following command:

./cub3D path_to_map.cub

The path_to_map.cub argument is the configuration file for the game, specifying the layout of the world and various options. The map file should adhere to the defined format.

Controls

  • W/A/S/D: Move the player forward, left, backward, or right, respectively.
  • /: Rotate the camera left or right.
  • ESC: Exit the game.

Features

  • 3D Raycasting
  • Textured walls
  • Sprite rendering
  • Map parsing from file
  • Player movement and rotation
  • Configurable settings via .cub files

About

Wolfenstein 3D remake

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published