Code Monkey home page Code Monkey logo

cub3d's Introduction

CUB3D

Raycasting (3D graphics in C)

In collaboration with jroth

This project is inspired by the world-famous Wolfenstein 3D game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you’ll have to find your way.

Screen Shot 2022-05-25 at 4 50 03 PM

The project uses a small graphics library MLX42 to render the graphics, which inturn uses GLFW.

Camera rotation and movement is also created.The camera can moved using keys W, A, S, and D, for rotation LEFT and RIGHT arrow keys are used.

Installation

  • Run ./setup_mlx.sh to pull the MLX42 submodule from github
  • Install glfw
    • brew install glfw on mac
    • sudo apt install glfw on linux
  • make mlx to compile the MLX42 library
  • make to compile the Cub3D

Usage

  • ./cub3D <path_to_map>
    • e.g ./cub3D map.cub

cub3d's People

Contributors

siriusblond avatar tamlem avatar aj4x-evil 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.