> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/flatredball/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/flatredball/tutorials/distribution/itch.io.md).

# itch.io

### Introduction

FlatRedBall Web games can be uploaded to itch.io. This guide provides a walkthrough for uploading your game.

{% hint style="info" %}
You must first publish your game through Visual Studio before uploading it to itch.io. For more information, see the [Distribution](/flatredball/tutorials/distribution.md#distributing-flatredball-web-games) page.
{% endhint %}

### Uploading a Build

Once you have published your build through Visual Studio, you should have a folder similar to the following image:

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FOSmGItD0LDQC70CR4FSp%2Fimage.png?alt=media&amp;token=4d56547b-030d-4e05-a196-0cde5e1f4cf8" alt=""><figcaption><p>Example published web project</p></figcaption></figure>

Note that at the time of this writing itch.io does not support .br (brotli compressed) files. These and .gz files can be removed to reduce the size of your build. To do this:

1. Search for .br files in your wwwroot folder
2. Delete all .br files
3. Repeat the search for .gz files in your wwwroot folder
4. Delete all .gz files

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2F62wOggjyUSqZYADz1gLy%2F19_05%2039%2027.gif?alt=media&amp;token=43fdf2af-25ad-44db-9ffe-a08c7567a590" alt=""><figcaption><p>Search for *.br, select all files, then delete all files</p></figcaption></figure>

Open the wwwroot and create a .zip file with the contents.

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FvR5HUkyKWMQMOTpziHCj%2Fimage.png?alt=media&amp;token=53f01755-260d-4803-aec5-425786f124f9" alt=""><figcaption><p>Compress the contents of your wwwroot</p></figcaption></figure>

Next, log in to your itch.io account and select the option to **Upload new project.**

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FYYdg7eCZif3pgmwxpAlv%2Fimage.png?alt=media&amp;token=1e3accd3-eded-4fe7-bc70-c3c5252b0eee" alt=""><figcaption><p>Select the Upload new project option</p></figcaption></figure>

Fill in your project's information, but be sure to set **Kind of project** to **HTML**.

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2F4lXSHoi2c4FqXzIvU4bD%2Fimage.png?alt=media&amp;token=ecc7e228-14da-4bf7-ad46-98d9270991ff" alt=""><figcaption><p>Select the HTML option</p></figcaption></figure>

Click the Upload Files option and select your .zip file that you created earlier.

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FNIyRNR1QwMqK4psv5kTC%2Fimage.png?alt=media&amp;token=31697892-7e45-487b-83d9-76a388460648" alt=""><figcaption><p>Click the Upload files button to upload a .zip file</p></figcaption></figure>

Check the **This file will be played in the browser** option.

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FfCWGr0xSphxI13wUxwk3%2Fimage.png?alt=media&amp;token=e72535eb-2926-4fae-9c75-e0d0f684ac12" alt=""><figcaption><p>Check the option to indicate that this game is played in the browser</p></figcaption></figure>

You can specify the resolution for your project. Typically you should have your project run at a multiple of your native resolution so that pixels draw correctly. If your game uses a smaller resolution for a pixel aesthetic, you may want to set the resolution at two or three times the native size.

For example, consider a game which is set to a resolution of 398x224:

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2FpVHnI4qPlhQqQmFigrIy%2Fimage.png?alt=media&amp;token=3d3bcfb7-914e-44ec-a4ca-07e66210e4b3" alt=""><figcaption><p>Resolution set to 398x224 in the FRB Editor</p></figcaption></figure>

You can set the game to render at 300% scale by setting the size to 1194x672:

<figure><img src="https://951240982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fye9Ufg3vzJxwX5Hk%2Fuploads%2F2F2GchXpX24bqsXGQiej%2Fimage.png?alt=media&amp;token=563847dd-a236-4219-9a94-06531ba7db8a" alt=""><figcaption><p>Setting game resolution in itch.io</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.flatredball.com/flatredball/tutorials/distribution/itch.io.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
