A Raytraced Minecraft Classic 0.0.30a port to C
Note: if you would like to build the vanilla version, remove -DMINECRAFTC_MODS=1
from the cmake command
git
cmake
git clone --recursive https://github.com/johnpayne-dev/MinecraftC.git
cd MinecraftC
mkdir Build
cd Build
cmake -DMINECRAFTC_MODS=1 -G"Visual Studio 17" .. # replace "Visual Studio 17" with your version
MinecraftC.sln
in your directory that you can open with Visual Studio and buildgit clone --recursive https://github.com/johnpayne-dev/MinecraftC.git
cd MinecraftC
mkdir Build && cd Build
cmake -DMINECRAFTC_MODS -GXcode ..
You should now have MinecraftC.xcodeproj
in your directory that you open with Xcode and build
(optional) If you would like it in a .app format, you can run this command to convert your executable:
python3 Scripts/MacOS-App.py <path-to-executable> [developer-id]
Providing the developer id will sign the .app, which you can find by running security find-identity
sudo apt-get update
sudo apt-get install libsdl2-dev
git clone --recursive https://github.com/johnpayne-dev/MinecraftC.git
cd MinecraftC
mkdir Build && cd Build
cmake -DMINECRAFTC_MODS=1 ..
make
If you're creating a mod and want to change or add any .png
or .ogg
resouces, then run this script to update the resource headers:
python3 Scripts/EmbedResources.py
It will recursively go through all .png
and .ogg
files in Resources/
, and convert them to .h