프로젝트
GitHub에서 보기
godotjs/javascript
소개
godotengine용 JavaScript 바인딩
게임 및 에뮬레이션What you can do
- Almost complete ES2020 support
- All Godot API available
- Operator overriding for built-in types (Vector3, Color, etc)
- TypeScript support
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalGodotJS
-- JavaScript and TypeScript language binding for Godot game engine --
This module implements JavaScript/TypeScript language support for the Godot game engine using QuickJS as the JavaScript engine.
Getting started
Read the getting-started.
Features
- 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
Getting the engine
No installation or setup necessary. The binaries for download are the complete, usable Godot editor and engine with JavaScript/TypeScript language support.
Binary downloads
Download the binaries from the release page.
Compiling from source
- Clone the source code of godot:
git clone [email protected]:godotengine/godot.gitorgit clone https://github.com/godotengine/godot.git
- This branch uses version
4.1so checkout the version with:git checkout 4.1 - Clone this module and put it into
godot/modules/javascript:git clone [email protected]:godotjs/javascript.git godot/modules/javascriptorgit clone https://github.com/godotjs/javascript.git godot/modules/javascript
- Recompile the godot engine
- Use
sconswith those additional optionswarnings=extra werror=yes module_text_server_fb_enabled=yesto show all potential errors:- Windows:
scons platform=windows warnings=extra werror=yes module_text_server_fb_enabled=yes - MacOS:
scons platform=macos arch=arm64 warnings=extra werror=yes module_text_server_fb_enabled=yes
- Windows:
- Hint: To enable unit tests you need to add
tests=truetosconsarguments
- Use
Documentation, Tutorials & Demos
Read this documentation or look at the tutorials or demos:
- ECMAScriptDemos - Demos
- godot-ECMAScript-cookbook - Tutorial
- godot-typescript-starter - Template
- godot-js-template - Template
Contributing
If you like to contribute to this project check the CONTRIBUTING.md file.
관련 프로젝트 살펴보기
불러오는 중…