This is the plugin that handles the games that Year4000
runs.
There is a submodule within this project so its recommended to clone the repo with the following command.
With this in mind you should also have SSH keys linked with your GitHub account.
git clone --recursive git@github.com:Year4000/MapNodes.git
The application is broken into modules that are seperated into their own tasks; bridge
, core
, and sponge
.
The bridge is the underlying bindings from the platform in this case java
to the game engine javascript
.
We are using the V8 engine as the JavaScript engine.
The core is the main game engine, where most of of the game engine is in JavaScript. While the other languages are shared code for other modules.
This is the implementation of the game engine bindings for the Sponge platform.
To compile the project we use Gradle and this project contains gradlew
.
You can compile the entire project with a single command.
./gradlew
To build the Docker image all you need to do is run the command with docker-compose
.
Docker compose will build the image with the needed tags and environment vars.
You must also have the compiled version of MapNodes
before you can build the Docker image.
docker-compose build
We have included a git submodule for the maps in the directory run/maps
.
You do not have to keep this directory up to date unless you are testing maps.
Though you do have to have the submodule inited and updated before you run the development Docker image.
git submodule init && git submodule update
We use Docker to test the MapNodes plugin.
We have added a gradle task that will build the project and run the docker-compose
image.
./gradlew runDocker
MapNodes is copyright © 2019 Year4000