Godot Engine – Multi-platform 2D and 3D game engine
Go to file
20kdc 24181d1055
GDScript: Adjust STATIC_CALLED_ON_INSTANCE warning to not default to the native type, and to not trigger on self-calls
Not defaulting to the native type rationale:

Defaulting to the native type is less than useful, as:

* There are very few native types that are extensible and have static methods.
* Defaulting to the native type does not account for a method being script-defined.

While the "real fix" would be to carefully track the source of the method, the get_function_signature method is already complicated enough.

This will at least ensure the resulting code should always be valid.

Not triggering on self-calls rationale:

Found in PR comment https://github.com/godotengine/godot/pull/85918#issuecomment-1935864459

```
static func example():
	pass

func example2():
	example() # self-call on static function
```

Disabling this warning on self-calls is:

* Consistent with other languages
* Important for anonymous classes (where the output code is unusable)
2024-03-01 17:14:59 +03:00
.github Replace hand-written pre-commit hooks with `pre-commit` Python tool 2024-02-26 14:57:53 +01:00
core Merge pull request #88883 from joaoh82/add-weighted-random-method 2024-03-01 15:00:32 +01:00
doc Merge pull request #89024 from bruvzg/rtl_hover_meta 2024-03-01 15:00:41 +01:00
drivers Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
editor Merge pull request #88833 from emre0altan/save-scene-and-global-checkbox-options-in-history-window 2024-03-01 15:00:24 +01:00
main Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
misc [RTL] Add optional `push_meta` argument to control how meta underline is drawn. 2024-03-01 12:07:06 +02:00
modules GDScript: Adjust STATIC_CALLED_ON_INSTANCE warning to not default to the native type, and to not trigger on self-calls 2024-03-01 17:14:59 +03:00
platform Merge pull request #88987 from bruvzg/macos_12_depr_warn 2024-02-29 13:55:08 +01:00
scene Merge pull request #89024 from bruvzg/rtl_hover_meta 2024-03-01 15:00:41 +01:00
servers Merge pull request #86777 from Mickeon/autocomplete-classdb 2024-03-01 14:56:12 +01:00
tests Merge pull request #88959 from akien-mga/pre-commit-clang-17.0.6-black-24.2.0 2024-02-29 13:54:38 +01:00
thirdparty astcenc: Update to 4.7.0 2024-02-29 18:36:40 +01:00
.clang-format Style: Workaround clang-format 14 bug with `Inline` oneliner functions 2022-08-03 12:20:23 +02:00
.clang-tidy Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init` 2022-05-02 16:28:25 +02:00
.editorconfig GDScript: Fix some lambda bugs 2023-09-14 14:22:23 +03:00
.git-blame-ignore-revs Header format commits to .git-blame-ignore-revs 2023-07-18 09:28:56 -05:00
.gitattributes File: Re-add support to skip CR (`\r`) in `File::get_as_text` 2022-08-01 00:40:35 +02:00
.gitignore Merge pull request #87878 from adamscott/emacs-gitignore 2024-02-03 23:21:01 +01:00
.mailmap Update AUTHORS and DONORS list 2024-02-13 10:00:17 +01:00
.pre-commit-config.yaml Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
AUTHORS.md Update AUTHORS and DONORS list 2024-02-13 10:00:17 +01:00
CHANGELOG.md Add changelog for Godot 4.2 2023-11-29 18:08:07 +01:00
CONTRIBUTING.md Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
COPYRIGHT.txt astcenc: Update to 4.7.0 2024-02-29 18:36:40 +01:00
DONORS.md Update AUTHORS and DONORS list 2024-02-13 10:00:17 +01:00
LICENSE.txt One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
LOGO_LICENSE.txt Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
README.md Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
SConstruct SCons: Fix `CCFLAGS`, `LINKFLAGS`, etc. command line overrides 2024-02-20 15:57:53 +01:00
gles3_builders.py Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
glsl_builders.py Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
icon.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
icon.svg Standardize and Optimize blue robot SVG 2023-06-12 18:12:40 +02:00
icon_outlined.png Add an outlined version of logo.png and icon.png and put it in README.md 2020-12-14 06:42:51 +01:00
icon_outlined.svg Standardize and Optimize blue robot SVG 2023-06-12 18:12:40 +02:00
logo.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
logo.svg Standardize and Optimize blue robot SVG 2023-06-12 18:12:40 +02:00
logo_outlined.png Convert the logo's text outlines into paths 2023-04-07 17:51:56 +02:00
logo_outlined.svg Standardize and Optimize blue robot SVG 2023-06-12 18:12:40 +02:00
methods.py Merge pull request #88949 from shana/vs-performance-improvement 2024-02-29 13:54:27 +01:00
platform_methods.py [iOS/macOS] Add option to automatically build (and sign / archive) bundles. 2024-02-13 16:36:41 +02:00
scu_builders.py Pre-commit: Update to clang-format 17.0.6 and black 24.2.0 2024-02-28 14:25:35 +01:00
version.py Remove now unused `year` member from `version.py` 2024-01-25 15:08:34 +01:00

README.md

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported with one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Godot Foundation not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in the Godot Engine editor

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the Godot website.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

The best way to get in touch with the core engine developers is to join the Godot Contributors Chat.

To get started contributing to the project, see the contributing guide. This document also includes guidelines for reporting bugs.

Documentation and demos

The official documentation is hosted on Read the Docs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

We also maintain official demos in their own GitHub repository as well as a list of awesome Godot community resources.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate TODOs