The Godot SDK can be downloaded directly from the Godot Asset Library.
By default the example project is configured to connect to Enjin's hosted example server (hostname: enjinrun.demo.enjin.io), however, if you wish to host your own server there are a couple options available to you:
Before we can run the example game you must add the PlatformServer script as an auto-load for your project.
Alternatively you can clone the Godot SDK repository and import it as a project in Godot.
To run the demo open and run the <inline-code>res://addons/enjin/example/scenes/Game.tscn<inline-code> scene. This will start the demo, creating a working directory in the root of your project. You will find a <inline-code>config<inline-code> folder that contains a <inline-code>client.cfg<inline-code> and <inline-code>server.cfg<inline-code>. Before you can run the game you will need to create a project on the Enjin Platform (Kovan) and create four assets for the items in the demo.
You will need to do this four times for the following assets: shard, crown, key, and health upgrade.
Next we need to configure the server.cfg with the required details. You will need the id of the identity linked to your wallet, the id and secret of the project you created, and the ids of the assets you created.
To get the id and secret of the project you created you can go here and execute the following query:
query {
EnjinUser {
apps {
id
name
secret
}
}
}
The following query can be used to get the id of the developer identity associated with your project:
query {
EnjinUser {
identities {
id
appId
wallet {
ethAddress
}
}
}
}
You can find the IDs of the assets you created by going to the assets tab of your project. The IDs are under the item id column.
Congratulations! You have now successfully created an project for the example and should now be able to run and play the example game.