43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
# Run in windows with compiled executable file:
|
|
|
|
[EXE for windows](https://drive.google.com/file/d/1lkFc5nyYOs0Yyu1wmOoAAwEp4r9jO1tE/view?usp=sharing)<br>
|
|
[MinGW libraries (include & lib) + glew32.dll](https://drive.google.com/file/d/1k1Hnbz2Uhr4-03upt2yHxKws396HQDra/view?usp=sharing)
|
|
|
|
# Controls:
|
|
- **Tab** - toggle camera control
|
|
- **W,A,S,D** - movement
|
|
- **Space** - jump
|
|
- **LMB** - remove block
|
|
- **RMB** - place block
|
|
- **F** - toggle flight mode
|
|
- **N** - noclip mode
|
|
- **Esc** - exit
|
|
|
|
#### Build with CMake
|
|
```sh
|
|
git clone --recursive https://github.com/MihailRis/VoxelEngine-Cpp.git
|
|
cd VoxelEngine-Cpp
|
|
mkdir build
|
|
cd build
|
|
cmake ../
|
|
cmake --build .
|
|
```
|
|
|
|
## Instal libs:
|
|
#### Debian-based distro:
|
|
`$ sudo apt install libglfw3-dev libglfw3 libglew-dev libglm-dev libpng-dev libopenal-dev`
|
|
|
|
#### RHEL-based distro:
|
|
`$ sudo dnf install glfw-devel glfw glew-devel glm-devel libpng-devel openal-devel`
|
|
|
|
#### 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`
|
|
|
|
# Note for MinGW compiling:
|
|
To fix problem with `#include <mingw.thread.h>` get headers `mingw.thread.h` and `mingw.invoke.h` from:
|
|
https://github.com/meganz/mingw-std-threads
|