Skip to content
karistiPublic

About

A game like Wolfenstein 3D created with ray casting, using a minimal graphics library. 42 Madrid cursus project.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

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

About

A game like Wolfenstein 3D created with ray casting, using a minimal graphics library. 42 Madrid cursus project.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages