Skip to content

cub3D ๐ŸŽฎ๐ŸŒŒ โ€“ A 42 School project recreating core mechanics of the first FPS game using ray-casting. **Core Features:** - Ray-casting engine for 3D perspective - Dynamic maze navigation with WASD controls - Texture mapping for walls/sprites - Map parsing from .cub configuration files **Technical Highlights:** โšก Optimized rendering pipeline | ๐Ÿ–ผ๏ธ M

Notifications You must be signed in to change notification settings

SouleEater99/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ•น๏ธ cub3D - Raycast Maze Adventure

A 42 School project recreating Wolfenstein 3D-style graphics using ray-casting techniques

License: MIT
42 Norm
Success Rate

๐Ÿš€ Features

  • Ray-casting Engine:

    • 3D projection from 2D maps
    • Wall collision detection
    • Floor/ceiling rendering
  • Game Controls:

    • WASD movement
    • Mouse/camera rotation
    • Minimap toggle
  • Map System:

    • .cub file parsing
    • Custom texture support
    • Color configuration

๐Ÿ“Š Project Stats

  • Team Size: 2 developers
  • Development Time: ~280 hours
  • Success Rate: 66.7% (832 completions)
  • Key Challenges:
    • 3D math implementation
    • Texture mapping optimization
    • Edge case handling (1.4% leak rate)

๐Ÿ› ๏ธ Installation

git clone https://github.com/<your-username>/cub3D.git  
cd cub3D  
make  

Requires MiniLibX (included)

๐ŸŽฎ Usage

./cub3D maps/example.cub  

Gameplay Demo โ† Add gameplay screenshot/GIF

๐ŸŽฎ Gameplay

Screenshot

Maze View
Maze View
Maze View

Demo (GIF)

Gameplay Demo

๐Ÿ“š Technical Deep Dive

  • Ray-casting Math:
void cast_rays(t_game *game) {  
  // Ray direction calculation  
  // Wall distance projection  
  // Texture coordinate mapping  
}

Performance: 60 FPS target

Memory: Zero leaks enforced

๐ŸŒŸ Learning Outcomes

  • Graphics Programming: Learned low-level rendering techniques

  • Team Collaboration: Git workflow and task division

  • Optimization: Balanced accuracy vs performance

About

cub3D ๐ŸŽฎ๐ŸŒŒ โ€“ A 42 School project recreating core mechanics of the first FPS game using ray-casting. **Core Features:** - Ray-casting engine for 3D perspective - Dynamic maze navigation with WASD controls - Texture mapping for walls/sprites - Map parsing from .cub configuration files **Technical Highlights:** โšก Optimized rendering pipeline | ๐Ÿ–ผ๏ธ M

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published