
cub3D: a raycaster in C
Every frame casts one ray per screen column and draws a textured wall slice whose height depends on the distance.
The map comes from a .cub file that sets the four wall textures, the floor and ceiling colours, and a grid of walls with the player's start. The demo below runs the same algorithm, ported to TypeScript, on the repo's own maps.
Scope & impact
Click the view, then W A S D to move, ← → to turn, M for the minimap, Esc to leave.