Skip to content

Alexart1995/cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D

This project is inspired by the world-famous eponymous "Wolfenstein 3D" (1992) video game, which was the first FPS ever. It will enable you to explore ray-casting. Your goal will be to make a dynamic view inside a maze, in which you'll have to find your way

Setup and usage

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

Control

W move forward
S move back
A move left
D move right
- rotate left
- rotate right
mouse rotation

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

Implemented bonuses

  • Wall collisions.
  • A minimap system.
  • Doors which can open and close.
  • Rotate the point of view with the mouse.
  • animated sprite.