Skip to content

Render a 3d world generated with voxels. Made within the 42 cursus.

Notifications You must be signed in to change notification settings

guilhemSmith/ft_vox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ft_vox

ft_vox is a simple Voxel demo written in C++ using OpenGL made by baudiber and gsmith.

travel

Compilation from sources

On macOs and Linux

  • ./setup.sh to install external dependencies. On Mac it is advised to have brew already installed,
  • mkdir build && cd build, to create the build dir,
  • then cmake .. && make or cmake .. && cmake --build .

When the build is done, the executable file ft_vox and its resources folder should be located in the build folder.
To move them somewhere else on your system, always keep the binary and the resources folder together in the same dir.
example: cp -R ft_vox resources ~/mygamefolder/voxdemo

panorama

Usage

Launch

./ft_vox will launch the demo with a random seed.
The seed used is always printed in the terminal.

You can also give ft_vox a seed that you like
./ft_vox your_seed
example: ./ft_vox 1603917848

controls

On qwerty keyboard:

input effect
left-click delete cube
w move forward
a move backward
s move left
d move right
space move up
ctrl move down
shift sprint
f fullscreen mode
esc quit demo

destruction

About

Render a 3d world generated with voxels. Made within the 42 cursus.

Resources

Stars

Watchers

Forks