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.
- You may need to install the latest Visual C++ redistributable for your platform.
-
Download and unzip all files, then:
- Move Cubic.app to the Applications folder.
- Run the Cubic.app application.
- Go to Apple menu > System Settings > Privacy & Security and allow Cubic.app to run.
-
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 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.
- Install Visual Studio with the "Desktop development with C++" component.
- Open
build/windows/Cubic.slnin Visual Studio. - If needed, upgrade the project's platform toolset to your Visual Studio's available platform toolset.
- Select either x64 or ARM64 from the build architecture dropdown menu (top-center).
- Select either Debug or Release from the build type 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 for x64 debug/release builds, and build/windows/ARM64/Debug or build/windows/ARM64/Release for ARM64 debug/release builds.
- 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.
- 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.
