When you're ready to distribute your game, you can bundle it into a standalone HTML file with
w4 bundle cart.wasm --html my-awesome-game.html
The bundled HTML contains no external dependencies, works offline, and can be easily shared on sites like itch.io.
Send a PR on Github to feature your game on the site!
- Fork the repository.
/site/carts.jsand insert an entry for your game at the top of the list. It should have a unique slug for the URL.
- Add your
<slug>.png(160x160 screenshot) to
- Open a pull request!
You can take a 160x160 screenshot of your game by pressing F9 in the emulator.