cub3D
3D worlds, drawn with rays.

A raycasting 3D maze game inspired by Wolfenstein 3D, built from scratch in C with MiniLibX: textured walls, colored floors and ceilings, real-time movement.
The problem
Draw a believable 3D view with no 3D engine at all, only a 2D map and math.
How I built it
- 01Parses a .cub map file: wall textures per direction (north, south, east, west), floor and ceiling colors, and the grid with the player's start.
- 02Casts one ray per screen column to find the nearest wall and its distance, then draws a textured vertical slice.
- 03WASD to move, arrow keys to look around, ESC to quit cleanly.
Key takeaways
- — The math behind early 3D games: vectors, angles and grid traversal.
- — Rendering pixel by pixel within a frame budget.
cub3D was built as part of the software engineering curriculum at 1337 Coding School (42 Network, UM6P), where every project is built from scratch and reviewed by peers.