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!
- Clone the source code of godot
- Clone this module and put it into
godot/modules/
make sure the folder name of this module isECMAScript
- Recompile godot engine
In the editor menu Project > Tools > ECMAScript > Generate TypeScript Declaration
.
Drag the class item in the ECMAScript
panel at bottom of the editor to the target
You can try demos in the ECMAScriptDemos
- Implement debugger server.
- The way to do tasks in another thread