Skip to content

Minecraft-like game engine in C++ with OpenGL

Notifications You must be signed in to change notification settings

wineTGH/VoxelEngine-Cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run with compiled executable file:

Download v0.17

Controls:

  • Esc - pause
  • Tab - open inventory
  • W A S D - movement
  • Space - jump
  • LMB - remove block
  • RMB - place block
  • F - toggle flight mode
  • N - noclip mode
  • F1 - toggle interface
  • F2 - save screenshot
  • F3 - debug mode
  • F5 - reload chunks

Build with CMake

git clone --recursive https://github.com/MihailRis/VoxelEngine-Cpp.git
cd VoxelEngine-Cpp
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .

Install libs:

Debian-based distro:

sudo apt install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev libluajit-5.1-dev

CMake missing LUA_INCLUDE_DIR and LUA_LIBRARIES fix:

sudo ln -s /usr/lib/x86_64-linux-gnu/libluajit-5.1.a /usr/lib/x86_64-linux-gnu/liblua5.1.a
sudo ln -s /usr/include/luajit-2.1 /usr/include/lua

RHEL-based distro:

sudo dnf install glfw-devel glfw glew-devel glm-devel libpng-devel openal-devel

+ install LuaJIT

Arch-based distro:

If you use X11

sudo pacman -S glfw-x11 glew glm libpng openal

If you use Wayland

sudo pacman -S glfw-wayland glew glm libpng openal

+ install LuaJIT

LuaJIT installation:

git clone https://luajit.org/git/luajit.git
cd luajit
make && sudo make install INSTALL_INC=/usr/include/lua

macOS:

brew install glfw3 glew glm libpng lua luajit openal-soft

If homebrew for some reason could not install the necessary packages: lua luajit openal-soft, then download, install and compile them manually (Lua, LuaJIT and OpenAL).

About

Minecraft-like game engine in C++ with OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 80.1%
  • C 16.4%
  • GLSL 2.9%
  • Other 0.6%