1. Prepare the Project
- Save every scene you changed. Web export uses the saved files, not the scene open in the editor.
- Check that new textures, models and audio appear in the Assets panel. The editor imports them when they arrive in the project. If one shows an old version, right-click it and choose Reimport.
- Open Project > Build & Export... and select Web under Targets.
2. Choose What Starts
Under Scenes in Build, the scenes with a ticked checkbox go into the build, in the order shown. Use Add Scene to add a saved scene and the arrows to move it earlier or later. The scene marked (Startup) opens first. These settings are shared with the Desktop target.
Startup Scene chooses where this Web build starts. Project Default follows the project's startup scene, or the first ticked scene if the project names none. The list offers only ticked scenes. Your choice applies to Web builds and does not change which scene the project opens.
To keep a choice, for example a profile that starts in a test level and another that starts in the main menu, save it as a Web profile:
- Choose New next to Build Profile.
- Enter a Profile Name and pick a Startup Scene.
- Choose Save Profile, or Discard Changes to leave it.
Leave Build Profile on Project Defaults to build without a saved profile. Use Duplicate, Edit and Delete to manage profiles. Deleting a profile keeps the ZIPs you already built.
3. Run Preflight
Choose Run Preflight. It checks the project without making a ZIP: the startup scene, every file the scenes and assets name, that imported assets are imported, your PHP scripts and your physics settings. The result appears under the profile controls. Choose Copy Report to copy it.
If preflight lists missing game files, each one is shown with the scene or asset that uses it. Restore the file, or open that scene or asset and choose another file. If preflight says the dependencies are out of date, choose Refresh Dependencies, then Run Preflight again.
Preflight runs again by itself when you build, so you can skip this step once your project passes.
4. Build and Play
Choose Build & Run and pick a folder for the ZIP. Export Status shows each packaging step. When the ZIP is ready, your default browser opens it from a local address. Choose Open Browser in Export Status to open it again.
- Click inside the game. Browsers start sound only after you click.
- Play a round or finish a level. Check controls, sound, collisions and how the scene looks.
- Choose Stop Preview in Export Status when you are done. The ZIP stays in the folder you chose.
Export Complete shows the ZIP size and the size of the unpacked game data. Choose Build Web ZIP instead of Build & Run when you only need the file.
5. Play a Build Again Later
Open the Build History tab in Project > Build & Export.... Pick a build and choose Run Player to play that exact ZIP again, or Open Folder to find it. If you replaced or edited the ZIP since, Lenga refuses to run it: build again instead.
Player Controls
Web builds have no on-screen Console, Fullscreen or Audio buttons unless you turn them on in a saved profile. Select the profile under Build Profile, tick Show Console overlay or Show Fullscreen and Audio controls, then choose Save Profile. Keep the Console off for builds players see. Logs still go to the browser's developer console.
Next Step
When the game plays well locally, continue to Host a Web build. For every option on this screen, see the Web export reference.