godotjs / godotjs/javascript

How do the Godot APIs get registered in JS?

未关闭
#85 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
enhancement investigation
主要语言
C++
星标
1.1k
派生
80
PR 合并指标
30 天内没有已合并 PR

描述

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](https://github.com/arundilipan/CLJS-Godot). 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?

贡献指南

打开贡献指南

调研方向

未指定文件、测试或入口点。首先追踪 ECMAScript 模块的 API 注册和 JavaScript 执行生命周期,然后记录 Godot API 何时进入 globalThis,以及代码是否可以在 gameplay 之外运行;包含足够的细节,以解释 REPL 可以如何初始化。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, javascript
领域
game-dev
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。