Giter Site home page Giter Site logo

cosmic3d / cub3d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apresas-97/cub3d

0.0 0.0 0.0 939 KB

A recreation of the Wolfenstein 3D videogame using Raycasting

License: MIT License

Shell 0.45% Perl 0.17% C 83.29% Objective-C 7.62% Makefile 2.90% Roff 5.56%

cub3d's Introduction

CUB3D

The supreme raycaster

license last-commit repo-top-language repo-language-count

Developed by ๐Ÿ˜ผโ€‹apresas-97 and ๐ŸŒšโ€‹cosmic3d with the software and tools below.

GNU%20Bash C 42 MLX Makefile


๐Ÿ”— Quick Links


๐Ÿ“ Overview

CUB3D is a graphics project from the 42 campus. The goal was to create a 3D environment using a technique called Raycasting and the MinilibX library from the C programming language.


๐Ÿ“ฆ Features

  • Raycasting technique used to draw walls
  • Player and camera movement on X and Y axes
  • Wall colisions
  • Wall textures
  • Animated sprites and interactive doors

๐Ÿš€ Getting Started

Requirements

Ensure you have the following dependencies installed on your system:

  • Requirements for MacOs

    • clang
    • make
    • This native version no longer uses X.org, XQuartez or X11 but uses Mac OSX's Cocoa (AppKit) and modern OpenGL features.
  • Requirements for Linux

    • MinilibX only support TrueColor visual type (8,15,16,24 or 32 bits depth)
    • gcc
    • make
    • X11 include files (package xorg)
    • XShm extension must be present (package libxext-dev)
    • Utility functions from BSD systems - development files (package libbsd-dev)
    • e.g. sudo apt-get install gcc make xorg libxext-dev libbsd-dev (Debian/Ubuntu)

โš™๏ธ Installation

  1. Clone the cub3D repository:
git clone https://github.com/apresas-97/cub3D.git
  1. Change to the project directory:
cd cub3D
  1. Compile the project:
make

๐Ÿค– Running cub3D

Use the following command to run cub3D:

./cub3D <map>

Where <map> is a file with the .cub extension


๐ŸŽฎ Controls

  • WASD for moving the player
  • โฌ…๏ธโžก๏ธ or ๐Ÿ–ฑ๏ธ and left click for moving the camera
  • E for opening doors
  • ESC for closing the game

๐Ÿ“น Game footage

bonus_albertdreams.mov
bonus_spelunky.mov

๐Ÿ›  Project Roadmap

  • โ–บ Raycasting technique used to draw walls
  • โ–บ Camera and player movement
  • โ–บ Textures are correctly drawn on the walls
  • โ–บ Better map parser
  • โ–บ Animated sprites and doors added
  • โ–บ Some custom maps added
  • โ–บ Multiplayer

๐Ÿค Contributing

Contributions are welcome! Here are several ways you can contribute:

Contributing Guidelines
  1. Fork the Repository: Start by forking the project repository to your GitHub account.
  2. Clone Locally: Clone the forked repository to your local machine using a Git client.
    git clone https://github.com/apresas-97/cub3D.git
  3. Create a New Branch: Always work on a new branch, giving it a descriptive name.
    git checkout -b new-feature-x
  4. Make Your Changes: Develop and test your changes locally.
  5. Commit Your Changes: Commit with a clear message describing your updates.
    git commit -m 'Implemented new feature x.'
  6. Push to GitHub: Push the changes to your forked repository.
    git push origin new-feature-x
  7. Submit a Pull Request: Create a PR against the original project repository. Clearly describe the changes and their motivations.

Once your PR is reviewed and approved, it will be merged into the main branch.


๐Ÿ“„ License

This project is protected under the MIT License. For more details, refer to the LICENSE file.


Return


cub3d's People

Contributors

apresas-97 avatar cosmic3d 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.