itch.io
This page explains how to distribute your Pixi’VN game on itch.io, including how to make it playable in the browser.
Puoi distribuire il tuo gioco su itch.io. Si tratta di una piattaforma che ti consente di caricare il tuo gioco e distribuirlo al pubblico. È un'ottima piattaforma per distribuire il tuo gioco e ricevere riscontri dalla community.
Gioco riproducibile sul browser
Su itch.io puoi abilitare l'opzione Questo file sarà riprodotto nel browser perché un file caricato sia riproducibile nel browser.
Only a single html or js file can be executed and not a directory. So, uploading a zip of the generated dist folder from a build will not work. For example, if you try, you will see a result of something like this:

Instead, you need to host the game on a server and then upload to itch.io a single html file containing an iframe that points to the URL where the game is hosted.
For example, after hosting the game on a server, you can create an index.html file with the following content. Replace the iframe URL with the address of your hosted game:
<!doctype html>
<html lang="en" style="height: 100%; width: 100%;">
<head></head>
<body
style="height: 100%; width: 100%; display: flex; overflow: hidden; margin: 0; background-color: #242424;"
>
<div id="root"
style="height: 100%; width: 100%;"
>
<iframe
src="https://pixi-vn-visual-novel-example.pages.dev/"
style="height: 100%; width: 100%; border: none;"
allowfullscreen
>
</iframe>
</div>
</body>
</html>Quindi, puoi caricare il file index.html su itch.io.