summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 564e550fc9aec2d00ca69042f9a3f16185837e1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# AltCraft [![Build Status](https://travis-ci.org/LaG1924/AltCraft.svg?branch=master)](https://travis-ci.org/LaG1924/AltCraft)
AltCraft is implementation of [Minecraft: Java Edition](https://minecraft.net) in C++.

This is aimed at being fast, being free and being easy expandable.

# Build
1. Install C++ compiler, CMake 3.5, SDL2, SDL2_net, libZLIB.

>Arch: `sudo pacman -S cmake gcc sdl2 sdl2_net`

>Debian: `sudo apt install cmake g++ libsdl2-dev libsdl2-net-dev`

>Fedora: `sudo dnf install cmake gcc-c++ SDL2-devel SDL2_net-devel mesa-libGL-devel mesa-libGLU-devel zlib-devel`

>Linux: GCC7 and system package manager.

>Windows: Visual Studio 2017 and vcpkg.
2. Generate project-files for your compiler by CMake.
```
    mkdir build && cd build
    cmake ..
```
3. Copy *.minecraft/version/{version}/{version}.jar/assets/* to *AltCraft-root/cwd/*
>You can extract .jar file as .zip archive.

>*/cwd/assets/minecraft/models/block/block.json* must be a valid path.
4. Compile generated files. Content of */cwd/* will be automatically copied to directory with compiled binary.
>Linux: `make` in directory with generated files.

>Windows: Use VS2017 to open .sln file and build project.
5. Enjoy!