Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Why can't I make my HTML5 game available to download?

A topic by SparklyItch created Dec 21, 2023 Views: 534 Replies: 4
Viewing posts 1 to 3
(1 edit)

Basically the title of the thread. Currently other people can only play my (private access) game in their browsers, but if I test making the project downloadable, it only downloads the source code.

(1 edit)

I have not been able to understand your question well.

If you want your game to be playable in the browser and at the same time, downloadable. You need to upload two versions. indicate that one will be played online on itch.io and mark the other as a download file.


Now, an HTML5 game is not an executable, but code, which must be executed on a server (at least in a browser, but it depends what you have inside the HTML files.).
If a person downloads that, he's going to download the HTML code, because that's the game and he probably can't play it because a normal PC doesn't work as a server.


If you want your game to be an executable and not HTML code, it is best to create your games in an engine that allows you to export to different target.

For example, creating your game with Godot.
You export to an executable binary so it can be downloaded and played on Windows computers.
You export to HTML to upload it to a server like itch so it can be played online.

(1 edit)

I have the same problem and I am experienced itch-user.

I can't mark that file is playable in browser, even at other projects I did it a lot multiple times. I tried to re-upload, double-checked hierarchy where index.html in the root of zip, but still can't see the checkmark. What could be the problem?


Figure 1. New project with correct archive can't be played in browser
Figure 2. Previous project where even source code could be marked as playable
(+1)

Have you specified Kind of Project: HTML?

image.png

(1 edit)

Yes, thank you, I found it in the end. But why I should to mark it, if regardless of this setting, I can mark downloadable Windows and macOS as well but not vice versa? And my game having both – downloadable and HTML... Seems like legacy part that allows to select even Flash and old Unity that is not supported by modern browsers. I just want to mark WebGL playable regardless of this setting, as I'm doing it for downloadable types.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.