Skip to content

Javascript binding for godotengine

License

Notifications You must be signed in to change notification settings

nmerget/ECMAScript

Repository files navigation

JavaScript language binding for godot game engine

This module implements the ECMAScript 5.1 script language support for godot game engine.

Duktape 2.3 is used as the ECMAScript engine. It is possible to replace it with other JIT-supported engine but not in the near plan.

This project is still in development so it may contains bugs.

The documentation is lack because of my pool English skill. Contributions to documentation is welcomed!

Documentation

Compile

  • Clone the source code of godot
  • Clone this module and put it into godot/modules/ make sure the folder name of this module is ECMAScript
  • Recompile godot engine

Usage

Generate TypeScript declearation file

In the editor menu Project > Tools > ECMAScript > Generate TypeScript Declaration.

Attach Classe defined in ECMAScript to Node/Object

Drag the class item in the ECMAScript panel at bottom of the editor to the target

Demo

You can try demos in the ECMAScriptDemos

TODO:

  • Implement debugger server.
  • The way to do tasks in another thread

About

Javascript binding for godotengine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 66.1%
  • JavaScript 12.2%
  • Python 9.9%
  • C 7.4%
  • TypeScript 4.4%