Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.82 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.82 KB

42_cub3d

Description

This project consists of creating a graphic engine (ray casting) using a minimal graphic library, like it is mlx. We are asked to parse the map information from a .cub file and use it to draw a 3d maze on the screen using raycasting principles. This project is inspired by the game Wolfenstein 3D.

cub3d_demo.mp4

Prerequisites

  • MacOS
  • Mlx library

Usage

  1. make
  2. Run ./cub3d ./maps/map4.cub on a shell and leave it running

Controls

Key Action
ESC exit game
W move forward
A move left
S move backward
D move right
turn camera to right
turn camera to left

Lessons

  • Ray casting
  • Mlx library
  • Key hooks
  • Parsing

Resources