https://github.com/nem0/lumixengine_js
JavaScript plugin for Lumix Engine https://github.com/nem0/LumixEngine
https://github.com/nem0/lumixengine_js
game-engine game-engine-3d gamedev javascript
Last synced: 9 months ago
JSON representation
JavaScript plugin for Lumix Engine https://github.com/nem0/LumixEngine
- Host: GitHub
- URL: https://github.com/nem0/lumixengine_js
- Owner: nem0
- License: mit
- Created: 2017-05-29T11:33:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-20T20:22:50.000Z (about 1 year ago)
- Last Synced: 2025-04-05T08:35:02.313Z (9 months ago)
- Topics: game-engine, game-engine-3d, gamedev, javascript
- Language: C
- Homepage:
- Size: 1.44 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JavaScript plugin for [Lumix Engine](https://github.com/nem0/LumixEngine).
* [Documentation](https://github.com/nem0/lumixengine_js/wiki)
* Attach scripts to entities
* All properties automatically accessible
* Console to execute scripts in global or entity's context, with autocomplete
* [Debugger](https://github.com/harold-b/vscode-duktape-debug) support
* Using [Duktape](https://github.com/svaarala/duktape)
Example JS code:
```js
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:
https://github.com/nem0/lumixengine_js/assets/153526/6fead5ad-0e2c-448b-a7dd-aaf59527998f
Autocomplete in console:
