Giter VIP home page Giter VIP logo

voxelengine-cpp's Introduction

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).

voxelengine-cpp's People

Contributors

mihailris avatar a-lex-ra avatar clasher113 avatar alexei-zebra avatar mks14stdio avatar c4e10vek avatar igorkorobeynikov avatar koval01 avatar rekvizitt avatar dsdemen avatar quflax avatar istudyatuni avatar drdub avatar v-gulevitc avatar winetgh avatar etocasper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.