GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - godotjs/javascript: Javascript binding for godotengine

BranchesTags
Open more actions menu

Latest commit

 

History

409 Commits
409 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
doc
doc
 
 
doc_classes
doc_classes
 
 
docs
docs
 
 
editor
editor
 
 
icons
icons
 
 
misc
misc
 
 
src
src
 
 
tests
tests
 
 
thirdparty/quickjs
thirdparty/quickjs
 
 
.clang-format
.clang-format
 
 
.clang-tidy
.clang-tidy
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SCsub
SCsub
 
 
clang_format.sh
clang_format.sh
 
 
config.py
config.py
 
 
generate_builtin_api.py
generate_builtin_api.py
 
 
javascript.cpp
javascript.cpp
 
 
javascript.h
javascript.h
 
 
javascript_binder.h
javascript_binder.h
 
 
javascript_callable.h
javascript_callable.h
 
 
javascript_gc_handler.h
javascript_gc_handler.h
 
 
javascript_instance.cpp
javascript_instance.cpp
 
 
javascript_instance.h
javascript_instance.h
 
 
register_types.cpp
register_types.cpp
 
 
register_types.h
register_types.h
 
 

Repository files navigation

GodotJS Logo

GodotJS

-- 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.git or
    • git clone https://github.com/godotengine/godot.git
  • This branch uses version 4.1 so 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/javascript or
    • git clone https://github.com/godotjs/javascript.git godot/modules/javascript
  • Recompile the godot engine
    • Use scons with those additional options warnings=extra werror=yes module_text_server_fb_enabled=yes to 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
    • Hint: To enable unit tests you need to add tests=true to scons arguments

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.

About

Javascript binding for godotengine

Topics

godotgodot-jsjavascripttypescript

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

1.1k stars

Watchers

27 watching

Forks

81 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.