How it looks:
git clone https://github.com/kukinpower/cub3D.git
cd cub3D/cub3D
make
./cub3D map.cub
W A S D move
← turn left
→ turn right
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:
I built the graphics engine using this guide: Lode's Computer Graphics Tutorial
And peer2peer communication
- Art: Wassily Kandinsky
- Lego: Photo by Omar Flores on Unsplash
- Pink bricks: Photo by Paweł Czerwiński on Unsplash
- Binary: me
- Coin: https://creazilla.com/nodes/60815-golden-dollar-coin-clipart
- Crate: MostafaElTurkey36
developer
school 21 (Ecole 42) student