Cub3D is a 3D world renderer inspired by Wolfenstein 3D, built using raycasting, textures, player movement, and the MinilibX graphics library.
-
Raycasting engine
-
Wall projection based on DDA (Digital Differential Analysis)
-
Column-by-column rendering
-
Perpendicular distance correction
-
-
Textured walls
-
Correct sampling using hit position
-
Horizontal/vertical texture flipping for accurate orientation
-
-
Smooth player movement
-
Forward / backward
-
Strafing left / right
-
Rotation with camera plane
-
-
Collision detection
- Prevents walking through walls
-
Map parsing
-
.cub file support
-
Textures & colors
-
Map validation
-
-
MiniLibX integration
-
Window handling
-
Pixel drawing
-
Keyboard input
-
| Key | Action |
|---|---|
| W / S | Move forward/back |
| A / D | Strafe left/right |
| ← / → | Rotate camera |
| ESC | Exit |