Upload to itch.io
- Create a project on itch.io and leave it as a draft. Set Kind of project to HTML.
- Upload the ZIP as one file and tick
This file will be played in the browser. Upload the ZIP as Lenga
made it:
index.htmlsits at the top of the archive, with no extra folder around it. - Under Embed options, set the viewport size to your game's window size. Leave SharedArrayBuffer support off. Lenga's Web player does not need it.
- Save, open the draft's page and click inside the game. Play it there before making the page public.
itch.io checks the size of the extracted files, so stronger ZIP compression does not help an oversized build. See the itch.io HTML5 requirements if it rejects the upload.
Host on Your Own Site
Extract the ZIP into one folder on an HTTPS static host and keep the four
files together. The folder can be a subfolder of your site. Open the game
through its web address, not by opening index.html from your disk.
The host must serve each file with the right content type:
| File | Content type |
|---|---|
index.html |
text/html |
lenga_runtime.js |
text/javascript or application/javascript |
lenga_runtime.wasm |
application/wasm |
lenga_runtime.data |
application/octet-stream |
Most static hosts do this already. The player needs no special headers such as cross-origin isolation.
Keep the game at one address. Saves belong to the site that serves the game, so moving the game to another domain starts players without their saves.
Before Players Get the Link
- Open the real page in a fresh browser window. Click the game, then check input, sound and the first scene.
- Finish a round or a level. In 2D games check collisions, joints and moving platforms. In 3D games check movement, triggers and textures.
- If your game saves, follow Save progress in a Web build on the hosted page. When you publish an update, check that it loads a save made with the previous build.
- Try a second desktop browser.
Lenga's Web player targets desktop browsers. See Web export limitations before you describe browser or device support on your game page.