Giter Site home page Giter Site logo

cub3d's Introduction

Video Game cub3D

cub3D is a project that involves creating a "realistic" 3D graphical representation of the interior of a maze from a first-person perspective. This representation is achieved using Ray-Casting principles. The subject of the project can be found here.

๐Ÿ“œ Mandatory Features

  • The program should be capable of setting the floor and ceiling colors with two different colors.
  • It displays the image in a window and follows these rules:
    • Left and right arrow keys allow the user to look left and right in the maze.
    • W, A, S, and D keys allow movement through the maze.
    • Pressing ESC should close the window and exit the program cleanly.
    • Clicking the red cross in the window frame should close the window and exit the program cleanly.
    • The use of miniLibX images is recommended.

โญ Additional Features

  • Wall collisions.
  • A minimap system.
  • Doors that can be opened and closed.
  • Animated sprites.
  • Rotating the viewpoint with the mouse.

๐Ÿ“ Map Analysis

  • The program takes a scene description file with the .cub extension as its first argument.
  • The map should consist only of 6 possible characters: 0 for an empty space, 1 for a wall, and N, S, E, or W for the player's starting position and orientation.
  • The map should be enclosed/surrounded by walls; otherwise, the program should return an error.
  • Each element (except the map) has a type identifier (composed of one or two characters), followed by specific information for each object in a strict order.

โ˜‘๏ธ Project Submission Instructions

  • All files must be included in the submission.
  • The Makefile must contain the commands: all, clean, fclean, re, bonus.
  • External functions such as open, close, read, write, printf, malloc, free, perror, strerror, exit, all math library functions (-lm), and all miniLibX library functions are allowed.
  • The use of the Libft library is permitted.
  • The project must be submitted in *.cub format.

cub3d's People

Contributors

angelamcosta avatar mgdiogo avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mgdiogo

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.