Introduction to Godot SDK

Downloading The SDK

The Godot SDK can be downloaded directly from the Godot Asset Library.

Setup and Run SDK Example

By default the example project is configured to connect to Enjin's hosted example server (hostname:, however, if you wish to host your own server there are a couple options available to you:

  1. Running the server in Godot with an auto-load script (see below)
  2. Cloning the Godot SDK repository (see below)
  3. Running the Java SDK platformer server example

Configuring The Server Auto-Load Script

Before we can run the example game you must add the PlatformServer script as an auto-load for your project.

  1. Open the project settings: <inline-code>Project > Project Settings.<inline-code>
  2. Switch to the <inline-code>AutoLoad<inline-code> tab.
  3. Add <inline-code>res://addons/enjin/example/scripts/server/<inline-code> to the your auto-loads.
  4. Enable the <inline-code>PlatformServer<inline-code> singleton.

Cloning The Godot SDK

Alternatively you can clone the Godot SDK repository and import it as a project in Godot.

Creating A Project For The Example

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.

Create Example Project

  1. Register if you haven't already.
  2. Select <inline-code>Create Project<inline-code> from the <inline-code>Platform<inline-code> page.
  3. Give the project a name and description. The image is optional.
  4. Click <inline-code>Save Changes<inline-code> to create the project.

Create Example Assets

You will need to do this four times for the following assets: shard, crown, key, and health upgrade.

  1. Open your project by selecting it from the <inline-code>Platform<inline-code> page.
  2. Go to Assets and click <inline-code>Create Asset<inline-code>
  3. Set the name, total supply, value per asset, enj returned on melt, and the starting supply. All other settings can be left as the default.
  4. Click <inline-code>Create Asset<inline-code>

Configuring The Example

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.

Getting The Project ID And Secret

To get the id and secret of the project you created you can go here and execute the following query:

query {
 EnjinUser {
   apps {

Getting The Developer Identity ID

The following query can be used to get the id of the developer identity associated with your project:

query {
 EnjinUser {
   identities {
     wallet {

Getting The Asset IDs

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.

On This Page