Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Latest commit

 

History

History
89 lines (67 loc) · 3.16 KB

README.md

File metadata and controls

89 lines (67 loc) · 3.16 KB

cub3D

cover

Raycasting project (21-school / Ecole 42)

How it looks:

gameplay

Setup and usage

git clone https://github.com/kukinpower/cub3D.git
cd cub3D/cub3D
make
./cub3D map.cub

Controls

W A S D					move
←					turn left
→					turn right

Configuration file map.cub

Config file called `map.cub`

R 					resolution
C					ceiling rgb color
F					floor rgb color
NO SO WE EA				paths to textures
S					path to sprite
					empty lines

valid map is surrounded by walls (1) and can contain these characters
1					wall
0					player can move here
2					sprite/item
N S E W					player position and view direction
space					empty space (player can't see them)

map can't be splitted by empty lines

Example of a valid config file: valid configuration file

🕵🏽‍♀️ Research

Core

I built the graphics engine using this guide: Lode's Computer Graphics Tutorial

And peer2peer communication

Maths

Graphics

Generate BMP

Others (not used in final project)

Texture credits

Author

Roman Kukin

developer
school 21 (Ecole 42) student

linkedin github twitter