This module implements JavaScript/TypeScript language support for the Godot game engine using QuickJS as the JavaScript engine.
- Almost complete ES2020 support
- All Godot API available
- Operator overriding for built-in types (Vector3, Color, etc)
- TypeScript support
- Using third-party libraries from npm
- Multi-thread support with Worker API
- Full code completion support for all Godot APIs including signals and enumerations
- Debug in Visual Studio Code with the plugin - currently not available for 4.x
Read the getting-started.
No installation or setup necessary. The binaries for download are the complete, usable Godot editor and engine with JavaScript/TypeScript language support.
Download the binaries from the release page.
- Clone the source code of godot:
git clone git@github.com:godotengine/godot.git
orgit clone https://github.com/godotengine/godot.git
- Clone this module and put it into
godot/modules/javascript
:git clone git@github.com:rasyidkaromi/Godot-Typescript.git godot/modules/javascript
orgit clone https://github.com/rasyidkaromi/Godot-Typescript.git godot/modules/javascript
- Recompile the godot engine
- Use
scons
with those additional optionswarnings=extra werror=yes module_text_server_fb_enabled=yes
to show all potential errors
- Use
Read this documentation or look at the tutorials or demos:
- ECMAScriptDemos - Demos
- godot-ECMAScript-cookbook - Tutorial
- godot-typescript-starter - Template