Skip to content
/ cub3d Public

This project is inspired by the world-famous eponymous 90's 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.

License

Notifications You must be signed in to change notification settings

amalliar/cub3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Controls

W - move forward
S - move backward
A - move left
D - move right
E - use
- rotate up
- rotate down
- rotate left
- rotate right

CTRL - crouch
SPACE - jump
1 - weapon slot 1
2 - weapon slot 2
3 - weapon slot 3
4 - weapon slot 4
LMB - fire weapon

F13 - take a screen shot
ESC - exit

Prerequisites

This project consists of 3 main branches:

  • master - mandatory part for macOS
  • bonus - bonus part for macOS (needs sdl2 to be installed)
  • linux - bonus part for Linux (needs sdl2 to be installed)

How to run

$> make <branch_name>
$> ./cub3D ./res/maps/wolf3d_e1m01.cub

Implemented bonuses

  • wall collisions
  • a skybox
  • floor and ceiling textures
  • a HUD
  • ability to look up and down
  • ability to jump and crouch
  • a distance related shadow effect
  • a life bar
  • more items in the maze
  • object collisions
  • earning points by picking up objects
  • doors which can open and close
  • secret doors
  • animations of a gun shot and animated sprite
  • several levels
  • sounds and music
  • rotate the point of view with the mouse
  • weapons and bad guys to fight!

About

This project is inspired by the world-famous eponymous 90's 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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published