Skip to content

What is Deno-based scripting system? #468

Answered by zicklag
madwareru asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @madwareru! We are using Deno's core wrapper around V8, which is the underlying C++ JavaScript engine that Node.js, Deno, and Chrome use.

It doesn't have any of Deno's runtime features, though, such as filesystem or network access. The scripts can only access the ECS game world, which is actually great for running untrusted mods.

Like @erlend-sh said, we are using the bevy_mod_js_scripting plugin to integrate Deno with Bevy.

It's also worth noting that when running on the web Deno isn't used, but the native JavaScript engine of the browser playing the game is used instead.

Right now bevy_mod_js_scripting is very work-in-progress, but it's developing nicely. As I'm working on integratin…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by erlend-sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants