# Launching Your Game

## Correct API Key

To ensure players are sent to the right environment, make sure you are using the [correct API Key](/admin/game-settings.md#api-keys) when building your game.

## Leaderboards

As the [Leaderboard](/game-systems/leaderboards.md) feature is the only LootLocker feature that doesn't prescribe to the dual environment system, make sure that you are using the correct IDs when submitting scores to the leaderboards.

### Clear Leaderboards

Before launching your game you might also want to [clear your leaderboards](#leaderboards) so that players can set new high scores.

## Building to WebGL for Unity

When building to WebGL, there are some settings which you must change in order for your game to run through WebGL.

### Publisher Settings

Underneath `Project Settings` you will find the `Player` tab, which contains the `Publisher Settings`. Here you must set Compression Format to `Gzip`.

### Other Settings

Underneath `Project Settings` you will find the `Player` tab, which contains the `Other Settings` Find the header called `Optimization` and set Strip Engine Code to `false`.

## Frequently Asked Questions

<details>

<summary>Is the data sent between LootLocker and my game encrypted?</summary>

Yes, LootLocker uses HTTPS encryption for all data in transit between your game and the backend.

</details>

<details>

<summary>Can my users delete their stored data from inside the game?</summary>

Yes, the following APIs can be used to let players delete their stored data in compliance with GDPR and similar laws. Players can also be manually deleted through the LootLocker web console.\
Using these APIs, will set the Player to be deleted in 30 Days.

```birb
curl -X DELETE "https://api.lootlocker.io/game/player" \
  -H "x-session-token: your_token_here"
```

```csharp
LootLockerSDKManager.DeletePlayer((response) => {
     if(response.statusCode == 204)
     {
        //Successfully deleted Player
     }
});
```

The above will return a 204 code as the server has fulfilled the request, and there is no additional data.\\

</details>

## Any Last Questions?

If you're unsure about anything or have any last questions, make sure to join our [Discord](https://discord.gg/lootlocker) where you'll find the entire LootLocker team at your disposal.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lootlocker.com/the-basics/launching-your-game.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
