A multiplayer WebGL voxel sandbox game written in C++, inspired by the classic version of Minecraft.
You can play the game from the web — cubic.vldr.org
Alternatively, you can play the game by downloading the precompiled binaries for your platform:
-
Download and unzip all files, then run the Cubic.exe executable.
-
Download and unzip all files, then in a terminal, run:
sudo apt updatesudo apt install libgl-dev libglew-dev libsdl2-devchmod +x cubic./cubic
-
Download and unzip all files, then:
- Run the Cubic.app application from Finder.
- Go to Apple menu > System Settings > Privacy & Security and allow Cubic.app to run.
-
Download and unzip all files, then install the Cubic.apk package:
W and S to move forward and backward.
A and D to move left and right.
V toggles fly-mode.
E or B opens the build menu.
- Open a terminal.
- Install Emscripten and Make.
- Navigate to the
build/web/directory. - Run
make -j
After the build process completes, the output HTML, JS, and WASM files will be located in the build/web/output/ directory.
Note: The included compiled SDL2 and GLEW dynamic link binaries are built for x86_64 machines only.
- Install Visual Studio.
- Open
build/windows/Cubic.slnin Visual Studio. - Optionally, if needed, upgrade the project's platform toolset to your Visual Studio's available platform toolset.
- Select either Debug or Release from the build dropdown menu (top-center).
- Press F7 or click Build > Build Solution to build the project.
After the build process completes, the output executable will be located either in build/windows/x64/Debug or
build/windows/x64/Release depending if you've compiled a debug or release build.
- On Ubuntu/Debian, run
sudo apt install clang build-essential
- On Ubuntu/Debian, run
sudo apt install libgl-dev libglew-dev libsdl2-dev
- Navigate to the
build/linux/directory. - Run
make -j
After the build process completes, the output executable will be located in the build/linux/output/ directory.
Note: The included compiled SDL2 and GLEW dynamic link binaries are built for x86_64 and arm64 machines only.
- Install Xcode Command Line Tools.
- Open Terminal.
- Navigate to the
build/macos/directory. - Run
make -j
After the build process completes, the output executable will be located in the build/macos/output/ directory.
- Install Android Studio.
- Open the
build/android/directory in Android Studio. - Click Build > Generate Signed Bundle / APK from the top menu.
- Select APK and press Next.
- For the Key store path entry, select the
debug.keystorefile located in thebuild/android/directory. - For the Key store password entry, enter
android. - For the Key alias entry, enter
androiddebugkey. - For the Key password entry, enter
androidand press Next. - Select either
releaseordebugas the variant and press Create.
After the build process completes, the output executable will be located either in build/android/app/debug/ or
build/android/app/release/ depending if you've selected a debug or release variant.
