Giter Site home page Giter Site logo

cub3d_42's Introduction

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

cub3d_42's People

Contributors

jakobklocker avatar immaleng avatar

Stargazers

Mr.Salih avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.