JavaScript plugin for Lumix Engine.
- Documentation
- Attach scripts to entities
- All properties automatically accessible
- Console to execute scripts in global or entity's context, with autocomplete
- Debugger support
- Using Duktape
Example JS code:
function localFunction() {
ImGui.Text("Hello world")
}
({
name : "Test",
entity : _entity,
update : function() {
this.name = "new name";
this.entity.camera.fov = 1.2;
ImGui.Begin("xoxo")
ImGui.Text("foo " + this.name)
localFunction();
ImGui.End()
}
})
VS Code debugger:
js.mp4
Autocomplete in console: