Skip to content

Javascript/TypeScript binding for godot game engine

Notifications You must be signed in to change notification settings

brettmitchelldev/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 contain bugs.

The documentation is lacking because of my poor English skill. Contributions to documentation are 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/TypeScript binding for godot game engine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 94.6%
  • C++ 5.0%
  • Other 0.4%