- Created Compile.md with detailed instructions for building the project using Visual Studio and CMake. - Added ClientSources.cmake to define the source files for the Minecraft Client. - Implemented CopyAssets.cmake to handle asset copying during the build process. - Introduced WorldSources.cmake to list the source files for Minecraft world functionalities.
1.1 KiB
1.1 KiB
Compile Instructions
Visual Studio (.sln)
- Open
MinecraftConsoles.slnin Visual Studio 2012. - Set
Minecraft.Clientas the Startup Project. - Select configuration:
Debug(recommended), orRelease
- Select platform:
Windows64. - Build and run:
Build > Build Solution(orCtrl+Shift+B)- Start debugging with
F5.
CMake (Windows x64)
Configure (use your VS Community instance explicitly):
cmake -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_GENERATOR_INSTANCE="C:/Program Files/Microsoft Visual Studio/2022/Community"
Build Debug:
cmake --build build --config Debug --target MinecraftClient
Build Release:
cmake --build build --config Release --target MinecraftClient
Run executable:
cd .\build\Debug
.\MinecraftClient.exe
Notes:
- The CMake build is Windows-only and x64-only.
- Post-build asset copy is automatic for
MinecraftClientin CMake (Debug and Release variants). - The game relies on relative paths (for example
Common\Media\...), so launching from the output directory is required.