Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.04 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.04 KB

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()
	}
})

image

VS Code debugger:

js.mp4

Autocomplete in console:

js_autocomplete