Skip to content

Unacoli/cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cub3D

This project is inspired by the world-famous Wolfenstein 3D 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.
This project has been validated with a score of 110/100.
⚠️ ONLY WORKING ON LINUX ⚠️

Original assets

north east west south

Usage

The game has two versions.

  • Vanilla version
    • Compile with make
    • Execute ./cub3D with a .cub map as an argument :
      ./cub3D maps/normal_map.cub
      ./cub3D maps/default_map.cub

cub3d normal normalcub3d

  • Fancy version
    • Compile with make bonus
    • Execute ./cub3D_bonus with a .cub map as an argument :
      ./cub3D maps/normal_map.cub
      ./cub3D maps/default_map.cub

cub3d bonus

How to play

  • Use W, A, S, D to move
  • Use Shift to sprint
  • Use M to show map (fancy version)

Collision is handle only in fancy version. You can quit the game by pressing the ESC key or clicking the red cross !