daisvke / cub3d

This project is about creating a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective, using the Ray-Casting principles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cub3D

Description

This project is about creating a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective, using the Ray-Casting principles.

Commands

  • Run
make
./cub3D [map]       ex: ./cub3D maps/ok_test_map_labyrinth.cub
  • QWERTY
    Up = W
    Down = S
    Left = A
    Right = D

  • AZERTY
    Up = Z
    Down = S
    Left = Q
    Right = D

  • Quit = ESC

Map

  • The program takes as a first argument a map description file with the .cub extension.
  • The map can be composed of only 7 possible characters:
    0 for an empty space
    1 for a wall
    X for the map exit
    N, S, W, or E for the player’s starting position and gaze direction

This is a simple valid map:

1111111111111
1001000000001
1000011111001
100011E000001
1111111111111
  • The map must be closed/surrounded by walls.

Screenshots

About

This project is about creating a “realistic” 3D graphical representation of the inside of a maze from a first-person perspective, using the Ray-Casting principles.


Languages

Language:C 80.5%Language:Roff 14.6%Language:Makefile 3.3%Language:Shell 1.2%Language:Perl 0.4%