一个基于光线追踪的 Minecraft Classic 0.0.30a 移植到 C
Note: if you would like to build the vanilla version, remove -DMINECRAFTC_MODS=1 from the cmake command
gitcmakegit 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 versionMinecraftC.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 [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-devgit clone --recursive https://github.com/johnpayne-dev/MinecraftC.git
cd MinecraftC
mkdir Build && cd Build
cmake -DMINECRAFTC_MODS=1 ..
makeIf 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.pyIt will recursively go through all .png and .ogg files in Resources/, and convert them to .h
暂无开放 Issues,或尚未同步最近议题。