GithubHelp home page GithubHelp logo

42yerevanprojects / cub3d Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 134 KB

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. The goal will be to make a dynamic view inside a maze.

Makefile 1.41% C 72.00% Objective-C 26.59%

cub3d's Introduction

42 Cub3D

This project’s objectives are similar to all this first year’s objectives: Rigor, use of C, use of basic algorithms, information research etc. As a graphic design project, cub3D will enable you to improve your skills in these areas: windows, colors, events, fill shapes, etc. To conclude cub3D is a remarkable playground to explore the playful practical applications of mathematics without having to understand the specifics. With the help of the numerous documents available on the internet, you will use mathematics as a tool to create elegant and efficient algorithms.

⚠️ Warning: Don't copy/paste code you don't understand: it's bad for you, and for the school.

Description

The goal of this project was to create a basic first-person maze like the old Wolfenstein 3D, using raycasting.

Features

Mandatory part:

  • A custom map can be create using a .cub file including :
    • Different wall textures that vary depending on which side the wall is facing (North, South, East, West).
    • Different floor and ceiling colors using RGB.
    • Doors and enemies position (X, Y).
    • The map file itself. (1 = wall, 0 = floor).
    • A player facing a direction (N, S, E, W)
  • A 3D rendering of a map file.

Bonus part:

  • Wall collisions.
  • A minimap system.
  • Doors which can open and close.
  • Animated sprite (gun and enemies).
  • Rotate the point of view with the mouse.
  • Custom transparency.

Note: Our code does not contain the bonus part!

Commands

Key must be change between mac or linux in includes/cub3d.h or includes/cub3d_bonus.h

Key Command
<-- or --> Look left and right
W, A, S, D Move
ESC Quit

Resources

cub3d's People

Contributors

sargis-hovsepyan avatar aabajyan 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.