Skip to content

This project is inspired by the world-famous eponymous 90's game Wolf3D, which was the first FPS ever. The goal will be to make a dynamic view inside a maze.

Notifications You must be signed in to change notification settings

SavchenkoDV/Cub3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cub3D

This project is inspired by the world-famous eponymous 90's game Wolf3D, which was the first FPS ever. The goal will be to make a dynamic view inside a maze.

Screen Shot 2021-06-10 at 6 20 20 PM

Compiling

Run make and you're set. Runs on Mac OS X and Linux (with XServer).

Launch and control

Launch: ./cub3D map.cub
Control: WSAD and the keypad's arrows

Map file format

The map must be composed of only 7 possible characters: 0 for an empty space, 1 for a wall, 2 for a sprite,
and N, S, E or W for the player’s start position and spawning orientation.

Header of the map

Range of windows: identifier: R width hight

  • any range

North texture: identifier: NO - path to the north texure
South texture: identifier: SO - path to the south texure
West texture: identifier: WE - path to the west texure
East texture: identifier: EA - path to the east texure
Sprite texture: identifier: S - path to the sprite texure

  • format of textures and sprites must be .xpm

Floor color: identifier: F
Ceilling color: identifier: C

  • R,G,B colors in range [0,255]: 0, 255, 255

This is a simple valid map:

Снимок экрана 2021-06-09 в 06 27 53

  • A liquid card is considered to be surrounded by walls on all sides. And has a player.
  • Map file it's a simple text file, which needs to end .cub

About

This project is inspired by the world-famous eponymous 90's game Wolf3D, which was the first FPS ever. The goal will be to make a dynamic view inside a maze.

Resources

Stars

Watchers

Forks