Skip to content

codastream/42-cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

196 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

This is a project from 42 common core developed with Tonio

Developed skills

Skill Wiki Link
C C Language
Raycasting Raycasting Logic
MinilibX Graphics & Events
Parsing Map Parsing

Requirements

This project aims at creating a 3D graphical representation of a maze using Raycasting principles:

  • Smooth window management (resolution, toggle, minimize)
  • Precise parsing of .cub scene description files
  • Raycasting implementation to render a 3D perspective from a 2D map, with collision detection
  • Texture mapping for North, South, East, and West walls
  • Distinct floor and ceiling colors
  • Keyboard inputs: WASD for movement and arrow keys for rotation
  • Clean exit handling (ESC or window cross) without memory leaks

For our bonus, we revisited the shooting genre by inviting the player to kick a ball

  • Animated sprite (the ball, the cup)
  • Minimap
  • Mouse direction
  • Sound atmosphere, with a different song played depending on events (score, fail, ...)

Screenshot

cub3d_demo

Setup

make
./cub3D maps/map.cub

About

doom-like game based on parsing and raycasting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •