Skip to content

jeffbaumes/5d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5d

An experimental voxel game where you can move in two extra spatial dimensions.

Technologies

  • C++
  • Vulkan

Controls

  • WASD to move around, space to jump, left/right click to build/break
  • Hold shift while walking to walk in U/V coordinates instead of X/Z. Each block will scroll in the extra two dimensions
  • Press V to toggle your view between X/Z and U/V coordinates

Development

To clone:

git clone git@github.com:jeffbaumes/5d.git --recurse-submodules

If you already pulled but forgot to add --recuse-submodules pull the submodules with:

git submodule update --init

Set up your development environment by following the instructions in the Vulkan tutorial. You will also need the dependencies for GameNetworkingSockets.

To build:

mkdir build
cd build
ccmake ..    # Press 'c', set VULKAN_SDK_PATH appropriately, then press 'g' to generate
make -j4     # Or run whatever other build system you set up

On Mac if you get a CMake error: Could NOT find OpenSSL, you can try something like the following (fill in your own homebrew path for your openssl version):

ccmake .. -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl\@1.1/1.1.1g

To run, first set your Vulkan path:

export VULKAN_SDK_PATH=Your Vulkan SDK path (include up to vulkan/[architecture])

Then for Mac:

export LD_LIBRARY_PATH=$VULKAN_SDK_PATH/lib
export VK_LAYER_PATH=$VULKAN_SDK_PATH/share/vulkan/explicit_layer.d
export VK_ICD_FILENAMES=$VULKAN_SDK_PATH/share/vulkan/icd.d/MoltenVK_icd.json

For Linux set these instead:

export LD_LIBRARY_PATH=$VULKAN_SDK_PATH/lib
export VK_LAYER_PATH=$VULKAN_SDK_PATH/etc/vulkan/explicit_layer.d

Finally, from the build/ directory:

src/5d

To conform to the coding style, set your vscode setting:

C_Cpp: Clang_format_fallback Style

to

{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0 }

Until someone finishes clang-format dangling parentheses we will stick with long lines.

About

5d voxel game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published