Skip to content

Lenga 0.10.0

Choose a tag to compare

@amasiye amasiye released this 25 Nov 03:32
6d1eb98

Lenga Engine 0.10.0

Build a 2D or 3D game in Lenga and share it as a browser game. This release adds Web export to the editor, puts game and build settings in dedicated windows, and expands the tools for cameras, materials, and particle effects.

Build and share a browser game

Open Project > Build & Export, choose Web, and select the scene your game should start in. You can save multiple build profiles for the same project, such as a playtest build with diagnostics and a release build with a clean player.

  • Run Preflight checks the startup scene, dependencies, PHP script syntax, and supported settings before it builds.
  • Build Web ZIP creates the upload package. Build & Run also opens a local browser preview. Build History lets you reopen an existing build without rebuilding.
  • The ZIP is ready for static web hosting. For an HTML game on itch.io, upload the ZIP as-is. For your own site, extract it to a folder and serve it over HTTP or HTTPS. Keep the generated files together with index.html at the root.
  • Web builds hide the in-game console button and the fullscreen and audio controls by default. Enable either overlay in the build profile when you need it.

Web builds support PHP gameplay scripts, Box2D for 2D physics, and Jolt for 3D physics. Games can save progress in browser storage. Test saves in the actual embed before publishing: storage can be restricted by the browser or the host page. Audio may need a click or key press before the browser allows it to play. Use a desktop browser with WebGL 2. Mobile browsers and video playback are outside the supported scope of this release.

Project settings and editor workflow

Use Project Settings for choices that travel with the game, including startup scenes, player settings, asset import defaults, input, tags and layers, and the 2D collision matrix. Editor Settings holds your personal editor preferences.

Double-click an asset to open it in the relevant editor or inspector. Use F2 or Rename in the context menu to change its name. In the Animator, double-click a state to open its clip. Transition conditions now read in plain language, and parameters sit beside the graph. The editor also improves text and control sizing on high-DPI Windows displays.

Cameras, sprites, and physics

  • Pixel Perfect helps keep pixel art crisp. Camera Rig can follow a target with damping, lookahead, and a dead zone, constrain a 2D camera to level bounds, and ease zoom or add camera shake.
  • Use tiled sprites for repeating surfaces and depth for parallax. Set a hold time and pivot on individual animation frames when a pose needs different timing or alignment.
  • Rigidbody interpolation smooths rendered motion between physics steps. Use movePosition() and moveRotation() for motion driven by the physics update.

Materials, lighting, and particles

Choose Gamma or Linear color in Project Settings. Add a post-processing profile to a scene for effects such as tone mapping, color adjustments, bloom, and vignette. Scene view and the game use the same draw ordering and material settings.

Materials offer per-slot assignment, transparent blending, alpha clipping, depth controls, and HDR emission. New particle systems start with a soft-edged billboard material. Assign a material to control particle blending and depth. Play On Awake now controls whether the system starts emitting automatically.

Audio mixer

AudioMixer::transitionToPreset() gradually changes the cutoff of a low-pass or high-pass filter when the same effect is enabled and mixed in on both presets. This lets a pause menu ease in a muffled sound instead of switching abruptly. Channel volume, pitch, and pan still blend; other effect settings switch at the start. The normalize effect now respects its wet/dry mix.

Upgrade an existing project

Open the project in 0.10.0 and keep Back up project first selected in the upgrade dialog. Lenga saves a backup beside the project, excluding exported builds. Cancelling leaves the project unchanged. An upgraded project cannot be reopened by an older Lenga version.

  • PHP API: Lenga now provides the gameplay API to the editor, native games, and Web games. You only need Composer to manage packages your project adds. The upgrade removes the old lenga/engine dependency, updates recognized class references, and supplies a generated .lenga/php-engine copy for IDE completion. Review the Console upgrade report for changes you still need to make, such as refreshing a Composer lockfile that still lists lenga/engine.
  • Backdrops: Existing backdrop layers convert to sprite GameObjects. BackdropLayer and Scene::getBackdropLayers(), Scene::getBackdropLayer(), and Scene::getBackdropLayerCount() have been removed. Use the converted GameObjects' transforms or sprite renderers in scripts.
  • Particle blending: The Particle System's Blend Mode field has been removed. If a system has no assigned material, Lenga migrates the previous mode to a matching built-in material. If it has an assigned material, that material controls blending. Review older effects that used both.
  • Material scripts: Prefer the new Surface Options and Emission properties. The older Material::$renderingMode and Material::$emission properties are deprecated.
  • PHP runtime: macOS, Windows, and Web all embed PHP 8.5.13, a security update. The editor and runtime no longer read a player's or developer's machine-level php.ini.

The macOS installer requires macOS 26 or later on Apple silicon. On Windows, projects or exports beyond the legacy path length limit still need long paths enabled in Windows. You can also use a shorter project or output path.