Giter Site home page Giter Site logo

julienhouyet / 42-cub3d Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 713 KB

๐ŸŽฎ The aim of this project was to introduce us to Raycasting. We have to reproduce the graphic method of the Wolfenstein 3D game.

Makefile 3.72% C 78.94% Objective-C 17.34%
42 42-cub3d 42born2code 42cursus 42projects 42school cub3d cub3d-42

42-cub3d's Introduction

42-cub3D

42-cub3d

Introduction

The aim of this project was to introduce us to Raycasting. We have to reproduce the graphic method of the Wolfenstein 3D game.

This project is being developed with the minilibx from 42.

At 42 School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.

Developed with loicvitale.

โšก Usage

๐Ÿ”Œ Installation

To install the project, clone this repository :

$ git clone [email protected]:19-cub3d/42-cub3d.git

To compile the game, run this command :

$ make

๐Ÿ“ฆ Commands

After compiling the project, the executable file with the name so_long will be created, to run the game call the executable passing the map as an argument:

Example:

$ ./cub3D assets/maps/map.cub
$ ./cub3D assets/maps/map2.cub

To compile the project, run :

$ make

To re-compile the project :

$ make re

To wipes all object files :

$ make clean

To delete the project and all object files

$ make fclean

๐Ÿ““ More

You can create your own map.

Your map must be a .cub file.

It must be surrounded by 1 (wall).

The map must be composed of just these 6 characters: 0 for empty spaces 1 for walls, and N, S, E or W, which represent the player's starting position and orientation.

Example :

NO ./assets/wall1.xpm
SO ./assets/wall2.xpm
WE ./assets/wall3.xpm
EA ./assets/wall4.xpm

C 124,159,12
F 255,255,203

		1111111111111111111111111
		1000000000110000000000001
		1011000001110000000000001
		1001000000000000000000001
111111111011000001110000000000001
100000000011000001110111100011111
11110111111111011100000010001
11110111111111011101010010001
11000000110101011100000010001
10000000000000001100000010001
10000000000000001101010010001
11000001110101011111011110N0111
11110111 1110101 101111010001
11111111 1111111 111111111111

๐Ÿ“„ Resources

Minilibx Docs

๐Ÿ“ท Gallery

42-cub3d's People

Contributors

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