hxwerks

Leadwerks 5 Haxe/Lua bindings and entity-script tooling — full API coverage (Entity, World, Camera, GUI, Collider, Joint, Steamworks, PhysX, VR, UI widgets, and more).
https://github.com/Valh88/Hxwerks.git

To install, run:

haxelib install hxwerks 0.4.0 

See using Haxelib in Haxelib documentation for more information.

README.md

Hxwerks

Haxe bindings and tooling for Leadwerks 5 Lua scripts: type-safe externs, entity scripts with editor properties, and a single compiled Main.lua bundle.

Status

This is experimental tooling, not a production-ready product. APIs, build output, and macro behavior may change without notice.

Bindings coverage: Many extern classes, methods, properties, and constants are mapped, but some may be missing or incomplete. Always cross-reference with the official Leadwerks 5 Lua API documentation. If you encounter a gap, the Haxe externs are straightforward to extend — pull requests are welcome.

Requirements

  • Haxe (Lua target)
  • Leadwerks 5 project with scripts under your game’s Scripts/ (or equivalent) folder

Quick start

haxelib dev hxwerks /path/to/Hxwerks

Scaffold a minimal project (creates build.hxml and src/Main.hx in the current directory):

haxelib run hxwerks init
haxe build.hxml

That writes Main.lua next to build.hxml and generates entity wrapper Lua under Entities/HxGen when you define classes extending EntityScript.

License

See haxelib.json (MIT).

Contributors
vano
Version
0.4.0
Published
3 months ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub