Replies: 1 comment 4 replies
-
The idea is use a wasm build and bridge to Godot via some sort of Javascript layer. Unfortunately there aren't any official Javascript interfaces for GDextension, so this would need to be be developed. I've been looking at https://github.com/godotjs/Javascript, which could be a path towards this, however it's not based on GDextension, so this doesn't look to be very straightforward. The last time I investigated this, Emscripten had some limitations that meant it wasn't possible to access Javascript from a side module. Which I initially hoped could be a good was to expose the GDExtension API to the browser. Well I've just checked and it doesn't look like the issue has had any movement emscripten-core/emscripten#21491 The other option would be to try to develop the Javascript interface into Godot itself. If I had something to start from, I could probably chip away at it but I'm not familiar enough with Emscripten with C++ to set this up properly. Hence getting something merged into Godot would probably take some time. |
Beta Was this translation helpful? Give feedback.
-
I’ve been avoiding using this library as I wait for HTML5 export support.
The readme states there there are “ideas” on how to achieve this but I can not find what these ideas are, how feasible it is, when these ideas can be tested, where they’re being discussed etc.
For now I’ve gone ahead with implementing game state in Go and will push it through to vanilla Godot via websockets, but would be keen to get an idea on the above.
Beta Was this translation helpful? Give feedback.
All reactions