Skip to content

Releases: game-a11y/Duckov-PuerTS

V0.2 - JsBehaviour

25 Oct 15:34

Choose a tag to compare

这一版可以用 Js 写 MonoBehaviour 了,并且 js 部分支持热更新(需要游戏内开关 mod 一次)

效果

mod 未加载时
Image

mod 加载后

Image

js 脚本部分可以热更新

Image

V0.1 - hello world!

25 Oct 11:21

Choose a tag to compare

可行性验证。看把游戏当作 DotNet 项目嵌入 js 引擎确实是可行的。

使用的依赖:https://github.com/Tencent/puerts/releases/tag/Unity_v3.0.0-preview0
这里用的是 Core+V8,想切换其他后端请自行添加对应的 DLL。

进游戏后,在游戏中加载此 mod,可以看到 js 的打印输出。

image