50cd7c10ce191bc911ae595a9057034d5858e911
Douwco Hivemind
This is the sourcecode of my hivemind implementation for the MMO-programming game Screeps. This is mainly designed to learn programming with C++. This is possible throught the work done in the screepxx project, which I will and try to expand as well.
Running the project
All commands are run starting from the root directory.
Emsdk setup
Screeps only supports ES5 js syntax which can only be guaranteed by using emsdk 2.0.0.
cd emsdk && \
./emsdk install 2.0.0 && \
./emsdk activate 2.0.0 && \
source ./emsdk_env.sh && \
cd ..
Cmake setup
Create the makefiles using cmake. For more info look at the readme in screepsxx.
mkdir build && \
cd build && \
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=emsdk/upstream/emscripten/cmake/Modules/Platform/ && \
Emscripten.cmake .. && \
Build
To build the project run the following. In the dist folder the "screeps ready" project is copied.
cd build
cmake --build .
Languages
C++
89%
CMake
5.9%
Python
2.8%
JavaScript
2.3%