コードの提供
エンジンのソースコードの変更を調査、使用、変更、および再配布が出来る可能性は、Godotの MIT ライセンスが付与する基本的な権利であり、Godotは自由なオープンソースソフトウェア になります。
そのため、誰もがGodotのソースコードを変更し、パッチ(すぐに適用できる方法で変更を説明するテキストファイル)の形で上流のプロジェクトにそれらの変更を送り返す権利があります。 いわゆる「プルリクエスト」(PR)、つまり、1つ以上のGitコミット(パッチ)をメイン開発ブランチに直接マージする提案を使用します。
コードの変更をアップストリームに提供するには、次の 2 つの大きな利点があります:
独自のコードは他の開発者によってレビューおよび改善され、アップストリームプロジェクトで直接維持されるため、新しいバージョンに移行するたびに独自の変更を再適用する必要はありません。 一方、変更は、プロジェクトだけでなく、すべてのユーザーにとって有益であるように十分に汎用的である必要があるため、責任が伴います。 そのため、場合によっては、変更があまりにも具体的である場合は、自分のプロジェクトのみに変更を保持することが適切な場合があります。
コミュニティ全体があなたの仕事の恩恵を受け、他の貢献者も同じように振る舞い、あなたに有益なコードを提供します。この執筆時点で、2000人を超える開発者がエンジンのコード変更に貢献しています!
優れたコラボレーションと全体的な品質を確保するために、Godot開発者は、C++コード (インデント、括弧など) やGitおよびPRワークフローで使用するスタイルなど、コードの貢献に関するいくつかのルールを適用します。
手始めに、GitHubで good first issue タグが付いたissueを検索することから始めてみましょう。
参考
PR ワークフローに関する技術的な詳細については、対応するセクションで概説されています プルリクエスト・ワークフロー。
コードスタイルガイドラインと、それらを適用するために使用される clang-format ツールの詳細については、コードスタイルガイドラインで説明されています。
All pull requests must go through a review process before being accepted. Depending on the scope of the changes, it may take some time for a maintainer responsible for the modified part of the engine to provide their review. We value all of our contributors and ask them to be patient in the meantime, as it is expected that in an open source project like Godot, there is going to be way more contributions than people validating them.
To make sure that your time and efforts aren't wasted, it is recommended to vet the idea first before implementing it and putting it for a review as a PR. To that end, Godot has a proposal system. Its usage is encouraged to plan changes and discuss them with the community. Implementation details can also be discussed with other contributors on the Godot Contributors Chat.
注釈
Proposals are only required when working on an enhancement or a new feature. Bug reports are sufficient for fixing issues.
テストとレポートの問題
エンジンに貢献するもう1つの優れた方法は、開発リリースまたは開発ブランチをテストし、問題を報告することです。また、安定したリリースで発見された問題を報告して、開発ブランチや将来のメンテナンスリリースで修正できるようにすることも役立ちます。
開発バージョンのテスト
テストを支援するために、いくつかの可能性があります:
プラットフォームのコンパイルページの指示に従って、ソースからエンジンを自分でコンパイルします。
アルファ版、ベータ版、リリース候補(RC)ビルドなど、公式のプレリリースバイナリを(通常はブログや他のコミュニティプラットフォームで)発表されたらテストします。
開発ブランチの「信頼できる」非公式ビルドをテストします。 信頼できるプロバイダーをコミュニティメンバーに尋ねてください。 可能な限り、公式のバイナリを使用するか、自分でコンパイルして、バイナリの出所を確認するのが最善です。
前述のように、特に開発者によるテストが少なくなる可能性のあるエンジンのニッチな機能を使用する場合は、安定したリリースにまだ存在する可能性のあるバグに目を離さないようにしておくと便利です。
GitHubで問題を提起する
Godot uses GitHub's issue tracker for bug reports. When you start filing a bug report, you’ll be given a form to fill out. Please try to follow it so that all issues are consistent and provide the required information.
ドキュメントへの貢献
Godotには、「ドキュメント」と呼ばれる2つの別個のリソースがあります:
The class reference. This is the documentation for the complete Godot API as exposed to GDScript and the other scripting languages. It can be consulted offline, directly in Godot's code editor, or online at Godot Class Reference. To contribute to the class reference, you have to edit the XML file corresponding to the class and make a pull request. See Contributing to the class reference and Class reference primer for more details.
The tutorials and engine documentation and its translations. This is the part you are reading now, which is distributed in the HTML format. Its contents are generated from plain text files in the reStructured Text (rst) format, to which you can contribute via pull requests on the godot-docs GitHub repository. See ドキュメントへの貢献 for more details.
Contributing translations
To make Godot accessible to everyone, including users who may prefer resources in their native language instead of English, our community helps translate both the Godot editor and its documentation in many languages.
See エディタとドキュメントの翻訳 for more details.