Added custom move behaviour to creeps
This commit is contained in:
37
README.md
37
README.md
@@ -1,5 +1,34 @@
|
||||
# screeps
|
||||
My source code for the MMO-programming game: Screeps.
|
||||
# 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.
|
||||
|
||||
# Status
|
||||
As a way to learn c++ programming I used the screepsxx repo for controlling the screeps with c++.
|
||||
|
||||
# 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 .
|
||||
```
|
||||
Reference in New Issue
Block a user