# Setup

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Installation

Copy the `Source code.zip` link from the [GitHub release page](https://github.com/Playgama/bridge-defold/releases) and add it as a dependency in your project settings.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FxHHuRngm9Gx7TMcw3xD0%2FScreenshot%202025-02-26%20at%209.51.47%E2%80%AFAM.png?alt=media&#x26;token=c952fa41-508c-4c1c-afaf-72ab81f0c763" alt=""><figcaption></figcaption></figure>

Then select `Project` → `Fetch Libraries`.

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Config

Download the `playgama-bridge-config.json` file from the [GitHub release page](https://github.com/Playgama/bridge-defold/releases). Import it into the `res/web` folder and add `/res` folder to `Bundle Resources`. In the config file you can set up various identifiers and in-game purchases.

You can see an explanation of the file structure here: [playgama-bridge-config](https://wiki.playgama.com/playgama/sdk/playgama-bridge-config "mention").

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FIKuZ3TM2tCwFzyvAo9Al%2FScreenshot%202025-04-17%20at%203.51.30%E2%80%AFPM.png?alt=media&#x26;token=f0dd4654-c037-4dcc-a08f-4ab2c705d9bf" alt=""><figcaption></figcaption></figure>

### <img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2F9BooaofCI33U9Np5oeif%2FFrame%203%20(1).png?alt=media&#x26;token=0750b56a-a069-4759-bda9-29951f06cd30" alt="" data-size="line"> Initialization and Build

Once the game is loaded, the plugin is already initialized. No additional actions are required.

To ensure the plugin functions correctly, select the appropriate index template during the build process.

<figure><img src="https://1088849411-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ukgSPDBOdbQp4FYtbz1%2Fuploads%2FU3jUDlXyKXAuPGhuH7yj%2FScreenshot%202025-02-26%20at%209.52.11%E2%80%AFAM.png?alt=media&#x26;token=b7333424-117c-4f84-a504-bbe9c53a3ad2" alt=""><figcaption></figcaption></figure>
