Giter Site home page Giter Site logo

cub3d's Introduction

cub3D

The objective of this project is to create a 3D maze game where the player navigates through a maze using keyboard controls. It involves the use of Ray Casting to make the map appear in 3D.

I collaborated on this project with Lara Elkhoury .

Screenshot from 2024-04-25 01-55-49

Key Features

  • Utilize the MiniLibX graphical library for window management, colors, and textures
  • Create a 3D maze environment with textured walls and colorful floor/ceiling
  • Implement keyboard controls (W, A, S, D, left, and right arrows) for movement and arrow keys for view rotation
  • Ensure smooth window management with clean program exit on user actions
  • Parse a scene description file in the .cub format to configure the game environment
  • Validate the map structure and handle errors gracefully
  • Implement wall collisions and a minimap system as bonus features

Knowledge Gained

  • Ray casting for rendering 3D scenes from 2D maps
  • Graphic design principles and techniques
  • Graphical rendering and texture mapping in a 3D environment
  • Event handling and keyboard input processing
  • File parsing and data validation for scene configuration
  • Algorithmic optimization for smooth window management and gameplay
  • Error handling and debugging strategies for robust program execution

Usage

To compile the project, ensure you have MiniLibX installed and use the provided Makefile:

make

Run your program with a map file as a parameter:

./cub3D maps/map1.cub

cub3d's People

Contributors

y2kgunner 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.