Guides Build & Release Web Export Web Export

Build & Release Web Export 2 min read Updated Nov 2026

Web Export

Web export turns a Lenga project into a game that plays in a desktop web browser. The editor packages your scenes, assets and PHP scripts as one ZIP that you can upload to itch.io or extract onto any static web host. Your gameplay scripts run inside the player, so the host only serves files and needs no PHP of its own.

Web export works for 2D and 3D projects. 2D physics runs on Box2D and 3D physics on Jolt, the same engines your desktop build uses by default.

What You Need

  • A Lenga installation that includes Web export. Open Project > Build & Export... and select the Web target. Export Summary shows Web tools available when your installation can build Web games.
  • A project with at least one saved scene in Scenes in Build.
  • A desktop browser with WebAssembly and WebGL 2 for testing. Current versions of Chrome, Firefox and Safari meet this.

How It Works

  1. Build & Export checks the project with Run Preflight: the startup scene, every file the game needs, imported assets, PHP scripts and physics settings.
  2. It writes a ZIP with four files: index.html, lenga_runtime.js, lenga_runtime.wasm and lenga_runtime.data. The last one holds your game.
  3. Build & Run opens that ZIP in your browser from a local address so you can play it before anyone else does.
  4. You upload the same ZIP to the site where players will find it.

Guides

To build for the computer you are working on instead, see Export a current-platform build.