godotjs / javascript

Javascript binding for godotengine
https://godotjs.github.io/
MIT License
982 stars 82 forks source link

How do the Godot APIs get registered in JS? #85

Open arunvickram opened 3 years ago

arunvickram commented 3 years ago

Hi,

I've been toying around with the ECMAScript module for a bit and I've been experimenting with adding Clojurescript support via shadow-cljs. Basically, the status is that the outputted JS from Clojurescript works in Godot, but I'm having trouble getting a REPL working. I was wondering how/at what stage does the Godot API enter globalThis? Also, at what point can the Javascript code be run, can it only be run ingame or no?

oxr463 commented 3 years ago

Any updates on this?